Ubuntu video Conversion Tool-mencoder command line parameters

Source: Internet
Author: User
As some videos are about to be transferred, google has introduced many Ubuntu video Conversion Tool mencoder on the Internet. After using this tool, I think it is necessary to summarize it and leave it for him. CODE: mencoder [options] file1 [specificoptions] [file2] [specificoptions] mencodersrc. avi-odst.avi-vfscale = 320: 240-oac

As some videos are about to be transferred, google has introduced many Ubuntu video Conversion Tool mencoder on the Internet. After using this tool, I think it is necessary to summarize it and leave it for him.

CODE:
Mencoder [options] file1 [specific options] [file2] [specific options]
Mencoder src. avi-o dst. avi-vf scale = 320: 240-oac copy-ovc lavc-lavcopts vcodec = mpeg4: vbitrate = 500

# Src. avi original file
#-O dst. avi defines compression as dst. avi
#-Vf scale = 320: 240. Adjust the video size to 320x240;
#-Oac copy: Specifies the Audio Encoder. copy is used directly in the source file without compression. Replace copy with mp3lame, Which is compressed into mp3.
#-Ovc lavc: Specifies the video encoder and uses the libavcodec encoder;
#-Lavcopts vcodec = mpeg4: vbitrate = 500. Specify the libavcodec parameter. vcodec = mpeg4 indicates that mpeg4 is used for compression, that is, DivX. vbitrate = 500 indicates the bit rate of kbps.

CODE:
Mencoder src. avi-o dst. flv-of lavf-oac mp3lame-lameopts abr: br = 32: mode = 3-ovc lavc I _certify_that_my_video_stream_does_not_use_ B _frames-vf scale = 350:-3-sws

# Src. avi: input file path, in the format supported by Mplayer.
#-O dst. flv output path
#-Of lavf output format: lavf indicates libavcodec
#-Oac mp3lame: Output Audio Encoding Method. lame is the best mp3 encoder.
#-Lameopts abr: br = 32: mode = 3 abr indicates the average bit rate. Compared with cbr (fixed bit rate) and vbr (variable bit rate, which does not seem to be supported), br indicates the audio bit rate, the higher the sound quality, the better. mode = 3, 0-3 represents Stereo, Joint Stereo, Force ms_stereo, and Mono respectively (the default value is automatic. In fact, 1 and 3 have little impact on the file size ), in addition, vol (volume, value range: 0-10. The larger the value, the larger the volume. We do not recommend that you modify the volume ).
#-Srate 22050 specifies the sound sampling frequency, which can be set to 11025 or smaller.
#-The ovc lavc output video code lavc is libavcodec
#-Lavcopts codec = flv compression vbitrate = 150 video bit rate
#-Vf scale = 350:-3-sws 2: scale the video. The width is 350, and the height is proportional. Quality is controlled by the-sws option. For details, refer to the manual.
#-Ofps 23: sets the number of frames. narrowing down the number of frames does not significantly reduce the file size and may cause screen sound synchronization. It is not recommended to set

CODE:
Mencoder-srate 22050-vf scale = 208:-3-ofps 12-oac mp3lame-lameopts mode = 3: cbr: br = 24-ovc lavc-ffourcc DX50-lavcopts vcodec = mpeg4: vhq: vbitrate = 112 src. avi-o dst. avi
#-Srate 22050 specifies the sound sampling frequency, currently 22 KB
#-Vf scale = 208:-3 The width is 208, and the height is automatically adjusted to keep the ratio;-vf scale =-3: 176 the width is automatically adjusted to keep the ratio, and the height is 176; if you want to keep the original size, do not use this parameter.
#-Ofps 12-frame rate setting, currently 12fps
#-Oac mp3lame audio is mp3 encoded
#-Lameopts mode = 3: cbr: br = 24 single channel, audio bit rate: 24 kbps;-lameopts mode = 0: cbr: br = 24 stereo, audio bit rate: 24 kbps; you can also set the volume,-lameopts mode = 3: cbr: br = 32: vol = 1, and set the range to 1 ~ 10, but not too high
#-Ovc lavc-ffourcc DX50-lavcopts vcodec = mpeg4: vhq: vbitrate = 112 adopts high quality DivX video encoding, and the video bit rate is 112 kbps;
#-Ovc xvid-xvidencopts bitrate = 112 using XviD Video Encoding

Audio: Dynamic Bit Rate, quality 6 (0-9, 0 best), encoding: mp3, sampling: 32000Hz, audio algorithm: 7
Video: Dynamic Bit Rate, quality 8 (0-31,0 best), encoding: xvid, size: not changed

CODE:
Mencoder-oac mp3lame-lameopts aq = 7: vbr = 2: q = 6-srate 32000-vf harddup-ovc xvid-xvidencopts fixed_quant = 8 src. avi-o dst. avi

Audio: Dynamic Bit Rate, quality 6, encoding: mp3, sampling: 32000Hz, audio algorithm: 7
Video: Dynamic Bit Rate, quality 8, encoding: xvid, size: 320: 240

CODE:
Mencoder-oac mp3lame-lameopts aq = 7: vbr = 2: q = 6-srate 32000-vf scale = 320: 240, harddup-ovc xvid-xvidencopts fixed_quant = 8 src. avi-o dst. avi

Audio: fixed bit rate, code: 64 kbps, sampling: 32000Hz, audio algorithm: 7
Video: Dynamic Bit Rate, Quality 4 (high), encoding: xvid

CODE:
Mencoder-oac mp3lame-lameopts aq = 7: cbr: br = 64-srate 32000-vf harddup-ovc xvid-xvidencopts fixed_quant = 4 src. avi-o dst. avi

Audio: Dynamic Bit Rate, Quality 4 (0-9, 0 best), encoding: mp3, sampling: 32000Hz, audio algorithm: 7
Video: Dynamic Bit Rate, quality 8 (0-31,0 best), encoding: xvid, size: original size

CODE:
Mencoder-oac mp3lame-lameopts aq = 7: vbr = 2: q = 4-srate 32000-vf harddup-ovc xvid-xvidencopts fixed_quant = 8 src. avi-o dst. avi

RSS 2.0 | leave a response | trackback

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.