VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hello.

    I'm using avisynth and my video files have different audio/video length thanks to capturing software. So audio usually ends sooner than video and megui (soft I use to encode it) encodes video and audio separately so if the first file (GoW-13) have shorter audio length than next files, it will be out of sync.

    Code:
    DirectShowSource("GoW-13.mp4", FPS=59.940, convertfps=true)+\
    DirectShowSource("GoW-14.mp4", FPS=59.940, convertfps=true)+\
    DirectShowSource("GoW-15.mp4", FPS=59.940, convertfps=true)
    Is there some way in avisynth to match audio/video length? I know I can just add blank clip there and figure out how many frames of audio are missing so it adds audio length and encode audio track with that but I'd like to look for other ways as well. Thank you.

    Image
    [Attachment 45660 - Click to enlarge]
    Quote Quote  
  2. Trim(0,0) will make audio as long as the video. If you want to splice use the aligned splice (++ operator instead of +).

    http://avisynth.nl/index.php/Splice
    http://avisynth.nl/index.php/Trim
    Quote Quote  
  3. Oh. So instead of

    Code:
    DirectShowSource("GoW-13.mp4", FPS=59.940, convertfps=true)+\
    DirectShowSource("GoW-14.mp4", FPS=59.940, convertfps=true)+\
    DirectShowSource("GoW-15.mp4", FPS=59.940, convertfps=true)
    I do this?

    Code:
    DirectShowSource("GoW-13.mp4", FPS=59.940, convertfps=true)++\
    DirectShowSource("GoW-14.mp4", FPS=59.940, convertfps=true)++\
    DirectShowSource("GoW-15.mp4", FPS=59.940, convertfps=true)
    Quote Quote  
  4. Originally Posted by martanius View Post
    Oh. So instead of

    Code:
    DirectShowSource("GoW-13.mp4", FPS=59.940, convertfps=true)+\
    DirectShowSource("GoW-14.mp4", FPS=59.940, convertfps=true)+\
    DirectShowSource("GoW-15.mp4", FPS=59.940, convertfps=true)
    I do this?

    Code:
    DirectShowSource("GoW-13.mp4", FPS=59.940, convertfps=true)++\
    DirectShowSource("GoW-14.mp4", FPS=59.940, convertfps=true)++\
    DirectShowSource("GoW-15.mp4", FPS=59.940, convertfps=true)
    Yes. Then if it still goes out of synch you'll know it's not because of the different lengths. I have a little trouble believing your length differences (13ms, if the same for all three) are responsible for any noticeable asynch, even if adding the first two differences together (26ms).
    Quote Quote  
  5. It might not be noticable right away, but when I put like 10 video files and all have this length difference it will be noticable at least in the last one surely.
    And it is not always the same length difference. Thank you for help I'll try that.
    Quote Quote  



Similar Threads

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