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)