Avisynth script needs help please

Discussion in 'MPEG-1 and MPEG-2 encoding (AVI to DVD)' started by cos702003, Oct 2, 2005.

  1. cos702003

    cos702003 Member

    Joined:
    Oct 2, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    11
    I am trying to convert a PAL DVD to an NTSC DVD using Avisynth and CCE sp. I have successfully done this several times before, but when I reformatted my computer, I lost the script I was using and have been having difficulties since.

    My current script is as follows:

    Loadplugin ("C:\Program Files\AviSynth 2.5\plugins\dgdecode.dll")
    mpeg2source ("E:\DVD\B DGIndex\test.d2v")
    AssumeFPS(25, true)
    Lanczos4Resize(720,480)

    My problem is that when CCE finishes, I have a perfectly beautiful movie, only it's still in it's original 720 x 576 resolution?
    When encoding in CCE, I selected "close all GOPS" and "dvd compliant" in the video options, otherwise leaving everything else alone.

    Can someone steer me in the right direction as to what I'm doing wrong? Is it necessary to resize BEFORE the AssumeFPS command?

    Thanks,
    Cos
     
  2. cos702003

    cos702003 Member

    Joined:
    Oct 2, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    11
    Problem solved.
    It helps to read the manual :/

    Dvd-compliant is forcing the resolution to stay at 720 x 576 because I am not changing the framerate as well, in order to keep audio synced up. Had I used 29.976 as my desired framerate, cce would have automatically resized the mpeg for me. The downside to this being a longer movie, and hence out of synch audio.

    peace

     
  3. Minion

    Minion Senior member

    Joined:
    Sep 28, 2003
    Messages:
    5,623
    Likes Received:
    0
    Trophy Points:
    116
    If you are Trying to encode a Pal DVD to NTSC then you Should have used this Script instead:

    Loadplugin ("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec.dll")
    mpeg2source ("E:\DVD\B DGIndex\test.d2v")
    AssumeFPS(23.976,true)
    Lanczos4Resize(720,480)

    Also you should have Loaded in your Audio file into your Script so AVISynth can Change it so it will sync up with your NTSC Video file because when you use the "AssumeFPS" command it changes the Length of your Video file so you have to also load in your Audio file so it can change the Length of it so it syncs up with the Video so maybe a Script like this would be better...

    Loadplugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec.dll")
    Loadplugin("C:\Program Files\AviSynth 2.5\plugins\AC3Source.dll")
    mpeg2source("E:\DVD\B DGIndex\test.d2v")
    AC3Source("E:\DVD\B DGIndex\Test.ac3")
    AssumeFPS(23.976,true)
    Lanczos4Resize(720,480)

    Then encode it in CCE at 23.976fps with 2:3 or 3:2 Pulldown enabled and you will end up with a NTSC Video File and an audio file that are in Perfect sync...To use this Script you will have to have the AC3Source.dll Plugin on your System....

    Cheers
     
  4. cos702003

    cos702003 Member

    Joined:
    Oct 2, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    11
    Thanks for your advice Minion, I really appreciate your help.

    I read this method of yours in another thread here and tried it before with no success. For some reason, I could not get the ac3source.dll to work properly. Because of this, I have only been able to achieve acceptable results by resizing the pal stream, leaving it at 25fps, then applying dgpulldown 25->29.976. Using this method, the audio doesn't need any editing because the video file remains the same length.
    What are the disadvantages of using this method?

    Is this plugin capable of handling multiple audio streams? I prefer to add the DTS track to my backups as well as the dolby 5.1 stream.
    If so, what syntax would I use for my script? Just add each stream in separate command lines?

    thanks again for your time.
     
  5. Minion

    Minion Senior member

    Joined:
    Sep 28, 2003
    Messages:
    5,623
    Likes Received:
    0
    Trophy Points:
    116
    I don"t think you can Load DTS into your Script as DTS Is not a Very well supported Format...

    If you want the AC3Source.dll to work properly you should Try installing this AC3 decoder as it works well with AVISynth:

    AC3ACM Decompressor
    http://fcchandler.home.comcast.net/AC3ACM/AC3ACM.zip

    I don"t think you can Use seperate audio Streams because I don"t think CCE can read Multiple audio streams....

    If you want to use the DGPulldown Method then you simply use a Basic Script like this:

    Loadplugin ("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec.dll")
    mpeg2source ("E:\DVD\B DGIndex\test.d2v")
    Lanczos4Resize(720,480)
    And Load it into CCE SP and set the Framerate to 25fps and make sure CCE doesn"t resize it back to 720+576 (Do not select the "DVD Compliant" Box) and encode it to Mpeg-2 and after words use DGPulldown on the File and everything should work perfectly....

    Cheers
     

Share This Page