VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Hello,
    I'm trying to add a second audio track to a mkv file.

    The second track comes from an avi file which i extracted using AoA Audio Extractor. I Then used belight making sure the Sample Rate was 48000Hz and the bitrate at 192kbps which the original audio track is set at.

    Then using mkvmerge i set the delay for the audio track a second back to sync up the audio and video. Then merged it.

    When playing it starts perfectly then slowly goes out of sync more and more into the movie till the point where the audio is totally in a different scene then the video.

    I left the delay option alone to see if that was doing it but it was not.

    How do i fix this?

    BTW the avi file is 23.976fps and the MKV is 25fps.

    Thanks in advance
    Last edited by sirius247; 25th Jul 2010 at 16:51.
    Quote Quote  
  2. Originally Posted by sirius247 View Post
    BTW the avi file is 23.976fps and the MKV is 25fps.
    Don't you think that might have something to do with it? Either speed up the audio to match the 25fps video, or slow the video (and the original audio) to 23.976fps.
    Quote Quote  
  3. Originally Posted by manono View Post
    Originally Posted by sirius247 View Post
    BTW the avi file is 23.976fps and the MKV is 25fps.
    Don't you think that might have something to do with it? Either speed up the audio to match the 25fps video, or slow the video (and the original audio) to 23.976fps.

    Yep just did that and am getting the same results.

    I used Belight, maybe i should try something else to speed up the audio to 25fps. Any software suggestions?
    Quote Quote  
  4. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    How did you speed up the audio?
    I think,therefore i am a hamster.
    Quote Quote  
  5. Originally Posted by johns0 View Post
    How did you speed up the audio?
    In Belight i clicked on advanced settings and selected "Convert framerate from" and inputed 23976 to 25000

    and then ran BeLight
    Quote Quote  
  6. OK tried something different,

    I extracted the h264 video file using mkvextract. Then using mkvmerge GUI i change the framerate under 'Format specific options' to 23.976024.

    Then i merged that file with the audio file.

    It is PERFECT at first, then the audio starts going faster then the video now!!
    lol

    Im out of ideas
    Last edited by sirius247; 25th Jul 2010 at 18:46.
    Quote Quote  
  7. Member
    Join Date
    Jun 2007
    Location
    United States
    Search Comp PM
    Fixing the framerate is a start, but the real issue is simply length. You said this audio track was from a different video, so apparently the length isn't a perfect match. Get the _exact_ length of both the audio file and the video it's going on, divide, and then stretch/shrink the audio as appropriate before grafting it on.

    Example: When I'm using Virtualdub to convert a 25 fps video to 23.976 fps (I _hate_ the PAL speedup effect), I use its advanced "stretch" audio filter with a ratio of 1.04271. Perfect sync, every time.

    Audacity has a stretch function, but the early version I used to use only went to two decimals, which wasn't precise enough for movie-length files. I don't know if current versions are better; otherwise, I'm sure someone here can recommend an audio tool that will do it.
    Quote Quote  
  8. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Audacity lets you stretch or shrink with better precision now,up to .001 change.
    I think,therefore i am a hamster.
    Quote Quote  
  9. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Use Audacity's "Change tempo" effect; you specify either percent or the exact length of the new audio.
    Quote Quote  
  10. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    Originally Posted by AlanHK View Post
    Use Audacity's "Change tempo" effect; you specify either percent or the exact length of the new audio.
    You might want to use the change speed if you want the pitch to match the original file.
    I think,therefore i am a hamster.
    Quote Quote  
  11. Ok thanks for the help guys.
    Now how would i use Audacity? I loaded my extracted ac3 audio file into it. and then Selected it all, when i go to change speed im not sure exactly what to put in?

    My video file length is: 43:11 and the audio is: 43:07

    I played around with the change speed but when i export it as a mp3 i ended up getting a blank file 8kb in size.

    Not sure what im doing wrong

    BTW. I installed Lame Encoder so this should work..
    Also cant use VirtualDub as it wont read my MKV(original video) file
    Last edited by sirius247; 26th Jul 2010 at 05:58.
    Quote Quote  



Similar Threads

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