PDA

View Full Version : Can "yadif" filter be omitted?



aklempn
05-27-2015, 09:31 PM
Hi,

I have found that while transcoding the -filter:v "yadif" is applied to the transcoding options, is this mandatory? can this be omitted?

Applying this filter increase dramatically the CPU usage during transcoding.

Best Regards,

Avi

Peter
05-28-2015, 09:45 AM
Hi Avi,
the yadif filter is used to de-interlace video frames when transcoding, if a file is not interlaced then it should have no effect. The yadif filter is always added to the ffmpeg commandline and there is no setting to disable this currently, we will investigate to see if there is a reliable method to detect when this filter should be used and only apply it in these cases.

aklempn
05-28-2015, 03:13 PM
Hi Paul,

A quick test that I made for transcoding of unsupported 1080P mp4 video to supported 1080P mpegts

With yadif filter - 55 fps
Without yadif filter - 140 fps

That is a big difference

Once again,
Thanks for the support
Avi

Paul
05-28-2015, 05:23 PM
Thanks for letting us know, Avi. We'll look into our use of the yadif filter.

Dion
06-04-2015, 05:28 PM
Hi Avi,
the yadif filter is used to de-interlace video frames when transcoding, if a file is not interlaced then it should have no effect. The yadif filter is always added to the ffmpeg commandline and there is no setting to disable this currently, we will investigate to see if there is a reliable method to detect when this filter should be used and only apply it in these cases.

This is actually not true. If you delace a 1080p stream it cuts the resolution in half. It basically becomes a 720p upscaled to 1080p. And if the source file has any 1080p details they will get striped out.

Peter
06-05-2015, 09:05 AM
Hi Dion,
thanks for the information, we are working on detecting interlaced videos for Mezzmo 5.0 and only adding the yadif filter for those detected as interlaced.