How to use the video conversion software in Linux

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.