
| CLI Magic: Video conversion with mencoder |
| From: linux.com read times: 504 |
Provided by yangyi at 2007-11-21 19:19:09 |
Mencoder is part of the MPlayer media player package. While MPlayer can play audio and video files, mencoder converts and manages multimedia files. The application has a ton of graphical user interfaces, but you can use it from the command line to produce video files in almost any format you want. Here's how.
Here's a simple command that converts an MPG file to AVI format: mencoder file.mpg -o file.avi -ovc lavc -oac lavc-ovc and -oac represent the options for the video and audio codecs that mencoder will use. To find out what video codecs are installed on your system, use mencoder -ovc help and mencoder -oac help.
Suppose you need a file with no compression on the audio part and decide to use PCM. You can specify the type of audio codec you want by using the acodec option: ...... Please access the below link to view the full content. Original link: http://www.linux.com/feature/121385 |
Among the file types mencoder can handle are MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, Ogg/OGM, MKV, VIVO, FLI, and FLV. The command syntax is straightforward despite a wealth of options. There's little mencoder can't do when it comes to multimedia conversion.