[FFmpeg-user] Detect interlaced video

Clément Bœsch u at pkh.me
Tue May 13 22:31:00 CEST 2014

On Tue, May 13, 2014 at 10:20:34PM +0200, Oliver Fromme wrote:
> Carl Eugen Hoyos wrote:
>  > Oliver Fromme <oliver <at> fromme.com> writes:
>  > 
>  > > Actually I had hoped that there is a flag somewhere 
>  > > on the DVD, either in the meta data or in the MPEG2 
>  > > stream itself, indicating whether a title is 
>  > > interlaced or progressive.
>  > 
>  > The flag tells you if the stream was encoded using 
>  > mpeg2video interlaced or mpeg2video progressive, but 
>  > to decide whether or mot to deinterlace a video, only 
>  > the actual content is relevant: Progressive content 
>  > is often encoded as interlaced and it is of course 
>  > possible (although unlikely) that interlaced content 
>  > is encoded using progressive frames.
> Ok, thanks for the explanation.  So I will just use the
> idet filter to determine whether deinterlacing is required.
> By the way, does it hurt to use the yadif filter on frames
> that are not interlaced?

While it might be fine for playback, it will probably alter non interlaced
frame a lot. You might want to use the timeline system of libavfilter to
enable the filter in some specific time ranges.


Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20140513/270a7fa3/attachment.asc>

More information about the ffmpeg-user mailing list