View Single Post
Old 21st March 2011, 22:18   #3  |  Link
pepelugil
Registered User
 
Join Date: Jul 2010
Posts: 37
If I not wrong, when Scenarist refers to bitrate, in fact, it refers to max bitrate (at least from my tests).

Here you have original stream info in Scenarist:



And here from x264 stream with max bitrate = 31499:



And here x264 with max bitrate = 31500:


Original mediainfo:
Code:
Video
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Format settings, GOP             : M=2, N=25
Bit rate mode                    : Variable
Maximum bit rate                 : 31.5 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
Reencoded video:
Code:
Video
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 3 frames
Bit rate mode                    : Variable
Bit rate                         : 24.5 Mbps
Maximum bit rate                 : 31.5 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.493
Writing library                  : x264 core 114 r1913 5fd3dce
Encoding settings                : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=0.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=2 / weightp=1 / keyint=24 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=2pass / mbtree=1 / bitrate=24500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31499 / vbv_bufsize=30000 / nal_hrd=vbr / ip_ratio=1.10 / aq=1:1.00
Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177
And my x264 command line is (I always use veryslow on my final encodes, but for this testing I've used veryfast):

Code:
x264.exe 00320_1_01.avc --preset veryfast --tune film --ref 4 --b-adapt 1 --demuxer lavf --force-cfr --b-pyramid strict --open-gop bluray --qpmin=0 --weightp 1 --bitrate 24500 --level 4.1 --sar 1:1 --aud --nal-hrd vbr --pic-struct --vbv-bufsize 30000 --keyint 24 --min-keyint 1 --ipratio 1.1 --pbratio 1.1 --vbv-maxrate 31500 --threads auto --slices 4 --thread-input --stats "stats.stats" --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --pass 1 --output NUL

x264.exe 00320_1_01.avc --preset veryfast --tune film --ref 4 --b-adapt 1 --demuxer lavf --force-cfr --b-pyramid strict --open-gop bluray --qpmin=0 --weightp 1 --bitrate 24500 --level 4.1 --sar 1:1 --aud --nal-hrd vbr --pic-struct --vbv-bufsize 30000 --keyint 24 --min-keyint 1 --ipratio 1.1 --pbratio 1.1 --vbv-maxrate 31500 --threads auto --slices 4 --thread-input --stats "stats.stats" --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --pass 2 --output x264_320.264
EDIT: I've also done a quick test with MainConcept and when you set max bitrate to 31500kbps, it automatically sets it to 31499776bps
with the following error:

Code:
C043:H.264 Validation Error: bit rate value does not match HRD model. Should be 31499776.
So maybe it's a bug in x264 that incorrectly sets max bitrate value?

Greetings

Last edited by pepelugil; 21st March 2011 at 22:43.
pepelugil is offline   Reply With Quote