Подробные технические данные
Обработка в AviSynth:
LoadPlugin("ffms2.dll") # модифицированный FFMS
FFVideoSource("ProRes.mov", Enable10BitHack=true) # ProRes, 10 bit, 4:2:2, 1920x800
GradFun3(LSB_in=true, LSB=true) # deband
# Цветность из 960x800 переводим в 960x400:
W = Width()/2
H = Height()/4
U = UToY8().Dither_resize16 (W,H, src_left=0.25, U=1, V=1)
V = VToY8().Dither_resize16 (W,H, src_left=0.25, U=1, V=1)
YToUV(U, V, last) # собираем 1920x800 4:2:0
DitherPost(mode=6) # более требовательный к битрейту, но красивый дизеринг
AddBorders(0,140,0,140) # черные полосы до 1920x1080
Настройки x264:
--preset veryslow --tune film --crf 13
--bluray-compat --level 4 --keyint 48 --open-gop --bframes 3 --ref 4 --slices 1 --vbv-bufsize 15000 --vbv-maxrate 15000
--colorprim bt709 --transfer bt709 --colormatrix bt709 --sar 1:1
Битрейт нужен небольшой, так что ограничение скорости чтения 15000 (вместо 40000) стОит 2-секундного GOP и 1 slice. А тут и до BD5/9 недалеко (буфер 15000 вместо 30000).
Из лога:
x264 [info]: profile High, level 4.0
x264 [info]: frame I:153 Avg QP: 8.72 size:260008
x264 [info]: frame P:1535 Avg QP:11.98 size:100845
x264 [info]: frame B:3507 Avg QP:13.12 size: 51378
x264 [info]: consecutive B-frames: 5.5% 5.2% 24.5% 64.8%
x264 [info]: ref P L0: 68.9% 30.2% 0.9%
x264 [info]: kb/s:13836.73
Звук - FFAudioSource достал PCM из MOV в обычный WAV, далее tsMuxeR перевел в блюрейный PCM.
Структура Blu-ray - tsMuxeR.
MediaInfo:
General
ID : 1 (0x1)
Complete name : \BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : Blu-ray Video
File size : 422 MiB
Duration : 3mn 36s
Overall bit rate mode : Variable
Overall bit rate : 16.3 Mbps
Maximum Overall bit rate : 35.5 Mbps
Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile :
[email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : 27
Duration : 3mn 36s
Bit rate mode : Variable
Bit rate : 14.1 Mbps
Maximum bit rate : 15.0 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) : 0.285
Stream size : 365 MiB (87%)
Writing library : x264 core 129 r2230 1cffe9f
Encoding settings : cabac=1 / ref=4 / 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 / slices=1 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=1 / keyint=48 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=48 / rc=crf / mbtree=1 / crf=13.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=15000 / vbv_bufsize=15000 / crf_max=0.0 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : PCM
Format settings, Endianness : Big
Format settings, Sign : Signed
Muxing mode : Blu-ray
Codec ID : 128
Duration : 3mn 36s
Bit rate mode : Constant
Bit rate : 1 536 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 39.7 MiB (9%)
Language : English
BDInfo:
Disc Title: Beth Hart - Bang Bang Boom Boom (2012) Blu-ray BD5 1080p
Disc Size: 442 482 480 bytes
Protection: AACS
BD-Java: No
BDInfo: 0.5.8
Notes:
BDINFO HOME:
Cinema Squid
http://www.cinemasquid.com/blu-ray/tools/bdinfo
INCLUDES FORUMS REPORT FOR:
AVS Forum Blu-ray Audio and Video Specifications Thread
http://www.avsforum.com/avs-vb/showthread.php?t=1155731
********************
PLAYLIST: 00000.MPLS
********************
Код:
Total Video
Title Codec Length Movie Size Disc Size Bitrate Bitrate Main Audio Track Secondary Audio Track
----- ------ ------- -------------- -------------- ------- ------- ------------------ ---------------------
00000.MPLS AVC 0:03:36 442 478 592 442 482 480 16,34 13,84 LPCM 2.0 1536Kbps (48kHz/16-bit)
Код:
DISC INFO:
Disc Title: Beth Hart - Bang Bang Boom Boom (2012) Blu-ray BD5 1080p
Disc Size: 442 482 480 bytes
Protection: AACS
BD-Java: No
BDInfo: 0.5.8
PLAYLIST REPORT:
Name: 00000.MPLS
Length: 0:03:36.635 (h:m:s.ms)
Size: 442 478 592 bytes
Total Bitrate: 16,34 Mbps
VIDEO:
Codec Bitrate Description
----- ------- -----------
MPEG-4 AVC Video 13837 kbps 1080p / 23,976 fps / 16:9 / High Profile 4.0
AUDIO:
Codec Language Bitrate Description
----- -------- ------- -----------
LPCM Audio English 1536 kbps 2.0 / 48 kHz / 1536 kbps / 16-bit
FILES:
Name Time In Length Size Total Bitrate
---- ------- ------ ---- -------------
00000.M2TS 0:00:00.000 0:03:36.635 442 478 592 16 337
CHAPTERS:
Number Time In Length Avg Video Rate Max 1-Sec Rate Max 1-Sec Time Max 5-Sec Rate Max 5-Sec Time Max 10Sec Rate Max 10Sec Time Avg Frame Size Max Frame Size Max Frame Time
------ ------- ------ -------------- -------------- -------------- -------------- -------------- -------------- -------------- -------------- -------------- --------------
1 0:00:00.000 0:03:36.635 13 839 kbps 23 873 kbps 00:00:26.526 16 506 kbps 00:00:03.878 15 745 kbps 00:00:26.526 72 138 bytes 579 376 bytes 00:00:26.568
STREAM DIAGNOSTICS:
File PID Type Codec Language Seconds Bitrate Bytes Packets
---- --- ---- ----- -------- -------------- -------------- ------------- -----
00000.M2TS 4113 (0x1011) 0x1B AVC 216,550 13 845 374 758 724 2 039 761
00000.M2TS 4352 (0x1100) 0x80 LPCM eng (English) 216,550 1 543 41 768 192 259 968
QUICK SUMMARY:
Disc Title: Beth Hart - Bang Bang Boom Boom (2012) Blu-ray BD5 1080p
Disc Size: 442 482 480 bytes
Protection: AACS
BD-Java: No
Playlist: 00000.MPLS
Size: 442 478 592 bytes
Length: 0:03:36.635
Total Bitrate: 16,34 Mbps
Video: MPEG-4 AVC Video / 13837 kbps / 1080p / 23,976 fps / 16:9 / High Profile 4.0
Audio: English / LPCM Audio / 2.0 / 48 kHz / 1536 kbps / 16-bit