PDA

View Full Version : How to join/merge audio and video files in ubuntu?



leon.vitanos
January 9th, 2011, 07:16 PM
This commands doesn't work for me..

cat file1 file2 file3 > joinedfile

I found also avimerge, transcode and mencoder but you must install them and i want to avoid this .. so is there any package installed that with a command it joins/merges audio and video files? :-k

leon.vitanos
January 9th, 2011, 07:27 PM
With mencoder it works just fine!


mencoder -oac copy -ovc copy -idx -o output.avi video1.avi video2.avi video3.avi

But is mencoder the best one ( the fastest, more reliable )? :-k

slavik
January 9th, 2011, 07:34 PM
mencoder is a good option. you won't find something inherently "better"

leon.vitanos
February 6th, 2011, 02:00 AM
Guys i am ok on how to join videos.. But i do not know how to join audio files.. Any ideas?

worksofcraft
February 6th, 2011, 03:40 AM
Guys i am ok on how to join videos.. But i do not know how to join audio files.. Any ideas?

Did you try ffmpeg (http://www.ffmpeg.org/) ?

leon.vitanos
February 6th, 2011, 12:49 PM
Did you try ffmpeg (http://www.ffmpeg.org/) ?
Yes i know ffmpeg... i am using ffmpeq in my program.. but what is the command to join/merge audio files with ffmpeg?

VernonA
February 7th, 2011, 08:45 PM
To tell ffmpeg to use multiple files, you need to use the 'concat' protocol when specifying the input parameter. For example, to say that input should come from file1.avi, then file2.avi, then file3.avi, you would write a cmd line that started:

ffmpeg -i concat:file1.avi\|file2.avi\|file3.avi ...
(The file names are separated by the pipe char, which needs to be escaped with the backslash to prevent it being interpreted by the command shell.)