regretchen
帖子: 12
注册时间: 2011-10-02 12:01

为什么x264+aac 封装在 mkv,不显示视讯码率信息?

General
Unique ID : 216029089145136755398176218592629704262 (0xA285B06D12DAD7D0B6EB548D57DB4646)
Complete name :
Format : Matroska
Format version : Version 2
File size : 200 MiB
Duration : 5mn 19s
Overall bit rate : 5 235 Kbps
Encoded date : UTC 2012-05-30 14:37:37
Writing application : mkvmerge v5.6.0 ('Kenya Kane') built on May 27 2012 16:44:04
Writing library : libebml v1.2.3 + libmatroska v1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 5mn 19s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 125 r2200+666+30 20c70fc tMod [8-bit@4:2:0 X86_64]
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : HE-AAC / LC
Codec ID : A_AAC
Duration : 5mn 19s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 96.0 KHz / 48.0 KHz
Compression mode : Lossy
Delay relative to video : 40ms
Language : English
Default : Yes
Forced : No
为什么视讯那里 不显示 码率信息?
不管任何版本的mkvtoolnix都不显示,从低的到高的的 都试了!!
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: 为什么x264+aac 封装在 mkv,不显示视讯码率信息?

x264用了--opts 1?
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
regretchen
帖子: 12
注册时间: 2011-10-02 12:01

Re: 为什么x264+aac 封装在 mkv,不显示视讯码率信息?

嗯,用不用 --opts 1 都是一样的,不用也不显示,用了也不显示,
各个版本的x264 都是这样。。。。= =!
taro老大你可以自己试试!!
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: 为什么x264+aac 封装在 mkv,不显示视讯码率信息?

用了--opts 1肯定不显示,x264本来就没写入;不用的话应该不会不显示的,我自己正常的--opts 2(默认)出来的东西从来没有出现过这种问题,mkvmerge版本4.x~5.x都没问题,也许是批处理里原来就写了一次--opts 1,之後忘掉了结果有时再添加了一次--opts 1有时候没加,结果不管加不加都不现实?如果是mkv切割多个文件的话也应该是从第二个文件开始writing library和encoding settings都不显示,而不会是只显示writing library而不显示encoding settings的…

x264 tMod rev2200+666与mkvmerge 5.6.0配合的sample: MediaInfo
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
regretchen
帖子: 12
注册时间: 2011-10-02 12:01

Re: 为什么x264+aac 封装在 mkv,不显示视讯码率信息?

Video

ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 24mn 14s
Width : 1 492 pixels
Height : 1 080 pixels
Display aspect ratio : 1.381
Frame rate : 23.976 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Writing library : x264 core 125 r2200+666+30 20c70fc tMod [10-bit@4:2:0 X86_64]
Encoding settings : cabac=1 / ref=5 / deblock=1:-2:-2 / analyse=0x3:0x133 / me=tesa / subme=10 / psy=1 / fade_compensate=0.20 / psy_rd=0.70:0.10 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=9 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=2 / bframes=6 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=720 / keyint_min=1 / scenecut=45 / intra_refresh=0 / rc_lookahead=96 / rc=crf / mbtree=1 / crf=19.0000 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.10 / aq=3:0.80
Language : Japanese
Default : Yes
Forced : No
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]
我问的是 视讯里的 “Bit rate” 哪去了????
您看您的这里也没有显示 单独视讯的“Bit rate” 是多少呀!!
General
Unique ID : 180969923710125400864740978851844802279 (0x88258A1D5F38373FA8B194799AC946E7)
Complete name :
Format : Matroska
Format version : Version 2
File size : 80.0 MiB
Duration : 1mn 31s
Overall bit rate : 7 299 Kbps
Encoded date : UTC 2012-06-03 12:45:24
Writing application : mkvmerge v5.6.0 ('Kenya Kane') built on May 27 2012 16:44:04
Writing library : libebml v1.2.3 + libmatroska v1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 31s
Bit rate : 6 769 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.245
Stream size : 74.2 MiB (93%)
Writing library : x264 core 125 r2200+666+30 20c70fc tMod [8-bit@4:2:0 X86_64]
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Muxing mode : Header stripping
Codec ID : A_AC3
Duration : 1mn 31s
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : 20ms
Stream size : 4.21 MiB (5%)
Language : English
Default : Yes
Forced : No
你看如果用 ac3 封装 就显示了!!!
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: 为什么x264+aac 封装在 mkv,不显示视讯码率信息?

哦原来是说码率…码率不显示是当然的,mkv格式里如果是vbr的话header本身就不包含码率信息,只读取header的mediainfo当然就没法获取bitrate,mkv里vbr的track要获取bitrate必须对整个track进行一次完整的parsing。有ac3能获取是因为全片的总体码率是知道的(直接算出来),如果除了视频外只有一条ac3,而ac3是cbr的,在ac3的header里可以找到,可以直接用overall bitrate减去ac3的bitrate就得到了,类似的还有无音轨只有单独一条video的时候,也是根据总体积与时间计算出来的。如果音轨是vbr的flac、aac之类,header里没有bitrate,也就没法知道每个track分别由多大,所以没法通过总体积与媒体时间以及音频的码率得到视频部分的码率了。你要是给avc+ac3的mkv再多加一条flac进去,这新的mkv又没法显示视频部分码率了…

还有个特殊情况,x264用abr的话(譬如abr、2pass、Npass),那么mediainfo是可以读取设定的bitrate当作视频部分的码率的,当然这个码率就更不一定准确了…
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
regretchen
帖子: 12
注册时间: 2011-10-02 12:01

Re: 为什么x264+aac 封装在 mkv,不显示视讯码率信息?

我就是走的 2pass,然后根据音轨计算好容量,例如我希望单独的视讯和音轨 在一起 最后成品的mkv 是 200M大小,
然后会就会得出视讯的码率,但是最终封装成mkv的时候 成品文件也是读取不出视讯的码率。。

图片

单独压制好的 avc(2pass)和 aac,这2个封装成 mkv 也不能查看到码率信息。。。
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

Re: 为什么x264+aac 封装在 mkv,不显示视讯码率信息?

上面说了,2pass能识别是因为encoding settings里有码率信息,你把encoding settings抹掉了mediainfo还怎么识别…

avc+aac抹参数还想显示码率,请用mp4封装
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。

回到 “封装容器 / Container muxer and demuxer”