I don't know if this is a x265 bug or it's HB's. So let's find out...
I use two command to increase x265 performance. pmode and pme.
about 80% of times, everything goes fine. but the other 20%, it crashes at a random point of the encoding. once at 15% and once on 95%.
when it crashes, HB doesn't know a thing. it still thinks the encoding is going on. logs don't show anything suspicious. "Time Remaining" freezes on whatever it is but "time elapsed" is still counting. CPU using for HandBrakeCLI.exe is absolute zero. it just stops encoding. no error or anything appears on the screen.
of course, when I don't use the commands mentioned above, everything goes fine.
is there any other info needed?
this is the encoding log but I don't think any useful info is there:
Code: Select all
HandBrake svn6759 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.2.9200.0 - 64bit
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
Ram: 24566 MB,
GPU Information:
Microsoft Basic Display Adapter - 6.3.9600.16384
Screen: 1024x768
Temp Dir: C:\Users\Administrator\AppData\Local\Temp\2\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Administrator\AppData\Roaming\HandBrake\HandBrake\0.0.0.6759
-------------------------------------------
CLI Query: -i "E:\Vid1\Vid1.mkv" -t 1 --angle 1 -c 1-13 -o "E:\Vid1\Dest-1.mkv" -f mkv -w 1280 -l 544 --crop 0:0:0:0 --modulus 16 -e x265 -q 30 --vfr -a 1 -E fdk_haac -6 stereo -R 48 -B 80 -D 0 --gain 0 --audio-fallback ac3 --encoder-preset=fast -x --pmode:--pme --verbose=1
[10:32:35] hb_init: starting libhb thread
HandBrake svn6759 (2015011601) - MinGW x86_64 - https://handbrake.fr
24 CPUs detected
Opening E:\Vid1\Vid1.mkv...
[10:32:35] CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
[10:32:35] - logical processor count: 24
[10:32:35] OpenCL: library not available
[10:32:35] Intel Quick Sync Video support: no
[10:32:35] hb_scan: path=E:\Vid1\Vid1.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\Vid1\Vid1.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening E:\Vid1\Vid1.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(E:\Vid1\Vid1.mkv) failed
[10:32:35] 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
[10:32:35] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'E:\Vid1\Vid1.mkv':
Metadata:
title :
Duration: 02:14:29.08, start: 0.000000, bitrate: 13966 kb/s
Chapter #0.0: start 0.000000, end 527.568000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 527.568000, end 1317.399000
Metadata:
title : 00:08:47.568
Chapter #0.2: start 1317.399000, end 1791.915000
Metadata:
title : 00:21:57.399
Chapter #0.3: start 1791.915000, end 2672.086000
Metadata:
title : 00:29:51.915
Chapter #0.4: start 2672.086000, end 3213.585000
Metadata:
title : 00:44:32.086
Chapter #0.5: start 3213.585000, end 4077.031000
Metadata:
title : 00:53:33.585
Chapter #0.6: start 4077.031000, end 4854.140000
Metadata:
title : 01:07:57.031
Chapter #0.7: start 4854.140000, end 5500.369000
Metadata:
title : 01:20:54.140
Chapter #0.8: start 5500.369000, end 6135.170000
Metadata:
title : 01:31:40.369
Chapter #0.9: start 6135.170000, end 7212.496000
Metadata:
title : 01:42:15.170
Chapter #0.10: start 7212.496000, end 7619.778000
Metadata:
title : 02:00:12.496
Chapter #0.11: start 7619.778000, end 8069.061000
Metadata:
title : 02:06:59.778
Chapter #0.12: start 8069.061000, end 8069.088000
Metadata:
title : 02:14:29.061
Stream #0.0(jpn): Video: h264 (High), yuv420p, 1920x804 [PAR 1:1 DAR 160:67], 23.98 fps, 1k tbn, 47.95 tbc (default)
Stream #0.1(jpn): Audio: ac3, 48000 Hz, 5.1, fltp, 640 kb/s (default)
Stream #0.2(chi): Subtitle: ass (default)
Metadata:
title : Simplified
Stream #0.3(chi): Subtitle: ass
Metadata:
title : Traditional
Stream #0.4: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : æ–¹æ£ç²—雅宋_GBK.TTF
mimetype : application/x-truetype-font
Stream #0.5: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : æ–¹æ£è¡Œæ¥·_GBK.ttf
mimetype : application/x-truetype-font
Stream #0.6: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : æ–¹æ£éš¶å˜_GBK.TTF
mimetype : application/x-truetype-font
Stream #0.7: Attachment: [0][0][0][0] / 0x0000
Metadata:
filename : éšçŸ³è¡Œæ›¸.TTF
mimetype : application/x-truetype-font
[10:32:35] dxva2:IDirectXVideoDecoderService_GetDecoderDeviceGuids failed
[10:32:35] dxva2:DxFindVideoServiceConversion failed
[10:32:35] scan: decoding previews for title 1
[10:32:35] scan: audio 0x1: ac3, rate=48000Hz, bitrate=640000 Japanese (AC3) (5.1 ch)
Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 9, 90.00 %[10:32:36] scan: 10 previews, 1920x804, 23.976 fps, autocrop = 0/0/0/0, aspect 2.39:1, PAR 1:1
[10:32:36] libhb: scan thread found 1 valid title(s)
+ title 1:
+ stream: E:\Vid1\Vid1.mkv
+ duration: 02:14:29
+ size: 1920x804, pixel aspect: 1/1, display aspect: 2.39, 1.000 fps
+ autocrop: 0/0/0/0
+ support opencl: no
+ support hwd: no
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:08:48
+ 2: cells 0->0, 0 blocks, duration 00:13:10
+ 3: cells 0->0, 0 blocks, duration 00:07:55
+ 4: cells 0->0, 0 blocks, duration 00:14:40
+ 5: cells 0->0, 0 blocks, duration 00:09:01
+ 6: cells 0->0, 0 blocks, duration 00:14:23
+ 7: cells 0->0, 0 blocks, duration 00:12:57
+ 8: cells 0->0, 0 blocks, duration 00:10:46
+ 9: cells 0->0, 0 blocks, duration 00:10:35
+ 10: cells 0->0, 0 blocks, duration 00:17:57
+ 11: cells 0->0, 0 blocks, duration 00:06:47
+ 12: cells 0->0, 0 blocks, duration 00:07:29
+ 13: cells 0->0, 0 blocks, duration 00:00:00
+ audio tracks:
+ 1, Japanese (AC3) (5.1 ch) (iso639-2: jpn), 48000Hz, 640000bps
+ subtitle tracks:
+ 1, Chinese (iso639-2: zho) (Text)(SSA)
+ 2, Chinese (iso639-2: zho) (Text)(SSA)
[10:32:36] 1 job(s) to process
[10:32:36] starting job
[10:32:36] sync: expecting 193464 video frames
[10:32:36] job configuration:
[10:32:36] * source
[10:32:36] + E:\Vid1\Vid1.mkv
[10:32:36] + title 1, chapter(s) 1 to 13
[10:32:36] + container: matroska,webm
[10:32:36] + data rate: 13966 kbps
[10:32:36] * destination
[10:32:36] + E:\Vid1\Dest-1.mkv
[10:32:36] + container: Matroska (libavformat)
[10:32:36] * video track
[10:32:36] + decoder: h264
[10:32:36] + filters
[10:32:36] + Framerate Shaper (0:27000000:1126125)
[10:32:36] + frame rate: same as source (around 23.976 fps)
[10:32:36] + Crop and Scale (1280:544:0:0:0:0)
[10:32:36] + source: 1920 * 804, crop (0/0/0/0): 1920 * 804, scale: 1280 * 544
[10:32:36] + Output geometry
[10:32:36] + storage dimensions: 1280 x 544
[10:32:36] + pixel aspect ratio: 1 : 1
[10:32:36] + display dimensions: 1280 x 544
[10:32:36] + encoder: H.265 (libx265)
[10:32:36] + preset: slow
[10:32:36] + options: --pmode:--pme
[10:32:36] + quality: 25.00 (RF)
[10:32:36] * audio track 1
[10:32:36] + decoder: Japanese (AC3) (5.1 ch) (track 1, id 0x1)
[10:32:36] + bitrate: 640 kbps, samplerate: 48000 Hz
[10:32:36] + mixdown: Stereo
[10:32:36] + dither: triangular
[10:32:36] + encoder: HE-AAC (libfdk_aac)
[10:32:36] + bitrate: 64 kbps, samplerate: 48000 Hz
[10:32:36] reader: first SCR 0 id 0x1 DTS 0
x265 [info]: HEVC encoder version 1.4
x265 [info]: build info [Windows][GCC 4.9.0][64 bit] 8bpp
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: WPP streams / frame threads / pool : 9 / 5 / 24 / pme / pmode
x265 [info]: CTU size / RQT depth inter / intra : 64 / 1 / 1
x265 [info]: ME / range / subpel / merge : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut : 24 / 240 / 40
x265 [info]: Lookahead / bframes / badapt : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 3
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-25.0 / 1.0 / 1
x265 [info]: tools: rect rd=4 lft sao signhide tmvp
[10:51:22] h264: "00:08:47.568" (2) at frame 12657 time 47481210
[11:25:15] h264: "00:21:57.399" (3) at frame 31596 time 118573470
[11:42:57] h264: "00:29:51.915" (4) at frame 42971 time 161272350
[12:13:19] h264: "00:44:32.086" (5) at frame 64074 time 240487740
[12:34:03] h264: "00:53:33.585" (6) at frame 77057 time 289222650
[13:11:52] h264: "01:07:57.031" (7) at frame 97759 time 366932790