Forum archive - Properly deinterlacing DV footage for H.264

http://www.supermediastore.com/



Forum Archive Home -> Video Conversion -> Properly deinterlacing DV footage for H.264



Properly deinterlacing DV footage for H.264

raffie posted 2009 Sep 20 08:35
Meaning, not just throwing half the information away, preferably using Premiere CS4 + Adobe Media Encoder CS4.


creamyhorror posted 2009 Sep 20 08:49
raffie :

My question is, is de-interlacing unavoidable? I use Adobe Media Encoder CS4, either with or without help from Premiere CS4.
Playing back the DV file shows no interlacing, after encode to H.264, interlacing becomes visible. What am I doing wrong?

Did you configure the project to be interlaced, and import the clip as interlaced? It sounds like AME is treating the import as progressive and simply exporting it as it is.



raffie posted 2009 Sep 20 09:05
Sorry, guess I'm a noob here, obviously I have to deinterlace, but in Premiere or Adobe Media ENcoder I cant seem to find another way to deinterlace except to throw away half the information. I'd need a deinterlace filter that blends frames like the one in VirtualDub, taht seems to give me the export quality I'm looking for.


poisondeathray posted 2009 Sep 20 09:06
raffie :
Meaning, not just throwing half the information away, preferably using Premiere CS4 + Adobe Media Encoder CS4.


If you mean bob deinterlacing (30i => 60p) , Adobe CS4 can't properly

If you mean decent quality, Adobe CS4 can't

Have a look of an example of the typical "quality" from AME deinterlacing here (look at the residual jaggies in the guitar strings):
http://forum.videohelp.com/topic371951.html

Either deinterlace before (preferred) by using avisynth and premiere avs import plugin, or encoding to a lossless deinterlaced intermediate for import , or deinterlace a lossless export (slightly worse quality with edited segments)

:

I'd need a deinterlace filter that blends frames like the one in VirtualDub, taht seems to give me the export quality I'm looking for.


Are you sure? blending is probably one of the worst ways to deinterlace . It gets rid of some jaggies, but becomes very blurry



raffie posted 2009 Sep 20 09:26
poisondeathray :

Are you sure? blending is probably one of the worst ways to deinterlace . It gets rid of some jaggies, but becomes very blurry


Well, I donwloaded a filter called 'smart deinterlacer' it does have more options to figure out ;)



poisondeathray posted 2009 Sep 20 10:35
raffie :

Well, I donwloaded a filter called 'smart deinterlacer' it does have more options to figure out ;)


"smart deinterlacer" isn't much better than adobe's deinterlacer...



creamyhorror posted 2009 Sep 20 11:10
I suggest you enter the mysterious world of Avisynth.


raffie posted 2009 Sep 20 11:27
poisondeathray :
raffie :

Well, I donwloaded a filter called 'smart deinterlacer' it does have more options to figure out ;)


"smart deinterlacer" isn't much better than adobe's deinterlacer...


O? So maybe you can tell me what is?

creamyhorror :
I suggest you enter the mysterious world of Avisynth.


Yes, I already had, used the deinterlacer, but I mustve done something wrong then, I still had the interlace-artefacting trouble.



creamyhorror posted 2009 Sep 20 11:29
raffie :

Yes, I already had, used the deinterlacer, but I mustve done something wrong then, I still had the interlace-artefacting trouble.

What deinterlacer? There are many Avisynth deinterlacers. What was the script you used?



poisondeathray posted 2009 Sep 20 11:30
Are you bob deinterlacing (double rate to 60p)? or single rate to 30p?

Best bob-deinterlacer is TempGaussMC_Beta1() , but it is very very very slow, and it blurs a bit to get rid of the shimmer from artifacts. Yadifmod+NNEDI2 is pretty good and 3-5x faster. Yadif alone is about 20-30x faster , but leaves significant artifacts (but still much better than Adobe's deinterlacer...)

Here is an older comparison of some bob deinterlacers (right click and save target as..)
http://forum.videohelp.com/images/guides/p1934885/stockholma_0-52 ... _tdtmm.avi



raffie posted 2009 Sep 20 11:41
creamyhorror :
raffie :

Yes, I already had, used the deinterlacer, but I mustve done something wrong then, I still had the interlace-artefacting trouble.

What deinterlacer? There are many Avisynth deinterlacers. What was the script you used?


I used nnedi2. This was the first time I tried using it and maybe didnt use the right settings, I learned a couple things today so maybe I will go back to seeing what AviSynth can do for me afterall.

poisondeathray :
Are you bob deinterlacing (double rate to 60p)? or single rate to 30p?

Best bob-deinterlacer is TempGaussMC_Beta1() , but it is very very very slow, and it blurs a bit to get rid of the shimmer from artifacts. Yadifmod+NNEDI2 is pretty good and 3-5x faster. Yadif alone is about 20-30x faster , but leaves significant artifacts (but still much better than Adobe's deinterlacer...)

Here is an older comparison of some bob deinterlacers (right click and save target as..)
http://forum.videohelp.com/images/guides/p1934885/stockholma_0-52 ... _tdtmm.avi


That is a very good comparison, and that TempGaussMC_Beta1() is nothing short of amazing. Gonna have to check it out, even though I thought it might be too slow to be actually useable ;)

Thanks for that link anyway, quite interesting!



poisondeathray posted 2009 Sep 20 11:46
raffie :

I used nnedi2. This was the first time I tried using it and maybe didnt use the right settings, I learned a couple things today so maybe I will go back to seeing what AviSynth can do for me afterall.



Post your script. And did you want 60p or 30p ?

DV-AVI is bottom field first. NNEDI2 alone is intra field deinterlacer only. Yadifmod+NNEDI2 will take info from other fields. But NNEDI2 alone is still many many times better than Adobe's deinterlacer in terms of quality.

:

That is a very good comparison, and that TempGaussMC_Beta1() is nothing short of amazing. Gonna have to check it out, even though I thought it might be too lsow to be actually useable ;)


You have to make that call, weighing the pros/cons for what meets your goals in terms of quality/speed trade offs. We are just here to provide options . But 1 thing is for certain: Adobe's deinterlacer is just about the worst choice



raffie posted 2009 Sep 20 11:57
This is the script I used, and yes, I had also used Yadifmod

:

AVISource("i:\capture\Video7.avi")
AssumeTFF()
Crop(32,84,-32,-92)
interp=nnedi2(field=3) #double rate, starts with top
yadifmod(order=1, field=-1, mode=1, edeint=interp) #TFF,field set to order,double rate
DoubleWeave().SelectEvery(4,1)


I got the code from somewhere on this forum, slightly adjusted...

First off, video is PAL so 25fps, and thats what the eventual output should be aswell (albeit 25P). I'm not sure what the effect of an intermediate 50fps step would be.

I downloaded the TempGaussMC filter, I could use some help with the filter settings both for the nnedi2/yadifmod method and the TempGaussMC method. Then see what the best method would be for me, I'd love to get that TempGaussMC quality, but cant have it take more than 12 hours for an hour of footage lol...



poisondeathray posted 2009 Sep 20 12:03
That script is for re-interlacing, not what you want to do...

PAL DV-AVI is 25frames /s , but 50 fields/s . You are dropping 1/2 the temporal resolution by single rate deinterlacing, and the result is choppier playback

Bob deinterlacing will make it silky smooth for playback @ 50 frames/s, but also larger filesizes because 2x the number of frames (usually requires 1.3-1.7x the bitrate, depending on the compression used)

For single rate PAL DV-AVI, just with NNEDI2
AVISource("video.avi")
NNEDI2()

For double rate PAL DV-AVI, just with NNEDI2:
AVISource("video.avi")
NNEDI2(field=2)

For single rate PAL DV-AVI, yadifmod+NNEDI2
AVISource("video.avi")
interp=NNEDI2(field=0)
Yadifmod(order=0, field=-1, mode=0, edeint=interp)

For double rate PAL DV-AVI, yadifmod+NNEDI2
AVISource("video.avi")
interp=NNEDI2(field=2)
Yadifmod(order=0, field=-1, mode=1, edeint=interp)

TempGaussMC_Beta1() is a bobber, so if you want to throw out 1/2 the frames then use selecteven() . Or take it out if you want 60p
AVISource("video.avi")
TempGaussMC_Beta1()
SelectEven()




Login/Register to our forum to be able to post here.








VSO Software ConvertXtoDVD lets you convert any video like AVI,MKV to DVD easily. More info or download trial!
About   Advertise   Forum   Forum Archive   RSS Feeds   Statistics   Tools