View Full Version : 'Double Rate' Deinterlace with ffdshow
futurex
15th October 2005, 05:02
Hi,
I decode all mpeg-2 (digital tv streams) with 'moonlight elecard decoder', in vmr9 windowed. the only way to deinterlace pal interlaced stuff without artefacts (and without huge cpu load, which is why i like dscaler) is to use its 'double rate' deinterlace mode. this, according to the pdf manual for the program, "generates one progressive frame from every field".
i want to simulate this effect in using dscaler + ffdshow (in 'raw video'). using the 'double rate' in ffdshow is not good, it still gives artefacts, as well as an quick, repeating changes in brightness. i've tried both of dscalers deinterlacing modes, still nothing. i also tried recock, but all it did was make it go twice as fast.
i'm thinking maybe this can be done through an avisynth filter/script in ffdshow
please please help! :)
Leak
15th October 2005, 11:43
i want to simulate this effect in using dscaler + ffdshow (in 'raw video'). using the 'double rate' in ffdshow is not good, it still gives artefacts, as well as an quick, repeating changes in brightness. i've tried both of dscalers deinterlacing modes, still nothing. i also tried recock, but all it did was make it go twice as fast.
In ffdshow, give the "Kernel Bob" deinterlacer a try - it does what you want, i.e. it makes a frame out of every field, but probably at better quality than "double rate".
Of course, to get really fluid motion out of any video, you should also set your monitors refresh rate to an even multiple of the (deinterlaced) video's frame rate, so if you use kernel bob on 50 fields per second PAL material you should use 50 (well, only on a TFT that supports it) or 100 Hz...
Using ReClock in conjunction with what I said above of course is not a bad idea, either. :)
futurex
15th October 2005, 13:29
thanks for the help leak, but i tried kernel bob, and all other ffdshow de-interlacing methods. kernel bob easily worked the best, but i get a "pulsating" effect, where the brightness goes up and down very quickly and repeatedly. this only happens when i use the 'picture properties' function of ffdshow, which changes the brightness/contrast/saturation. the picture properties function is one of the reasons i use ffdshow in the first place :D
please tell me you've got something else up your sleeve! :)
ExtraEye
15th October 2005, 22:50
i don't understand mu8ch about this but maybe you should put the deinterlacing first, before the picture properties function.
it sounds to me like you're first changing the picture and after that add the frames.
maybe that's the reason.
although im probably wrong...
Leak,
i never really understood what reclock does... how will it help in deinterlacing if you don't mind me asking?
futurex
16th October 2005, 07:16
extraeye, you are a LEGEND! :) :) :) :)
i forgot about the order, and deinterlacing was originally (default) set before picture properties. i moved picture properties above deinterlacing, and it is much much smoother!
will do some more testing though to get the best results :D
Leak
16th October 2005, 14:17
Leak,
i never really understood what reclock does... how will it help in deinterlacing if you don't mind me asking?
It doesn't really help in deinterlacing, but it helps to prevent repeated/dropped frames so the playback will be really smooth.
While you can set your display's refresh rate to an even multiple of the video's frame rate, you probably can't set it to the exact same value, so the screen refresh and video playback will happen at slightly different speeds, therefore after some time a frame will have to be dropped or duplicated by the renderer to maintain sync. For example - if the refresh rate and the frame rate are just off by 1 Hz, this will have to be done every second.
Reclock adjusts the video's frame rate so it'll exactly match the screen's refresh rate, and it will also change the sound's playback speed so it'll stay in sync; i.e. it fixes the other problem (besides de-interlacing) you get when playing videos on a PC when compared to playing them on a TV - which is that a PC monitor, contrary to a TV, doesn't have a fixed refresh rate that will "just work" with TV broadcasts, DVDs and what-have-you...
np: Múm - Asleep On A Train (Yesterday Was Dramatic, Today Is OK)
ExtraEye
16th October 2005, 14:25
so should reclock be used by anyone or only people that want to watch movies from the pc on tv?
Leak
16th October 2005, 18:29
so should reclock be used by anyone or only people that want to watch movies from the pc on tv?
Well, it probably helps both - playing video on a monitor and TV. It's your choice if you use it or not...
np: Porn Sword Tobacco - Watts Towers (Explains Freedom)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.