[MEncoder-users] mencoder support CBR video encoding?

soohan lee lee.soohan2010 at gmail.com
Thu Jan 6 07:13:46 CET 2011


Dear Friends.

what I want is mpeg2 file applied with AVC codec, and the file's video
bitrate must be Constant Bitrate mode.
what command should i use to use(switch to?) constant bitrate mode?
And, do mencoder support CBR video encoding?

used command line:

1) m2t -> ts (MPEG2 --> MPEG-TS)
mencoder \
-vf-add harddup,scale=1920:1080:0 \
-af lavcresample=48000 \
-srate 48000 \
-oac lavc \
-of lavf \
-lavfopts format=mpegts \
-ovc lavc -channels 2 \
-lavcopts
vrc_eq=1:vcodec=mpeg2video:vbitrate=15000:mbd=2:vqmin=1:vqscale=3:vmax_b_frames=0:keyint=15
\
-sws 9 \
-mc 0 \
-noskip \
-ofps 30000/1001 \
-o example.ts \
source.m2t
(source.m2t : Sony Camera Output file)


2) m2t -> mp4 (MPEG2 --> MPEG4)
mencoder \
-of lavf -lavfopts format=mp4 \
-af lavcresample=44100  \
-vf dsize=1280:720:0,scale=0:0,harddup \
-oac faac -faacopts mpeg=4:object=2:raw:br=128 \
-of lavf -lavfopts format=mp4 \
-ovc x264 \
-x264encopts
bitrate=800:nocabac:global_header:trellis=0:vbv_maxrate=900:level_idc=20:deblock=2,2:turbo
\
-sws 9 \
-mc 0 \
-noskip \
-af volnorm \
-o example.mp4 \
source.m2t


I want Constant Bitrate Video Files. Please! Help Me.
Thanks in advance for any help.


More information about the MEncoder-users mailing list