Keyframes in HLS Segments

Goal: list all of the video keyframes in a HLS segemnt to ensure that segmentation is working properly for adaptive bitrate streaming.

ffmpeg is very useful, but so is ffprobe.

Command:

/usr/local/bin/ffprobe -loglevel fatal -show_frames -select_streams v [stream filename or URL] -print_format csv | grep "frame,video,1"

Output:

frame,video,1,178683570,1985.373000,178683570,1985.373000,178683570,1985.373000,3003,0.033367,3008,150453,960,540,yuv420p,1:1,I,0,0,0,0,0
frame,video,1,179434350,1993.715000,179434350,1993.715000,179434350,1993.715000,3003,0.033367,2685956,111494,960,540,yuv420p,1:1,I,250,0,0,0,0