Announcement

Collapse
No announcement yet.

Redrive the keyframes in Virtualdub

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davexnet
    Junior Member
    Junior Member
    • Feb 2003
    • 35

    Redrive the keyframes in Virtualdub

    Hello -
    I downloaded a 6-part tv series. First 5 parts I was able
    to convert to svcd pretty well. But part 6 is giving me a problem.

    If I play the avi in mediaplayer it plays ok. I'm saving the WAV,
    adjusting it (time stretch) by 104.27%, and reducing the frame
    rate to 23.976 from 25fps. This procedure worked well on the
    other episodes. (This how I'm doing PAL>NTSC)

    In this episode, the sound is unsychronized.
    It's not just out of synch in the mpg, the (new) avi is out of synch
    as well. (by about two seconds)
    Just for a laugh, I took the original avi and used the extended
    open to "redrive" the keyframes. It finished normally, but the
    new file only has 1 keyframe.

    I'm pretty sure I could feed the original AVI into tmpgenc
    and do PAL>NTSC, but the result will be a little jerky.
    Any thoughts appreciated.
    Dave
  • setarip
    Retired
    • Dec 2001
    • 24955

    #2
    "the (new) avi is out of synch as well. (by about two seconds)"



    A) If the difference between audio and video is constant throughout the video:

    Load the file into VirtualDub or NanDub.
    Set BOTH "Video" and "Audio" to "Direct Stream Copy".
    From the "Audio" dropdown menu, select "Interleaving"
    Under "Audio skew correction", set an appropriate number of milleseconds (positive or negative) in the box labelled "Delay audio track by"
    Save with a new filename

    B) If the difference increases as the movie plays:

    From under the "Video" dropdown menu, select framerate - and select "Change so video and audio durations match"

    Let us know of your success ;>}

    Comment

    • davexnet
      Junior Member
      Junior Member
      • Feb 2003
      • 35

      #3
      Hi Setarip,
      the audio became worse (late) as the 30 minute show
      progressed. Setting the durations the same did not help.
      Weird, but true.
      So I went back to the original AVI @ 25fps.
      And in tmpgenc, I set the video source = the avi,
      and for audio, pointed it to the extracted wav. (compresed,
      directly from the avi)
      I set the external mp2 tool (toolame) using tmpgencs
      environment settings, and chose the wav as the audio source.

      I selected the ntsc 352*480 template, 2400 avg, 2520 max
      300 min with pad and it came out great.

      *However* when I watch it on the TV, it is not quite as smooth
      as the first 5 episodes that I was able to reduce the fps to 23.976
      and successfully synch the sound before encoding inTMPG.
      Dave

      Comment

      Working...
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎