I have copied a video from my dvr to my pc as a .ts. I then make a .d2v with DGindex. Then i encode to dvd with HCenc with interlaced checked. Now , I want to deinterlace it but everything I try gets me studering or unwatchable video.
Here is the code I am using:
Any help would be great, I want the video to stay as sharp as I can keep it, I don't need to deinterlace but when I didn't it looked worse on my TV.Code:LoadPlugin("LeakKernelDeint.dll") MPEG2Source("070419212821.new.Part.2_Fixed.d2v") LeakKernelBob(Order=1) Crop(4, 60, 0, -58) AddBorders(0, 0, 2, 0) Lanczos4Resize(720, 480) SeparateFields() SelectEvery(4,1,2) Weave()
+ Reply to Thread
Results 1 to 9 of 9
-
-
Hi-
Why do you want to deinterlace it? If you're encoding it in HCEnc and it plays all jumpy in your standalone DVD player, then the field order was set incorrectly either in your AviSynth script or in the encoder. Knowing and keeping the field order is very important when dealing with interlaced video. If you "want the video to stay as sharp as I can keep it", then keeping it interlaced is the way to go when encoding for DVD.
If you really want to deinterlace it, like for AVI or something, then LeakKernelDeint(Order=x) (where x=0 if BFF or x=1 if TFF) is how you do it. Forget all that other stuff you wrote.
I'll assume you know how to tell if you have TFF or BFF video. If you don't, then read the
LeakKernelDeintHelp.html included with LeakKernelDeint. -
In Media Info is says its tff, but after opening it with virtualdub I realized is was actually bff. So how would I properly encode this with HCenc and leave it interlaced?
-
So you separated the fields to check, got the stuttering with AssumeTFF().SeparateFields(), and got smooth playback using AssumeBFF().SeparateFields()? So you're sure it's BFF now? In that case, open that script above in HCEnc 0.20. In the main screen check the interlaced box under miscellaneous. Then go to the Settings 1 Tab and tick BFF and Alternate in the top left.
I'm assuming you did the test on the source using a basic script, rather than your script above. I could be wrong, though. And based on what you've said, it seems both the source and the script output BFF. I'd change that script slightly, now that you know your source is BFF (?):
LoadPlugin("LeakKernelDeint.dll")
MPEG2Source("070419212821.new.Part.2_Fixed.d2v")
AssumeBFF()
LeakKernelBob(Order=0)
Crop(4, 60, 0, -58)
AddBorders(0, 0, 2, 0)
Lanczos4Resize(720, 480)
SeparateFields()
SelectEvery(4,0,3)
Weave()
ConvertToYV12(Interlaced=True) -
Alright so I got the the deinterlacing to work correctly but I would like to leave it interlaced but no matter how I encode it the video is jerky on my dvde. Any tips on how to encode this?
-
I had similar issues recently. The guys on doom9.org said that while DGIndex reports it as BFF you should you should encode (for DVD purposes) as TFF.
I assume the original clip is 1080i, correct? You should resize for DVD resolution and then Bob. Then try this script (modify as needed):
LoadCPlugin("yadif.dll")
mpeg2source("f:\1workfolder\working\disc1\game.d2v ")
bicubicresize(704,height) # resize to DVD rez & speeds up encode
yadif(mode=1) #Bob
converttoyuy2()
bicubicresize(width,480) # resize again to DVD rez
addborders(8,0,8,0)
assumetff()
separatefields().selectevery(4,0,3).weave() # interlace
I encoded in CCE Basic as TFF interlaced and works like a charm.
Or you can check the thread I started here: http://forum.doom9.org/showthread.php?t=124628 -
Thanks, but my video is matted 480i (528x480), how should I change your script? I want to crop the top and bottom and not sure where the crop goes.
-
but I would like to leave it interlaced but no matter how I encode it the video is jerky on my dvde.
Eh? Did you follow my advice and test it out by adding the AssumeBFF().SeparateFields() at the bottom of the script before sending to the encoder:
Before sending to the encoder, I'd test it one last time in VDub, just to be sure. Add an AssumeBFF().SeparateFields() to the end (below the Convert line) and see if it plays smoothly in VDub. Better safe than sorry.
If that played smoothly, and if you set up HCEnc as instructed, then you should have gotten a BFF result. You can open the resulting MPV or M2V in DGIndex, run the Preview, and it'll tell you if BFF or TFF. A standalone DVD player should be able to play BFF material with no problems. I've seen retail DVDs with interlaced BFF material that play fine in my DVD player. There's no requirement for DVD that interlaced material be TFF.
DVWannaB is being somewhat incomplete in his advice, because if he encoded for TFF, then, with that script, his source was also TFF, while yours is BFF. If you'd like to encode for TFF, set up HCEnc as you did the very first time (ignoring the BFF tick-box in the Settings1 Tab. And try this script:
LoadPlugin("LeakKernelDeint.dll")
MPEG2Source("070419212821.new.Part.2_Fixed.d2v")
AssumeBFF()
LeakKernelBob(Order=0)
Crop(4, 60, 0, -58)
AddBorders(0, 0, 2, 0)
Lanczos4Resize(720, 480)
SeparateFields()
SelectEvery(4,1,2)
Weave()
ConvertToYV12(Interlaced=True)
The bold-faced part turns it around from BFF to TFF. I hope you're testing with DVD-RWs. :) -
I was under the assumption, since you didnt say that your clip was 1080i. Disregard what I posted.
Similar Threads
-
Pioneer DVR-520h or DVR-220 or DVR-225 replacement DVD-RW drive
By psymaster in forum Newbie / General discussionsReplies: 1Last Post: 31st Oct 2009, 19:48 -
Pioneer DVR-520h or DVR-220 or DVR-225 replacement DVD-RW drive
By psymaster in forum Latest Video NewsReplies: 1Last Post: 31st Oct 2009, 17:26 -
Problem with deinterlace heeeeeeeelp!!!
By zikario507 in forum DVD RippingReplies: 21Last Post: 9th Aug 2009, 21:20 -
Tv Tuner (deinterlace) Problem
By harry29 in forum ComputerReplies: 1Last Post: 5th Mar 2009, 12:17 -
Alparysoft Deinterlace for AVISynth problem
By _migz_ in forum Video ConversionReplies: 5Last Post: 3rd Aug 2007, 07:54