I've been ripping some DVD's I own that aren't available on Bluray and transferring them them to Bluray. I can simply drag the .vob's to my authoring software and call it a day, but I like to increase their native w x h and add a 16:9 padding using HB's CLI. That way the size appears a bit smaller and the video appears a bit sharper.
The video comes out kind of choppy, even when I throw it on a USB drive and hook it directly to my TV bypassing my media player. I use VLC for viewing on my PC.
This CL creates a Bluray Complaint file. This is the log from that CL. Note: The test.m2ts file is from the original DVD rip. I shortened it losslessly (using Smart Render) using my authoring software to make the test quicker and it renamed it to an m2ts file.
Code: Select all
C:\hb>handbrakecli -i test.m2ts -o test.mkv --pad width=1920:height=1080 --custom-anamorphic --width 1440 --height 806 --rate 29.97 --cfr --decomb --deblock 5 --encoder x264 --encoder-preset veryslow --encoder-level 4.1 --quality 23 --encopts bluray-compat=1:vbv-maxrate=9800:vbv-bufsize=2240:keyint=24:open-gop=1:slices=4:colorprim=bt709:transfer=bt709:colormatrix=bt709c
[15:48:17] hb_init: starting libhb thread
[15:48:17] thread 4c1b410 started ("libhb")
HandBrake 20160913221443-8ee94cd-master (2016091401) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening test.m2ts...
[15:48:17] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[15:48:17] - Intel microarchitecture Skylake
[15:48:17] - logical processor count: 8
[15:48:17] OpenCL: library not available
[15:48:17] Intel Quick Sync Video support: no
[15:48:17] hb_scan: path=test.m2ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image test.m2ts
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[15:48:17] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[15:48:17] dvd: not a dvd - trying as a stream/file instead
[15:48:17] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[15:48:17] Found the following PIDS
[15:48:17] Video PIDS :
[15:48:17] 0x1011 type MPEG2 (0x2)
[15:48:17] Audio PIDS :
[15:48:17] 0x1100 type AC3 (0x81)
[15:48:17] 0x1101 type AC3 (0x81)
[15:48:17] Subtitle PIDS :
[15:48:17] Other PIDS :
[15:48:17] 0x1001 type Unknown (0xff) (PCR)
[15:48:17] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[15:48:17] stream id 0x1101 (type 0x81 substream 0x0) audio 0x1101
[15:48:17] scan: decoding previews for title 1
[15:48:17] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[15:48:17] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=384000 Unknown (AC3) (2.0 ch) (Dolby Surround)
[15:48:17] scan: audio 0x1100: ac3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch)
[15:48:17] stream: 16 good frames, 0 errors (0%)
[15:48:17] scan: 10 previews, 720x480, 23.976 fps, autocrop = 56/58/0/2, aspect 16:9, PAR 32:27
[15:48:17] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
+ stream: test.m2ts
+ duration: 00:03:41
+ size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 23.976 fps
+ autocrop: 56/58/0/2
+ support opencl: no
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:03:41
+ audio tracks:
+ 1, Unknown (AC3) (5.1 ch) (iso639-2: und), 48000Hz, 448000bps
+ 2, Unknown (AC3) (2.0 ch) (Dolby Surround) (iso639-2: und), 48000Hz, 384000bps
+ subtitle tracks:
[15:48:17] 1 job(s) to process
[15:48:17] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 128,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": "dpl2",
"NormalizeMixLevel": false,
"PresetEncoder": "av_aac",
"Quality": -3.0,
"Samplerate": "auto",
"Track": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:eac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
"copy:truehd",
"copy:flac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": false,
"File": "test.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mkv"
},
"Filters": {
"FilterList": [
{
"ID": 4,
"Settings": {
"mode": "7"
}
},
{
"ID": 6,
"Settings": {
"mode": 1,
"rate": "27000000/900900"
}
},
{
"ID": 7,
"Settings": {
"qp": "5"
}
},
{
"ID": 11,
"Settings": {
"crop-bottom": 58,
"crop-left": 0,
"crop-right": 2,
"crop-top": 56,
"height": 806,
"width": 1440
}
},
{
"ID": 14,
"Settings": {
"height": "1080",
"width": "1920"
}
}
]
},
"Metadata": {},
"PAR": {
"Den": 720,
"Num": 853
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "test.m2ts",
"Range": {
"End": 1,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ColorMatrixCode": 0,
"Encoder": "x264",
"Level": "4.1",
"OpenCL": false,
"Options": "bluray-compat=1:vbv-maxrate=9800:vbv-bufsize=2240:keyint=24:open-gop=1:slices=4:colorprim=bt709:transfer=bt709:colormatrix=bt709c",
"Preset": "veryslow",
"Profile": "auto",
"QSV": {
"AsyncDepth": 4,
"Decode": false
},
"Quality": 23.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[15:48:17] starting job
[15:48:17] yadif thread started for segment 0
[15:48:17] yadif thread started for segment 1
[15:48:17] yadif thread started for segment 2
[15:48:17] yadif thread started for segment 3
[15:48:17] yadif thread started for segment 4
[15:48:17] yadif thread started for segment 5
[15:48:17] yadif thread started for segment 6
[15:48:17] yadif thread started for segment 7
[15:48:17] job configuration:
[15:48:17] * source
[15:48:17] + test.m2ts
[15:48:17] + title 1, chapter(s) 1 to 1
[15:48:17] * destination
[15:48:17] + test.mkv
[15:48:17] + container: Matroska (libavformat)
[15:48:17] * video track
[15:48:17] + decoder: mpeg2video
[15:48:17] + bitrate 9800 kbps
[15:48:17] + filters
[15:48:17] + Decomb (mode=7)
[15:48:17] + Framerate Shaper (mode=1:rate=27000000/900900)
[15:48:17] + frame rate: 23.976 fps -> constant 29.970 fps
[15:48:17] + Deblock (pp7) (qp=5)
[15:48:17] + Crop and Scale (width=1440:height=806:crop-top=56:crop-bottom=58:crop-left=0:crop-right=2)
[15:48:17] + source: 720 * 480, crop (56/58/0/2): 718 * 366, scale: 1440 * 806
[15:48:17] + avfilter (pad='width=1920:height=1080:x=(out_w-in_w)/2:y=(out_h-in_h)/2')
[15:48:17] + pad: width=1920, height=1080, x=(out_w-in_w)/2, y=(out_h-in_h)/2
[15:48:17] + Output geometry
[15:48:17] + storage dimensions: 1920 x 1080
[15:48:17] + pixel aspect ratio: 853 : 720
[15:48:17] + display dimensions: 2274 x 1080
[15:48:17] + encoder: H.264 (libx264)
[15:48:17] + preset: veryslow
[15:48:17] + options: bluray-compat=1:vbv-maxrate=9800:vbv-bufsize=2240:keyint=24:open-gop=1:slices=4:colorprim=bt709:transfer=bt709:colormatrix=bt709c
[15:48:17] + profile: auto
[15:48:17] + level: 4.1
[15:48:17] + quality: 23.00 (RF)
[15:48:17] * audio track 1
[15:48:17] + decoder: Unknown (AC3) (5.1 ch) (track 1, id 0x1100)
[15:48:17] + bitrate: 448 kbps, samplerate: 48000 Hz
[15:48:17] + mixdown: Dolby Pro Logic II
[15:48:17] + encoder: AAC (libavcodec)
[15:48:17] + bitrate: 128 kbps, samplerate: 48000 Hz
[15:48:17] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[15:48:17] sync: expecting 5315 video frames
[15:48:17] x264 options: Bad argument colormatrix=bt709c
[15:48:17] encx264: min-keyint: 24, keyint: 24
[15:48:17] encx264: encoding at constant RF 23.000000
[15:48:17] encx264: unparsed options: bluray-compat=1:analyse=all:colormatrix=bt709c:open-gop=1:vbv-maxrate=9800:vbv-bufsize=2240:colorprim=bt709:b-adapt=2:transfer=bt709:keyint=24:trellis=2:slices=4:level=4.1:ref=4:subme=10:bframes=8:direct=auto:me=umh:merange=24:rc-lookahead=60
x264 [info]: using SAR=853/720
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.1
[15:48:18] sync: first pts video is 0
[15:48:18] sync: first pts audio 0x1100 is 0
Encoding: task 1 of 1, 1.07 %[15:48:18] 2.068733s: Video -> Film
Encoding: task 1 of 1, 97.08 % (28.31 fps, avg 29.60 fps, ETA 00h00m05s)[15:51:12] hb_ts_stream_decode - eof
[15:51:12] reader: done. 1 scr changes
Encoding: task 1 of 1, 97.37 % (28.31 fps, avg 29.60 fps, ETA 00h00m05s)[15:51:15] work: average encoding speed for job is 29.595892 fps
Encoding: task 1 of 1, 97.37 % (28.31 fps, avg 29.60 fps, ETA 00h00m05s)[15:51:15] decomb: deinterlaced 5213 | blended 0 | unfiltered 0 | total 5213
[15:51:15] render: 6500 frames output, 0 dropped and 1287 duped for CFR/PFR
[15:51:15] render: lost time: 0 (0 frames)
[15:51:15] render: gained time: 0 (0 frames) (0 not accounted for)
[15:51:15] stream: 5213 good frames, 0 errors (0%)
[15:51:15] ac3-decoder done: 6777 frames, 0 decoder errors
[15:51:15] mpeg2video-decoder done: 5213 frames, 0 decoder errors
[15:51:15] sync: got 5213 frames, 5315 expected
[15:51:15] sync: framerate min 23.981 fps, max 29.970 fps, avg 24.035 fps
x264 [info]: frame I:299 Avg QP:15.53 size: 35258
x264 [info]: frame P:2326 Avg QP:19.66 size: 8861
x264 [info]: frame B:3875 Avg QP:23.53 size: 4189
x264 [info]: consecutive B-frames: 18.1% 3.2% 12.0% 66.7%
x264 [info]: mb I I16..4: 54.5% 42.7% 2.8%
x264 [info]: mb P I16..4: 2.0% 3.2% 0.1% P16..4: 17.4% 2.5% 2.6% 0.0% 0.0% skip:72.2%
x264 [info]: mb B I16..4: 0.2% 0.3% 0.0% B16..8: 19.1% 1.7% 0.3% direct: 0.8% skip:77.7% L0:45.6% L1:50.9% BI: 3.5%
x264 [info]: 8x8 transform intra:48.3% inter:92.7%
x264 [info]: direct mvs spatial:99.8% temporal:0.2%
x264 [info]: coded y,uvDC,uvAC intra: 30.5% 27.4% 2.7% inter: 3.3% 2.8% 0.0%
x264 [info]: i16 v,h,dc,p: 69% 9% 6% 16%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 9% 12% 7% 9% 12% 8% 11% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 13% 6% 8% 11% 12% 10% 8% 8%
x264 [info]: i8c dc,h,v,p: 42% 23% 18% 17%
x264 [info]: Weighted P-Frames: Y:3.3% UV:0.9%
x264 [info]: ref P L0: 74.0% 12.9% 13.1%
x264 [info]: ref B L0: 92.2% 7.8%
x264 [info]: ref B L1: 92.4% 7.6%
x264 [info]: kb/s:1747.86
[15:51:15] mux: track 0, 6500 frames, 47367756 bytes, 1746.95 kbps, fifo 2048
[15:51:15] mux: track 1, 10164 frames, 3474419 bytes, 128.14 kbps, fifo 4096
[15:51:15] libhb: work result = 0
Encode done!
HandBrake has exited.
C:\hb>
Is there some de-interlace setting I'm missing, or is something turning on by default because I haven't specifically told HB via the CLI to turn it off?
fwiw, I did a quick test in the GUI version without using any of the Bluray Compliant settings I normally use and it came out really smooth, but I'm unable to throw that file on to a Bluray or resize it and add padding.
Feature Request: Please let us up-scale and add padding via the GUI.