VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    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:
    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()
    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.
    Quote Quote  
  2. 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.
    Quote Quote  
  3. Member
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    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?
    Quote Quote  
  4. 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)
    And encode for BFF as explained above. The changes and additions are boldfaced. I don't know for sure that the ConvertToYV12(Interlaced=True is strictly necessary, as HCEnc seems to be interlace aware, but it can't hurt. 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. I don't mess with interlaced material very often, and I've also been tripped up before, just as you were (Hi jagabo!).
    Quote Quote  
  5. Member
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    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?
    Quote Quote  
  6. Member DVWannaB's Avatar
    Join Date
    Dec 2001
    Location
    United States
    Search PM
    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
    Quote Quote  
  7. Member
    Join Date
    Dec 2002
    Location
    United States
    Search Comp PM
    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.
    Quote Quote  
  8. 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.
    You can also add Info() to the bottom of the script and it'll tell you the final field order.

    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. :)
    Quote Quote  
  9. Member DVWannaB's Avatar
    Join Date
    Dec 2001
    Location
    United States
    Search PM
    I was under the assumption, since you didnt say that your clip was 1080i. Disregard what I posted.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!