CBR video trancoding possible?
Dear Friends. I am trying to do a CBR video-MPEG2VIDEO(MPEG-TS) from an M2T(MPEG2) file. (Detail : Example.m2t to Example.ts file) But, mencoder output file is VBR-video. CBR video is not possible? 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.
On Mon, Jan 03, 2011 at 04:15:10PM +0900, soohan lee wrote:
Dear Friends.
I am trying to do a CBR video-MPEG2VIDEO(MPEG-TS) from an M2T(MPEG2) file. (Detail : Example.m2t to Example.ts file)
But, mencoder output file is VBR-video. CBR video is not possible?
Please define "CBR video". The only sensible definition of it means one of 1) raw, uncompressed video 2) padding with fill bytes that only bloat the bit-stream, losing a significant amount of compression. Not implemented in MEncoder to my knowledge because it is a tool for people who want to compress their videos as well as possible, not pointlessly bloat it just to make it fit constraints that hardly ever make sense.
Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:
Please define "CBR video". The only sensible definition of it means one of 1) raw, uncompressed video 2) padding with fill bytes that only bloat the bit-stream, losing a significant amount of compression.
I thought (I remember Michael explaining that) CBR is defined for MPEG transport streams (and does of course not mean constant frame size). Am I wrong? Or is another expression used for what I mean? Carl Eugen
On Thu, Jan 06, 2011 at 12:52:40 +0000, Carl Eugen Hoyos wrote:
I thought (I remember Michael explaining that) CBR is defined for MPEG transport streams (and does of course not mean constant frame size).
http://en.wikipedia.org/wiki/MPEG_transport_stream#Null_packets Some transmission schemes, such as those in ATSC and DVB, impose strict constant bitrate requirements on the transport stream. In order to ensure that the stream maintains a constant bitrate, a Multiplexer may need to insert some additional packets. The PID 0x1FFF is reserved for this purpose. The payload of null packets may not contain any data at all, and the receiver is expected to ignore its contents. Here's a discussion wrt to mencoder and ffmpeg: http://lists.mplayerhq.hu/pipermail/mplayer-users/2008-January/071443.html and here's a fix proposal for ffmpeg: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-April/087215.html which does not seem to have made it upstream. "Please hold off on this patch." Moritz
participants (4)
-
Carl Eugen Hoyos -
Moritz Barsnick -
Reimar Döffinger -
soohan lee