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,
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 4 of 4
			
		- 
	
- 
	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 05:01. 
- 
	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?
Similar Threads
- 
  ffmpeg: getting quality loss of avi when adding audio back inBy vidgem in forum AudioReplies: 2Last Post: 16th Mar 2012, 00:39
- 
  .mpg -> .mp4 using ffmpeg, Video is choppy and 2x too longBy rccollins in forum Video ConversionReplies: 3Last Post: 11th Dec 2008, 11:20
- 
  Adding audio to end scene of mpg videoBy martin01p in forum EditingReplies: 5Last Post: 10th Oct 2008, 07:04
- 
  FFMPEG audio/video desynchronized (converting video server side)By Lleoun in forum Newbie / General discussionsReplies: 1Last Post: 18th Apr 2008, 08:19
- 
  Synchronizing audio/video with FFMPEGBy beyondthegrave in forum EditingReplies: 2Last Post: 13th Nov 2007, 09:32


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Quote
 Quote 
			
