Mencoder intercepts avi (or flv) into flv

Source: Internet
Author: User

Mencoder "/home/guo/Videos/hp. flv "-o"/home/guo/Videos/hp/outfile. flv "-of lavf-oac mp3lame-lameopts abr: br = 56-ovc lavc-lavcopts vcodec = flv: vbitrate = 5000: mbd = 2: mv0: trell: v4mv: cbp: last_pred = 3: dia = 4: cmp = 6: vb_strategy = 1-vf scale = 512:-3-ofps 12-srate 22050-ss-endpos

 

Mencoder "/home/guo/Videos/hp. avi "-o"/home/guo/Videos/hp/outfile. flv "-of lavf-oac mp3lame-lameopts abr: br = 56-ovc lavc-lavcopts vcodec = flv: vbitrate = 5000: mbd = 2: mv0: trell: v4mv: cbp: last_pred = 3: dia = 4: cmp = 6: vb_strategy = 1-vf scale = 512:-3-ofps 12-srate 22050-ss 30: 30-endpos

 

To improve the quality, change vbitrate = 500 to vbitrate = 5000.

  • -O output target file name
  • -Ovc lavc specifies the video encoding type of the output media file. The Libavcodec video encoding is selected here.
  • -The audio encoding format output by oac mp3lame is mp3.
  • -Lameopts cbr: br = 128 audio attachment option, cbr (constant bit rate) encoding format, and the audio bit rate is 128 BPS (is sufficient for mp3)
  • -Of lavf is the output file format, which is not flv but lavf because flv belongs to libavformat;
  • -The starting time of the ss audio clip (indicating that the video is captured from 1st minutes to 30 seconds)
  • -Endpos: 2 minutes 45 seconds the length of the pre-captured audio (indicating that the pre-captured audio length is, the end time can be calculated)

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.