mediainfo可以读取视频的x264 settings,
dwing吧
全部回复
仅看楼主
level 9
参数项太多,能不能指定读取某些x264 settings?
2016年12月28日 17点12分 1
level 9
比如,bframes,ref,me,merange,subme
2016年12月28日 17点12分 2
level 9
其他的都不要
2016年12月28日 17点12分 3
level 9
mediainfo再加一个输出hash,就更好了
2016年12月28日 17点12分 4
level 9
自己写个程序取mediainfo参数然后再取你需要的,哈西有win插件能直接在属性里看
2016年12月29日 16点12分 5
level 1
C#
MediaInfo mediaInfo = new MediaInfo();
mediaInfo.Open(filmPath);
string mediaInfoStr = mediaInfo.Inform();
mediaInfo.Close();
mediaInfo.Inform()获取的内容如下
General
Unique ID : 246336123734936763789096050383110504954 (0xB9529C98EE4B696B9D8EDB448BEB81FA)
Complete name : P:\电影\Lone.Survivor.2013.BluRay.1080p.DD5.1.x264-HDH\Lone.Survivor.2013.BluRay.1080p.DD5.1.x264-HDH.mkv
Format : Matroska
Format version : Version 2
File size : 6.93 GiB
Duration : 2 h 1 min
Overall bit rate : 8 159 kb/s
Encoded date : UTC 2016-12-03 14:28:10
Writing application : mkvmerge v8.5.2 ('Crosses') 32bit
Writing library : libebml v1.3.3 + libmatroska v1.4.4
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 1 min
Bit rate : 7 432 kb/s
Width : 1 920 pixels
Height : 804 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.201
Stream size : 6.30 GiB (91%)
Writing library : x264 core 142 r2431+42 c69a006 tMod [8-bit@all X86]
Encoding settings : cabac=1 / ref=5 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.05 / mixed_ref=1 / me_range=48 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=0 / crf=18.3000 / qcomp=0.60 / qpmin=0:0:0 / qpmax=69:69:69 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / pb_ratio=1.30 / aq=3:0.80 / aq-sensitivity=10.00 / aq-factor=1.00:1.00:1.00 / aq2=0 / aq3=0
Default : Yes
Forced : No
Color range : Limited
Matrix coefficients : BT.709
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 2 h 1 min
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 spf)
Compression mode : Lossy
Stream size : 556 MiB (8%)
Language : English
Default : Yes
Forced : No
Text #1
ID : 3
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 1 min
Bit rate : 10.9 kb/s
Count of elements : 2020
Stream size : 9.45 MiB (0%)
Language : English
Default : Yes
Forced : No
Text #2
ID : 4
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 1 min
Bit rate : 21.8 kb/s
Count of elements : 3160
Stream size : 18.9 MiB (0%)
Language : Chinese
Default : No
Forced : No
Text #3
ID : 5
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 1 min
Bit rate : 27.5 kb/s
Count of elements : 3210
Stream size : 23.9 MiB (0%)
Language : Chinese
Default : No
Forced : No
Text #4
ID : 6
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 2 h 1 min
Bit rate : 35.6 kb/s
Count of elements : 3213
Stream size : 30.9 MiB (0%)
Language : Chinese
Default : No
Forced : No
Menu
00:00:00.000 : en:00:00:00.000
00:06:27.387 : en:00:06:27.387
00:14:19.692 : en:00:14:19.692
00:19:44.600 : en:00:19:44.600
00:26:56.615 : en:00:26:56.615
00:35:51.983 : en:00:35:51.983
00:42:25.168 : en:00:42:25.168
00:46:23.197 : en:00:46:23.197
00:50:19.850 : en:00:50:19.850
00:59:42.996 : en:00:59:42.996
01:03:01.611 : en:01:03:01.611
01:10:41.070 : en:01:10:41.070
01:15:54.383 : en:01:15:54.383
01:21:01.065 : en:01:21:01.065
01:28:17.709 : en:01:28:17.709
01:32:07.147 : en:01:32:07.147
01:39:02.770 : en:01:39:02.770
01:48:51.734 : en:01:48:51.734
01:52:15.729 : en:01:52:15.729
01:56:58.845 : en:01:56:58.845
2017年01月22日 15点01分 6
level 1
还有
public enum StreamKind
{
General,
Video,
Audio,
Text,
Other,
Image,
Menu,
}
可根据上面的获取指定信息
去官网下dll包,里面有接口说明
2017年01月22日 15点01分 7
1