BreadCrumbs: Ffmpeg

Ffmpeg

From Luke Jackson

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:20, 18 November 2007 (edit)
Ljackson (Talk | contribs)

← Previous diff
Revision as of 16:21, 18 November 2007 (edit)
Ljackson (Talk | contribs)
(MEncoder)
Next diff →
Line 30: Line 30:
== MEncoder == == MEncoder ==
 +
 +=== Summary ===
 +
 +MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.
 +
 +=== Installing ===
yum install menencoder yum install menencoder

Revision as of 16:21, 18 November 2007

Add Freshrpms repo

http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/4/freshrpms-release/freshrpms-release-1.1-1.fc.noarch.rpm

yum install ffmpeg-devel
Dependencies Resolved
Transaction Listing:
  Install: ffmpeg-devel.i386 0:0.4.9-0.20050427.1.1.fc3 - freshrpms

Performing the following to resolve dependencies:
  Install: SDL-devel.i386 0:1.2.7-8 - base
  Install: a52dec-devel.i386 0:0.7.4-7.1.fc3.fr - freshrpms
  Install: alsa-lib-devel.i386 0:1.0.6-8.FC3 - updates-released
   Install: faac-devel.i386 0:1.24-1.1.fc3.fr - freshrpms
  Install: faad2-devel.i386 0:2.0-4.1.fc3 - freshrpms
  Install: ffmpeg.i386 0:0.4.9-0.20050427.1.1.fc3 - freshrpms
  Install: fontconfig-devel.i386 0:2.2.3-5 - base
  Install: imlib2-devel.i386 0:1.2.1-2.fc3 - extras
  Install: lame.i386 0:3.96.1-2.1.fc3.fr - freshrpms
  Install: lame-devel.i386 0:3.96.1-2.1.fc3.fr - freshrpms
  Install: libogg-devel.i386 2:1.1.2-1 - base
  Install: libvorbis-devel.i386 1:1.1.0-1 - base
  Install: xorg-x11-devel.i386 0:6.8.2-1.FC3.45.2 - updates-released
  Install: xvidcore-devel.i386 0:1.0.3-1.1.fc3.fr - freshrpms
Total download size: 11 M
Is this ok [y/N]: 

Contents

MEncoder

Summary

MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.

Installing

yum install menencoder

Joining the video clips together

Mencoder doesn't have a fancy gui for you to get used to, but is a command line application, meaning we just type the commands in on a command line.

To join the files "1.avi" and "2.avi" into the joined file "joined.avi" simply type in the following command

mencoder -oac copy -ovc copy -o "joined.avi" "1.avi" "2.avi"

In the above command -oac copy means "copy the audio stream", -ovc copy means "copy the video stream", and -o "joined.avi" means "output to file joined.avi".

If you want to join more than two clips, then just list as many clips as you want, in the order you want them joined. Remember that the clips need to all be encoded exactly the same, else it won't work.

If your joined clip is going to be larger that 1024Mb ( 1 gigabyte ) then when you come to play back the joined clips, some media players get confused as to how long the clip lasts, so add -noodml to the command line, eg.

mencoder -oac copy -ovc copy -noodml -o "joined.avi" "1.avi" "2.avi"

Also note that most movie players cannot play videos that are larger than 2GB (2048MB) in size, irrespective of whether they are .avi, .mpg or .vob.

It's that simple, and when you are finished you can just delete the mplayer folder, and the application is removed - just remember to move video clips out of the folder first !

Personal tools