Обработка в AviSynth:
DGDecode_MPEG2Source("Video.d2v") # 720x480p30, сделано из i30 путем
dumb bob и отбрасывания половины кадров.
QTGMC(InputType=2, SourceMatch=2) # починка плохо деинтерлейснутого материала.
crop(2,0,-2,0)
Dither_convert_8_to_16()
Dither_Resize16(640,360) # даже еще меньше можно было
DitherPost() # изменение размера с дизерингом
Настройки x264:
--preset veryslow --tune film --pass 2 --bitrate 2500
--level 3 --vbv-bufsize 12500 --vbv-maxrate 12500 --qpfile "chapters.txt"
--colorprim smpte170m --transfer smpte170m --colormatrix smpte170m --sar 1:1 --stats ""
Из лога:
x264 [info]: frame I:443 Avg QP:14.48 size: 46231
x264 [info]: frame P:12534 Avg QP:17.22 size: 19800
x264 [info]: frame B:35735 Avg QP:19.51 size: 6698
x264 [info]: consecutive B-frames: 3.6% 4.0% 13.8% 31.5% 24.2% 21.1% 1.1% 0.2% 0.5%
x264 [info]: Weighted P-Frames: Y:29.9% UV:24.4% (!)
x264 [info]: kb/s:2500.53
Звук - из PCM 2.0 16 bit в QuickTime AAC true VBR v127 (макс. качество).
MediaInfo:
General
Complete name : Rodrigo y Gabriela - Live in Japan (2008) DVDRip-AVC.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 553 MiB
Duration : 27mn 5s
Overall bit rate mode : Variable
Overall bit rate : 2 855 Kbps
Encoded date : UTC 2013-01-23 14:43:15
Tagged date : UTC 2013-01-23 14:43:15
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile :
[email protected] Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 27mn 5s
Bit rate : 2 500 Kbps
Maximum bit rate : 6 454 Kbps
Width : 640 pixels
Height : 360 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.362
Stream size : 484 MiB (88%)
Title : 264#trackID=1:
[email protected] Writing library : x264 core 129 r2245 bc13772
Encoding settings : cabac=1 / ref=8 / 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=300 / keyint_min=29 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=12500 / vbv_bufsize=12500 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2013-01-23 14:43:15
Tagged date : UTC 2013-01-23 14:44:36
Color primaries : BT.601 NTSC
Transfer characteristics : BT.601
Matrix coefficients : BT.601
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 26mn 57s
Bit rate mode : Variable
Bit rate : 353 Kbps
Maximum bit rate : 412 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 67.8 MiB (12%)
Encoded date : UTC 2013-01-22 19:56:36
Tagged date : UTC 2013-01-23 14:44:36
Menu
00:00:00.000 : Satori
00:05:36.500 : Ixtapa
00:10:21.500 : Vikingman
00:14:51.666 : Tamacun
00:21:12.666 : Diablo Rojo