[FFmpeg-user] field order detection - numbering framepositions possible?

Moritz Barsnick barsnick at gmx.net
Tue Jan 26 13:06:44 CET 2016


Hi Christoph,

On Tue, Jan 26, 2016 at 11:36:54 +0100, Christoph Gerstbauer wrote:
> Is it possible to MARK the framenumbers to its detected field orders? 
> Via framenumber or timestamp?
> Or to search a "known" TFF content for BFF frames? To force the output 
> to lines like:
> Found BFF frames at position X

I don't think ffmpeg provides the desired statistics, but you could
extract them yourself.

The idet filter inserts metadata into each frame as documented here:
https://ffmpeg.org/ffmpeg-filters.html#idet

You can use ffprobe to show and analyze the metadata and parse your own
conclusions:

$ ffprobe -f lavfi -i "movie=infile.avi,idet" -show_frames
and use ffprobe arguments to show only the interesting fields (frame
number, tff/bff, statistics) for the desired streams.

Thinking about it, those "cumulative" values may even be the indicators
you are looking for. (Not sure.)

Cheers,
Moritz


More information about the ffmpeg-user mailing list