VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Hi everyone,

    As I'm new on this forum (though I've been visiting it for a while) I would like to say hi and thanks for your upcoming help.
    I'm currently working with ffmpeg on a mac. I'm now trying to merge an audiofile to a video.
    I used this (upon 100 others) command :

    ffmpeg -i output.mpg -i audio.mp3 -ab 192k -vcodec copy outau.mpg

    This is working but I've too problems :

    - If I navigate through the video with QT then the audio stream stop.
    - I would like to add the same amount of time of audio than the video and not a complete audio file (i.e my video is 1 min and my audiofile is 4 I would like to get only the first minute of audio to match the video and don't want the complete audio).

    Thanks for all your help.

    Best,
    Quote Quote  
  2. Member bat999's Avatar
    Join Date
    Feb 2008
    Location
    United Kingdom
    Search Comp PM
    Hi

    This is the command that I suggest:-

    Code:
    ffmpeg -i output.mpg -i audio.mp3 -shortest -vcodec copy -acodec copy outau.mpg
    Quote Quote  
  3. Originally Posted by bat999 View Post
    Hi

    This is the command that I suggest:-

    Code:
    ffmpeg -i output.mpg -i audio.mp3 -shortest -vcodec copy -acodec copy outau.mpg
    Thanks for this -shortest !
    I didn't use -acodec copy because my original video file doesn't have any audio and then this command doesn't work.
    It works for my second point sadly the first problem is still there : If I move on the video using the player navigator the sound stop to play.
    Any ideas ?

    EDIT : Someone ??
    Last edited by Tom2me; 27th Jul 2010 at 04:01.
    Quote Quote  
  4. Hi, I have 2 files: Audio.wav (duration 1 minute 16 seconds) and Video.mp4 (duration 1 minute)
    I have to pack both of these streams in a single video (op.mp4) with the following requirement:
    Video will start playing after 16 seconds only till then black frames should appear.

    How can this be done using ffmpeg?
    Quote Quote  



Similar Threads

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