VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Hi guys, can somebody help with ffmpeg command without re-encoding.

    I want to combine:

    "video.ts" which already has 1 audio stream in it

    with (just to add):

    2 additional "audio.wav" streams with added delay of -440 ms.

    So the ending result would be a video file with 3 different audio streams.
    Last edited by Zer0lll; 7th Jul 2024 at 10:32.
    Quote Quote  
  2. P.S.
    Found out the exact delay, it's -910ms

    So what would be the right ffmpeg command for loseless combine with delay.
    Last edited by Zer0lll; 7th Jul 2024 at 10:33.
    Quote Quote  
  3. Originally Posted by Zer0lll View Post
    P.S.
    Found out the exact delay, it's -910ms
    ....
    How did you find out the "exact delay"?
    I have been using VLC > Tools > Track Synchronization to work it out but I wonder is there an easier and more accurate way?

    Flex
    Quote Quote  
  4. Originally Posted by Zer0lll View Post
    P.S.
    Found out the exact delay, it's -910ms
    So what would be the right ffmpeg command for loseless combine with delay.
    To obtain a negative audio delay, you must (positive) delay the videostream with this value (-itsoffset 0.910).
    If other streams with other relative delays are present, things became complicated.

    To made it simplier, use clever FFmpeg-GUI.
    Load your video, click main page, click multiplex, drag & drop your wav, insert -910 as delay, set ts as container and click multiplex.
    Done.

    Image
    [Attachment 84011 - Click to enlarge]
    Quote Quote  
  5. Yes but how did you figure out that the delay is -910ms?

    Flex
    Quote Quote  
  6. Member
    Join Date
    Jun 2024
    Location
    Perú
    Search Comp PM
    Originally Posted by flexmcmurphy View Post
    Yes but how did you figure out that the delay is -910ms?

    Flex
    Use Audacity. Drag the two audio tracks in. Place the original on top and the one where you want to find the delay below it. Check the audio spectrum of both tracks and move the lower one until some peaks align. If the delay is negative, simply select both tracks and shift them slightly to the right until the extra part appears. Cut it off, and that will be the exact delay.
    Quote Quote  



Similar Threads

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