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".