VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    I'm using this avisynth script:

    LoadPlugin("MPEGDecoder.dll")
    MPEGSource("d:\canyon.vob")
    ConvertToYUY2
    Bob() # Separate fields and interpolate them to full height.
    BicubicResize(720, 576) # Resize to PAL square-pixel frame size. (Use 720,576 for CCIR.)
    ConvertFPS(50) # Convert field rate to PAL, using Blend Mode.
    SeparateFields.SelectEvery(4, 0, 3) # Undo Bob, even field first. Use SelectEvery(4, 1, 2) for odd field first.
    Weave # Finish undoing Bob.

    The result of this is quite confusing:

    When I play the original canyon.vob in PowerDVDŽ, the rpeorted length is 24 s, when I extract the mpeg out of this vob: 37s.
    The converted file (from above script) is 37 sec too (as expected and the frame count went from 1136 (@29.97fps) to 948 (@25fps).
    I extracted the wav and the length was 37 sec.
    So I ended with a mpv and a wav with exactly the same length.So theoretically, the movie should be in sync, right?
    Wrong, after authoring to a new vob, the audio was about 5 sec delayed and the vob played 34 sec in PowerDVD and no sync
    .

    Any ideas, how this happened? Why does it play originally 24 sec, the extraction gave 37+sec, the conversion to PAL too (including) wave length and after authoring everythings goes wrong!
    Quote Quote  
  2. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    More starnge findings:
    When I open the avisynth script with Vdub, add the audio and save as compressed avi, everything is perfect in sync.
    After that, Iencoded the avi with CCE and authored the result, everything's perfect still:movie and audio both are the same length (37 sec) and are in sync.
    Do I have to make an avi at last?
    Quote Quote  
  3. Member DJRumpy's Avatar
    Join Date
    Sep 2002
    Location
    Dallas, Texas
    Search Comp PM
    DragonSF, your post is confusing

    What is your source material? (29.97, or 23.976)?

    Is it true interlaced, telecined, or progressive?

    Your using CCE + AVISynth right?
    Impossible to see the future is. The Dark Side clouds everything...
    Quote Quote  
  4. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    I think (while trying to answer your question), I found the problem (maybe not the solution):
    The DVD is progressive and 29.97 (according to BV) and has 150160 frames.
    The AVIs (from DVD2AVI) show 23.976 fps, 150191 frames giving 104.404 min.
    The mpg (from AviSynth) give 156606 frames->1:44:404 min
    and the audio is 104.240 min.

    The problem seems to be the info, that the source is 29.97 NTSC while in reality it is 23.976.When I make the AVI with DVD2AVI, looks like the program sets FORCE FILM correctly, while framserving (from AviSynth directly) presumes the wrong framerate.

    So IMHO when video length (in min) is the same as audio (maybe some lag added), the result should be in sync!?
    Quote Quote  
  5. Member DJRumpy's Avatar
    Join Date
    Sep 2002
    Location
    Dallas, Texas
    Search Comp PM
    I wouldn't use Bitrate Viewer to determine the type of frames. Mine reports interlaced for telecined material . Use DVD2AVI to determine what type of source your working with. Just hit F5 to preview. If your Frame Type flashes between progressive and interlaced, and your Video Type reports FILM, then your source is probably telecined. Use the FORCE FILM option to ignore the pulldown flags. Your output will be true 23.976 fps.

    What does DVD2AVI report when you preview it?
    Impossible to see the future is. The Dark Side clouds everything...
    Quote Quote  
  6. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    DVD2AVI says clearlyrogressive/23.976/FILM!
    Quote Quote  
  7. Member DJRumpy's Avatar
    Join Date
    Sep 2002
    Location
    Dallas, Texas
    Search Comp PM
    Then use the Force Film option. Your output should be 23.976 fps. This is the best possible situation, as your output from DVD2AVI will be progressive, with no interlacing, or artifacts.

    Don't stress too much over the reported length you get from a VOB. I would trust the timelength reported by CCE, from your AVS file.
    Impossible to see the future is. The Dark Side clouds everything...
    Quote Quote  
  8. Member
    Join Date
    Sep 2001
    Location
    Japan
    Search Comp PM
    That's exactly what I did:I extracted the avis before converting and load them from the script.Guess whaterfect NTSC-PAL conversion, no stuttering/jerky movemants and in -sync.Looks the mpeg (from vob) get the fps wrong (or I used it the wrong way),
    What can I tell:ends well, everythings's well.
    Avisynth lesson learned and I'm expecting more to come.My next project is to convert/adapt my badframe finder into automatic cutter.
    Quote Quote  



Similar Threads

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