VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    This is sort of a "for next time" question since I found a work-around and the clips are done but...
    I had a 1 minute clip I needed to turn upside-down and backwards(mirrored) for a "driving in Australia" joke. I also had an audio clip that I wanted to add to the video....which was within 5 seconds duration of the video clip's duration. The clip was already sped up in AviDemux(the only thing I have that opens MJpeg clips reliably), outputted as HUFFYuv so VDub would accept it. I just need to adjust the framerate again to match the audio duration. The only problem is...the audio speed/pitch changed as well. I checked and unchecked the "Sync To Audio" box....nothing changed....the audio(44.1 WAV) was still playing very slowly. What did I do wrong? I also tried to remove the audio...then add it again hoping that would make it ignore the framerate change....nothing.
    My workaround was to get the audio clip and video to end precisely at the same time....remove the audio then output video only as a new file....then open the new file and re-add the audio(then of course to Xvid for uploading).
    Not vitally important that this is resolved....it's just bugging me. Thank goodness for big hard drives....
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Code:
    V=AviSource("video.avi")
    A=DirectShowSource("audio.wav")
    
    length=AudioLengthF(A)/AudioRate(A)
    frames=FrameCount(V)
    
    V
    FlipHorizontal()
    FlipVertical()
    
    AssumeFPS(frames/length)
    AudioDub(A)
    Last edited by AlanHK; 10th Dec 2010 at 03:11.
    Quote Quote  
  3. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    I would have done it AlanHK's way too, but to answer the question re VirtualDub, it should work if you simply select, in the Video Frame Rate dialog, the option "Change so video and audio durations match", no more, no less.

    I don't see a "Sync to audio" box (using version 1.8.6), but maybe that's the same thing in your version.

    EDIT: There is a 'sync to audio' under the Options menu, but that's just for playing the preview within VirtualDub and doesn't affect the output.
    Last edited by Gavino; 10th Dec 2010 at 05:00.
    Quote Quote  
  4. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    I have 1.8.5.....maybe I should upgrade someday huh?...
    Quote Quote  
  5. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by hech54 View Post
    I have 1.8.5.....maybe I should upgrade someday huh?...
    I probably should too (latest is 1.9.10), but the "Change so video and audio durations match" option is also available in 1.8.5.
    Quote Quote  
  6. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    Originally Posted by Gavino View Post
    Originally Posted by hech54 View Post
    I have 1.8.5.....maybe I should upgrade someday huh?...
    I probably should too (latest is 1.9.10), but the "Change so video and audio durations match" option is also available in 1.8.5.
    Found it....never noticed that before....
    Thanks....
    Quote Quote  



Similar Threads

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