MEncoder mencoder Common parameters

Source: Internet
Author: User

mencoderis a command line mode of video processing software, is the mplayer of the Encoding tool, mencoder support almost all formats of video conversion, can be any format conversion to any format, the conversion function can be said to be quite powerful. The current popular format converters are based on MEncoder developed GUI, such as Storm transcoding, format factory and so on. It can be said that the converter can do, mencoder can do, but mencoder can do, the converter is not necessarily able to do.
Many beginners prefer to use the converter, also do not have to mencoder the big reason is that mencoder only support in the command line, mencoder command line operation, so many beginners are at a loss, do not know how to start. That's why mencoder can't be popular.
Video Format Conversion Tool

Basic usage: mencoder.exe-noodml "j:\ workspace \01.wmv"-of avi-o "j:\ workspace \b.avi"-ofps 20-vf-add scale=224:176-vf-add expand=224:176: -1:-1:1,rotate=2,flip-srate 44100-OVC xvid-xvidencopts BITRATE=350:MAX_BFRAMES=0:QUANT_TYPE=H263:ME_QUALITY=4-OAC Lavc-lavcopts acodec=mp2:abitrate=96

Compress a MPEG-2 file into an AVI file: The following command converts a MPEG-2 file (with an extension of MPG) into an AVI file (Divx video encoding, MP3 audio encoding):
Mencoder.exe INPUT.MPG-OAC mp3lame-lameopts aq=3:abr:br=128-srate 44100-OVC lavc-lavcopts vcodec=mpeg4:vbitrate=1200 -FFOURCC DX50-VF scale=480:360,crop=640:478:0:0,harddup-ofps 30-o Output.avi
1.-OAC mp3lame: (output audio Codec) specifies the type of audio encoding for the output media file. In this example, Mp3lame is selected. Other encodings can be selected as shown in the following table:
2.-lameopts aq=3:abr:br=128: (lame options) specifies the encoding settings for lame. AQ is the encoding quality, its value is 0~9, the smaller the digital distortion of the audio, the longer the encoding, including the ABR (by the average code rate encoding), CBR (refers to fixed code rate encoding), VBR (by the dynamic Code rate encoding) three kinds; br=128 specifies a code rate of 128kbps.
3,-srate 44100: (sample rate) specifies the sampling frequency of the audio. Frequency usually has 22050, 32000, 44100 and so on several.
4.-OVC LAVC: (Output video codec) specifies the video encoding type of the output media file. Here you select the Libavcodec video encoding, and the other selectable encodings are shown in the following table:
5.-lavcopts vcodec=mpeg4:vbitrate=1200: (libavcodec options) specifies the settings for the video encoding. Because Libavcodec contains a variety of video coding, so use VCODEC=MPEG4 to specify the specific use of MPEG-4 encoding, Vbitrate is set video encoding bitrate of 1200kbps.
6.-FOURCC DX50: (four character code) specifies the four-character code for the video data stream format. Typically, video playback software plays a specific video stream by querying the FourCC code and looking for a video decoder associated with the FourCC code. such as DIV3 = DivX low-motion, DIV4 = DivX fast-motion, DivX = DivX4, DX50 = Divx5, and so on.
7,-VF scale=480:360,crop=640:478:0:0,harddup: (video filters) Specify the encoded filter settings. The scale=480:360 is used to specify the screen size of the input media file, with a width of 480 pixels and a height of 360 pixels. Crop=638:477:1:2 is a cutting option that captures images of 638x477 pixels from the original image's coordinates (from) to the starting point.
Note that the scale parameter in the command is placed before the crop parameter, which means "scaling before shearing," or "scaling before cropping" if the crop parameter is placed before the scale parameter.
8,-ofps: (output fps) specifies the frame rate of the output media file, and 30fps refers to 30 images per second.
9,-o Output.avi: (output) Specifies the file name of the input media after the conversion.

Basic parameters: For example: MEncoder input.avi-o output.avi-oac mp3lame-lameopts cbr:br=32-ovc x264-x264encopts bitrate=440-vf scale=448 :-3
Input.avi refers to the input video, which is the video you want to convert.
-O Output.avi "-o" means you want to output video, the output of the video name is Output.avi.
-OAC Set the audio encoder.
Mp3lame Set the audio encoder to Mp3lame, also on the MP3.
-lameopts sets the relevant parameters for the Mp3lamer.
Cbr:br=32 set the audio bitrate to 32.
-OVC set the video encoder.
x264 set the video encoder to x264.
-x264encopts sets the parameters of the x264.
bitrate-440 Set the x264 video to a bitrate of 440.
-VF scale=448:-3 Set the width of the video to 448, the height of -3,-3 means to let the mencoder to set the best height.
Mencoder2
Mencoder2
The above parameters are only a very small part, there are many, can not be enumerated. If you really want to learn, you can use search engines to learn more.

MEncoder mencoder Common parameters

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.