Log in

View Full Version : Noisy interlaced DVBT PAL SD video


vooyeq
22nd February 2014, 18:50
Hi there,

I am currently trying to deal with the following video:
https://www.dropbox.com/sh/vq6v2c3i9hs4zkz/608EpYYjij/clips.zip

Using QTGMC at the moment, the script is:

SetMemoryMax(512)
SetMTMode(3)

source = AVCSource("clip.dga")

SetMTMode(2)

source.ConvertToYV12(interlaced = true)

QTGMC(source, Preset="Slower", EZDenoise=4.0, NoisePreset="Slower", EdiThreads = 2, ShowNoise = 0)
SelectEven()


Although the result is quite satisfactory, 5 frames per second isn't. I am wondering whether it is possible to speed things up a bit, maybe use other filters to achieve similar results. Can any of You guys have a look at this, help appreciated.

Thanks,
Bart

manono
23rd February 2014, 01:10
They're not interlaced, just phase-shifted (and framerate-doubled with the interlacing retained for some odd reason). Try this:

FFVideoSource("clip_2.mp4")
SelectEven()
TFM(PP=0)

I used 'PP=0' to demonstrate no deinterlacing is being done. It might be a good idea to remove it for the encode, just in case. Or am I missing something obvious?

vooyeq
23rd February 2014, 09:19
Well, using above script I am getting this:

http://k3310ph.amperpol.com/clip.png (http://www.herbatynalyczek.pl/clip.png)

manono
23rd February 2014, 12:16
Well, using above script I am getting this:

How often? Only once in awhile? That's from your clip_2.mp4, right? I don't see any interlacing in any of it, including that frame. My suggestion wasn't to use that script:

I used 'PP=0' to demonstrate no deinterlacing is being done. It might be a good idea to remove it for the encode, just in case.
While using it on your samples resulted in no interlaced frames, I can't swear it will work for the whole thing.

Maybe someone else can have a look and confirm (or disprove) my findings. My main point it that it's not a good idea to deinterlace when something can be field-matched. Plus, it's a helluva lot faster than QTGMC. By the way, if you do the SelectEven followed by a bob:

SelectEven
Yadif(Mode=1)

you'll notice all frames have a duplicate, more proof it's progressive and not interlaced.

vooyeq
23rd February 2014, 15:14
Definitely not arguing this is an interlaced source :)

But still, something's wrong:

clip_3

+

FFIndex("q:\_SENSACJE_\ts\clips\clip_3.mp4", demuxer="lavf")
FFVideoSource("q:\_SENSACJE_\ts\clips\clip_3.mp4", seekmode=0, threads=1)

AssumeBFF() # was shaky w/o it

SelectEven()

TFM()


=

screen (http://k3310ph.amperpol.com/clip_3.png)
vid (https://www.dropbox.com/s/brcj9kxf52n2uxe/clip_3_avisynth.mkv)

( the guy in bottom left )

manono
23rd February 2014, 23:03
Don't know what to tell you. Maybe different FFVideoSource's?

FFVideoSource("clip_3.mp4")
SelectEven
TFM(PP=0)

Vid (http://www.firedrive.com/file/CBDEA3156E967E4D)

vooyeq
24th February 2014, 08:04
That IS weird. What version of Avisynth / ffms2 you have ?

I have:

Avisynth 2.6 MT by SEt, stable 2013.03.09

ffms2 v. 2.17

manono
24th February 2014, 09:37
The AviSynth is 2.60, some MT version. The ffms2.dll is something from 2012. More than that I know not. Have you tried my script just as I have it, without the additional stuff you have? Just for testing? What I showed above was the entire script I used.

vooyeq
24th February 2014, 11:13
At work atm. Used your script but with MT.

Result in post #3 =
SetMTMode(3)
FFVideoSource("clip_2.mp4")
SetMTMode(2)
SelectEven()
TFM(PP=0)

Avisynth docs recommend the following addition for ffdshow:
SetMTMode(1)
GetMTMode(false) > 0 ? distributor() : last


Will try two scenarios:
1. FFVideoSource("clip_2.mp4")
SelectEven()
TFM(PP=0)
2. SetMTMode(3)
FFVideoSource("clip_2.mp4")
SetMTMode(2)
SelectEven()
TFM(PP=0)
SetMTMode(1)
GetMTMode(false) > 0 ? distributor() : last

vooyeq
24th February 2014, 17:19
Finally, three ffms2 versions later.... I've deleted .ffindex file and let it reindex the clip. Works now !

Thanks for help, now on to degraining....