Article Title: how to use the video conversion software in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Video conversion in Linux: mencoder
Make mpeg4 videos suitable for watching on smartphones and PDAs.
On Linux, there is a powerful video/audio conversion software, that is, the mencoder (Mplayer's Movie Encoder) that comes with MPlayer ). Mencoder is like a full-manual camera, and there are many options to adjust, but here we just talk about the most common situation.
Convert the avi file and embed Subtitles into the video. Assume the following conditions:
File Name: video. avi
Subtitle file name: video. srt
Target file: new. avi
Target File Format: mpeg4
Target file video bit rate: 200
Target file audio bit rate: 64
Target file resolution: 320: 240
Font required for creating embedded Subtitles: simsun. ttf
(The above items can be adjusted according to the actual situation)
The conversion command is as follows:
Mencoder-oac mp3lame-lameopts vbr = 3: br = 64-ovc lavc
-Lavcoptsvcodec = mpeg4: mbd = 1: vbitrate = 200-sub video. srt-o new. avi
-Fontsimsun. ttf video. avi-subcp cp936-subfont-text-scale 4
-Vfscale = 320: 240
Meaning of each option:
-The audio part of the oac-encoded file. Here we use lame to encode the audio into mp3, that is, mp3lame. You can call mencoder's man page to view other available options.
-As the name suggests, lameopts is the lame option. You only need to define the bit rate here.
Vbr: Specifies the audio bit rate in the format of vbr =
0 cbr average bitrate
1 mt
2 rh constant bitrate Also forces CBR mode encoding on subsequent ABR presets modes.
3 abr
4 mtrh
Here we use 3, abr.
[1] [2] [3] [4] Next page