Azitech

Azimout's Linux weblog

convert and concatenate videos

leave a comment »

Using ffmpeg, first convert each of the input files to .mpg:

ffmpeg -i _input_file_ -sameq _mpg_file_

Then concatenate them using the cat command:

cat _mpg1_ _mpg2_ ... > _joint_file_

Finally, encode the way you want:

ffmpeg -i _joint_file_ -vcodec libtheora -b 400k -acodec libvorbis _final.ogg_

Advertisements

Written by azimout

27/03/2010 at 21:07

Posted in Howto

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: