VideoHelp Forum




+ Reply to Thread
Results 1 to 19 of 19
  1. Hi all I recorded a video on my bike camera, but the audio is not in line with the video. as I pressed my bike horn at someone I know, but it didn't sound until I was well past my friend like much further down this road. what's best easy program to line up the audio with video

    my video is a AVI
    Last edited by natty; 13th Sep 2025 at 05:43.
    Quote Quote  
  2. Use VLC player to find the correct delay (Tools, Track synchronization).
    Once you have found the correct value, use clever FFmpeg-GUI to remux your AVI file with this value.
    (Main page, multiplex, insert the found value in the delay column of the audiostream, set avi as container, click multiplex. Done).

    Image
    [Attachment 88697 - Click to enlarge]
    Quote Quote  
  3. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    AVIDemux should do it. Use the audio "shift". Set it up like this (adjusting the shift as necessary, of course); note Video>Copy, Audio>Copy, Output Format AVIMuxer:

    Image
    [Attachment 88701 - Click to enlarge]


    You can only change the shift value with the video stopped ie not playing.
    Quote Quote  
  4. Originally Posted by Alwyn View Post
    AVIDemux should do it. Use the audio "shift". Set it up like this (adjusting the shift as necessary, of course); note Video>Copy, Audio>Copy, Output Format AVIMuxer:

    Image
    [Attachment 88701 - Click to enlarge]


    You can only change the shift value with the video stopped ie not playing.
    where do you use the audio shift. oh i think I can see now its on -500 but then do I play video then save or just save while its paused

    just tried -500 saved while it was paused but its still same
    Last edited by natty; 13th Sep 2025 at 07:55.
    Quote Quote  
  5. Originally Posted by ProWo View Post
    Use VLC player to find the correct delay (Tools, Track synchronization).
    Once you have found the correct value, use clever FFmpeg-GUI to remux your AVI file with this value.
    (Main page, multiplex, insert the found value in the delay column of the audiostream, set avi as container, click multiplex. Done).

    Image
    [Attachment 88697 - Click to enlarge]
    I dont have a clue how to do all this at all Im a newbie I did the tools thing

    Image
    [Attachment 88702 - Click to enlarge]
    Quote Quote  
  6. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    just tried -500 saved while it was paused but its still same
    Just do a File>Save. It works here.

    Here's the MediaInfo readout of the delay I saved in my file:

    Image
    [Attachment 88704 - Click to enlarge]
    Quote Quote  
  7. Image
    [Attachment 88705 - Click to enlarge]



    its still well out of sync no different
    Last edited by natty; 13th Sep 2025 at 08:31.
    Quote Quote  
  8. Member hech54's Avatar
    Join Date
    Jul 2001
    Location
    Yank in Europe
    Search PM
    Originally Posted by natty View Post
    Originally Posted by Alwyn View Post
    AVIDemux should do it. Use the audio "shift". Set it up like this (adjusting the shift as necessary, of course); note Video>Copy, Audio>Copy, Output Format AVIMuxer:

    Image
    [Attachment 88701 - Click to enlarge]


    You can only change the shift value with the video stopped ie not playing.
    where do you use the audio shift. oh i think I can see now its on -500 but then do I play video then save or just save while its paused

    just tried -500 saved while it was paused but its still same
    Then try a + value. Change the value, PRESS STOP, the PLAY again to check the result. Once it's matched up, COPY COPY SAVE (AS).
    Quote Quote  
  9. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Minus (-) values bring the audio forward so it plays earlier. Positive values delay the audio.

    Be methodical: start with 500, then go to 1000, then 1500 and so on to work out whether the sync is getting worse or better. Then go back to 0 and try the other way, with minus values. It can be tricky to work out which way it is. Try to find a sharp noise, or a period of silence then somebody starts speaking. That will make it easier to work out which way the offset is.

    And be ready to "fine-tune"; quite often, you'll notice out-of-sync of only 200ms (which is 5 frames of video at 25fps), so once you get close, change your increments down to 200ms or less.
    Quote Quote  
  10. Originally Posted by Alwyn View Post
    Minus (-) values bring the audio forward so it plays earlier. Positive values delay the audio.

    Be methodical: start with 500, then go to 1000, then 1500 and so on to work out whether the sync is getting worse or better. Then go back to 0 and try the other way, with minus values. It can be tricky to work out which way it is. Try to find a sharp noise, or a period of silence then somebody starts speaking. That will make it easier to work out which way the offset is.

    And be ready to "fine-tune"; quite often, you'll notice out-of-sync of only 200ms (which is 5 frames of video at 25fps), so once you get close, change your increments down to 200ms or less.
    Well at last I have fixed it, 1st I used VLC player and the Track Synchronization by pressing K & J and kept putting a minus value, until it was where I pressed my bike horn to a friend I saw on way. in the end it was -18500 which i added to AviDemux saved movie clip and now when I passed my friend I can hear me sounding the horn.

    I would never have known audio was out of sync its only because I noticed it when i played it back and my bike horn didnt sound when i passed my mate but much further on

    thanks to all who have helped
    Quote Quote  
  11. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    Yes, when it's out a fair way, it can be hard to work out which way to go. Glad you're sorted.

    And I didn't know about that J and K. That'll be handy.
    Quote Quote  
  12. what's best program for joining 2 movie clips, as I used Freemake Video Converter, but when i play joined up movie the 2nd part has no audio but do when before i join them
    Quote Quote  
  13. Originally Posted by natty View Post
    what's best program for joining 2 movie clips, as I used Freemake Video Converter, but when i play joined up movie the 2nd part has no audio but do when before i join them
    There are several programs that can do this.
    I use ffmpeg from command line.
    ProWo's Clever basically does the same from it's GUI.

    mkvtoolnix
    & even avidemux but the resolution has to be the same for each video.
    Quote Quote  
  14. Originally Posted by cholla View Post
    Originally Posted by natty View Post
    what's best program for joining 2 movie clips, as I used Freemake Video Converter, but when i play joined up movie the 2nd part has no audio but do when before i join them
    There are several programs that can do this.
    I use ffmpeg from command line.
    ProWo's Clever basically does the same from it's GUI.

    mkvtoolnix
    & even avidemux but the resolution has to be the same for each video.
    i wont have a clue about command line etc. I do have avidemux, but need to ask on youtube how to join clips with it
    Quote Quote  
  15. Originally Posted by natty View Post
    ...in the end it was -18500 which i added to AviDemux.
    You shouldn't correct such a large difference in this way.
    You will end up with a video with no image or a still image for 18.5 seconds.

    It is better to extract the audio track and delete the first 18.5 seconds in an audio editor,
    (g.e. Audacity) then save it and mux this new audio track with the video track.
    Quote Quote  
  16. Originally Posted by ProWo View Post
    Originally Posted by natty View Post
    ...in the end it was -18500 which i added to AviDemux.
    You shouldn't correct such a large difference in this way.
    You will end up with a video with no image or a still image for 18.5 seconds.

    It is better to extract the audio track and delete the first 18.5 seconds in an audio editor,
    (g.e. Audacity) then save it and mux this new audio track with the video track.
    How do you extract the audio then from video, also how do you add the audio back to vid once sorted
    Quote Quote  
  17. Originally Posted by natty View Post
    How do you extract the audio then from video, also how do you add the audio back to vid once sorted
    With clever FFmpeg-GUI.

    To extract the audiostream:
    Load your avi, click main page, click extract streams, select the audiostream only, click extract. Done.

    To add the new audiostream:
    Load your avi, click main page, click muliplex. Drag your new audiostream into the datagrid.
    On the left, select it, select the videostream too, deselect the original audiostream (shown in in blue).
    Set avi as container, click multiplex. Done.
    Last edited by ProWo; 15th Sep 2025 at 07:35.
    Quote Quote  
  18. Originally Posted by ProWo View Post
    Originally Posted by natty View Post
    ...in the end it was -18500 which i added to AviDemux.
    You shouldn't correct such a large difference in this way.
    You will end up with a video with no image or a still image for 18.5 seconds.

    It is better to extract the audio track and delete the first 18.5 seconds in an audio editor,
    (g.e. Audacity) then save it and mux this new audio track with the video track.
    ok thanks for this but how can you delete 18.5 secs of audio clip in Audacity can you do me a image please it would be most appreciated
    Quote Quote  



Similar Threads

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