[MEncoder-users] how do u set H264 video ID?

U. George netbeans at gatworks.com
Mon Jun 28 00:48:39 CEST 2010



On 06/27/2010 04:51 PM, Grozdan wrote:
> No, they're correct. Original has an ID of 4113 because it's in a
> different container than the encoded one. IDs are selected by using
> the -vid option. Very frequently, ts/m2ts containers have high IDs in
> contrast to avi which uses low ones
>
>> >  also, is there some reason why the new file has reference frames of 4, and
>> >  the orig has 2? I didnt see any option for either.
> This is due to default settings of x264. If you don't specify the
> amount of reference frames with frameref in mencoder, the value is
> picked up from the defaults of x264, and in this case it has 4
> reference frames
>
>

I have tried -vid, as well as :frameref=2 ( doc says default is 3 rather 
than 4 ).
Neither one seems to influence the way the h264 file created. Vid is 
still 0, and frameref is still 4.

=================================================================
mencoder -v -v  -msglevel all=9 
/home/gat/DIESEL/TEST_FP24/PF24_10Seconds.MTS -mc 0 -noskip -fps 
30000/1001 -delay -0.222 -oac copy -vf 
pullup,softskip,harddup,scale=1920:1080 -ofps 24000/1001 -vid 4113 -ovc 
x264 -x264encopts 
bitrate=24000:qp=5:pass=2:nointerlaced:log=3:frameref=2 -o a.avi
=================================================================
[gat at MyLaptop mplayer]$ mediainfo a.avi
General
Complete name                    : a.avi
Format                           : AVI
Format/Info                      : Audio Video Interleave
File size                        : 145 MiB
Duration                         : 11s 8ms
Overall bit rate                 : 110 Mbps
Writing application              : MEncoder SVN-r31525-4.4.2
Writing library                  : MPlayer

Video
ID                               : 0
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High at L4.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Codec ID                         : h264
Duration                         : 10s 761ms
Bit rate                         : 113 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)               : 2.263
Stream size                      : 144 MiB (100%)
Writing library                  : x264 core 98 r1643 0cd5d69
Encoding settings                : cabac=1 / ref=2 / deblock=1:0:0 / 
analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / 
mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / 
deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=1 / 
sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / 
constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / 
direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / 
scenecut=40 / intra_refresh=0 / rc=cqp / mbtree=0 / qp=5 / ip_ratio=1.40 
/ pb_ratio=1.30 / aq=0






More information about the MEncoder-users mailing list