Подробные технические данные
Обработка в AviSynth:
LoadPlugin("ffms2.dll") # модифицированный FFMS
FFVideoSource("ProRes.mov", Enable10BitHack=true) # ProRes, 10 bit, 4:2:2, 1920x800
GradFun3(SMode=1, LSB_in=true, LSB=true) # deband
# Делаем из 16 бит 10 и передаем x264
Dither_quantize(10, ReduceRange=true)
Dither_convey_YUV4xxP16_on_YVxx()
Настройки x264:
avs4x264mod -L x264_10bit_x86 "10bit 1080p.avs" --demuxer raw --input-depth 10 --input-res 1920x800 --input-csp i422 --output-csp i422 --output "10bit 1080p.mkv"
--preset veryslow --tune film --crf 15 --keyint infinite
--colorprim bt709 --transfer bt709 --colormatrix bt709 --sar 1:1
Из лога:
x264 [info]: profile High 4:2:2, level 5.0, 4:2:2 10-bit
x264 [info]: frame I:102 Avg QP:23.34 size:226127
x264 [info]: frame P:1156 Avg QP:27.28 size: 62958
x264 [info]: frame B:3937 Avg QP:28.91 size: 24610
x264 [info]: consecutive B-frames: 4.7% 3.0% 5.3% 22.9% 13.8% 32.8% 8.1% 5.1% 4.3%
x264 [info]: ref P L0: 49.5% 24.4% 8.5% 5.8% 3.0% 2.8% 1.7% 1.1% 0.7% 0.7% 0.4% 0.4% 0.3% 0.3% 0.2% 0.1% [16 рефов занимают в памяти 55 МБ]
x264 [info]: kb/s:7116.01
Звук - FFAudioSource достал PCM из MOV в FLAC.
MediaInfo:
General
Unique ID : 195487158157076277333872531699567566845 (0x93117508AF9CF4AC977F356F6C321FFD)
Complete name : Beth Hart - Bang Bang Boom Boom (2012) MasterRip 1080p Hi422P.mkv
Format : Matroska
Format version : Version 2
File size : 208 MiB
Duration : 3mn 36s
Overall bit rate mode : Variable
Overall bit rate : 8 069 Kbps
Encoded date : UTC 2010-02-22 21:41:31
Writing application : mkvmerge v5.9.0 ('On The Loose') built on Dec 9 2012 15:37:01
Writing library : libebml v1.3.0 + libmatroska v1.4.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 4:2:
[email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 3mn 36s
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 10 bits
Scan type : Progressive
Writing library : x264 core 129 r2230 1cffe9f
Encoding settings : cabac=1 / ref=16 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=infinite / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 3mn 36s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Title : FLAC 2.0 16 bit
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : English
Default : Yes
Forced : No