Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using java process builder to merge audio and video files on OS X (10.6.4) but it is working too slow, for a audio and video of around 15sec it is taking around 1 hour to merge which is tooooo... much. could some tell me what could be the issue?

The merge command:

ffmpeg -i -i videoFile.mp4 -sameq -ar 4100 -y mergedFile.mp4

FFmpeg version:

share|improve this question
What are your hardware specs? What are the specifics of the video (resolution, bitrate, etc.)? – slhck May 18 '11 at 14:57
Are you using Java or ffmpeg? Your quoted line only shows ffmpeg. Are you starting it from a Java process? If so, try starting it from the shell and see whether it's equally slow. – CarlF May 18 '11 at 16:04
Is it possible to post the video and audio files somewhere where others can experiment with them? Do you have the same problem with other audio and video files, or only these specific files? – CarlF May 19 '11 at 12:18
up vote 1 down vote accepted

Try this out:

ffmpeg -i -i videoFile.mp4 -ar 4100 -y -vcodec copy mergedFile.mp4  

When supplied -vcodec copy, ffmpeg just copies the video stream instead of reencoding. If you do not need an audio reencode as well, you could use:

ffmpeg -i -i videoFile.mp4 -y -acodec copy -vcodec copy mergedFile.mp4  
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .