Re: [FFmpeg-devel] [PATCH] libavformat/keyframes: output keyframe indexes

2015-05-04 Thread Lou Logan
On Mon, May 4, 2015, at 04:09 AM, Jonathan Viney wrote: > > This works well, with the same performance: > > ffprobe -show_packets -print_format compact input.mkv | grep -n > flags=K | cut -f1 -d: Using "-show_entries packet=flags" may be faster than "-show_packets". __

Re: [FFmpeg-devel] [PATCH] libavformat/keyframes: output keyframe indexes

2015-05-04 Thread Jonathan Viney
Hi, Thanks for the feedback. After having another look, this can actually already be done with ffprobe. I was incorrectly using -show_frames instead of -show_packets, causing a big performance hit. This works well, with the same performance: ffprobe -show_packets -print_format compact input.mkv

Re: [FFmpeg-devel] [PATCH] libavformat/keyframes: output keyframe indexes

2015-05-04 Thread Michael Niedermayer
On Mon, May 04, 2015 at 02:35:45AM +1200, Jonathan Viney wrote: > Hi, > > First patch here. I wrote this format to be able to get the keyframe > indexes faster than seemed possible with ffprobe, and also to get more > familiar with ffmpeg. > > ffmpeg -i input.mkv -c copy -f keyframes -keyframes_f