@asxzwang
ffmpeg -i 0.mkv -pix_fmt yuv422p10le -acodec copy -vcodec libx264 -profile:v high422 -x264opts colorprim="bt2020":transfer="smpte2084":colormatrix="bt2020nc" 000.mkv
成果的mediainfo:
General
Unique ID : 284521902953488385705707706250335911681 (0xD60CECDEB49B9DEAC0C0CE97A19C7F01)
Complete name : E:\tmp\test\000.mkv
Format : Matroska
Format version : Version 4
File size : 33.6 MiB
Duration : 2 min 25 s
Overall bit rate mode : Variable
Overall bit rate : 1 936 kb/s
Writing application : Lavf58.19.100
Writing library : Lavf58.19.100
ErrorDetectionType : Per level 1Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 4:2:
[email protected]Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 min 25 s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 10 bits
Scan type : Progressive
Writing library : x264 core 157 r2935 545de2f
Encoding settings : cabac=1 / ref=3 / 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=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : Japanese
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Statistics Tags Issue : mkvmerge v13.0.0 ('The Juggler') 64bit 2017-12-29 05:42:42 / Lavf58.19.100
FromStats_BitRate : 974729
FromStats_Duration : 00:02:25.417000000
FromStats_FrameCount : 3490
FromStats_StreamSize : 17717784Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 2 min 25 s
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Compression mode : Lossless
Language : Japanese
Default : Yes
Forced : No
Statistics Tags Issue : mkvmerge v13.0.0 ('The Juggler') 64bit 2017-12-29 05:42:42 / Lavf58.19.100
FromStats_BitRate : 881503
FromStats_Duration : 00:02:25.420000000
FromStats_FrameCount : 1705
FromStats_StreamSize : 16023527