Change set 443392f introduced new GCC toolchain, which produces malfunction binary.
HandBrake 20180508203126-a6f3cd6-master (2018050901) - MinGW x86_64 <--- won't work
HandBrake 20180501194504-63a5558-master (2018050301) - MinGW x86_64 <--- works fine
Compiled on Gentoo (kernel 4.15.18, x86_64) guest in Windows 10 host, run on Windows 10 Home (64bit).
Video source (Quicktime 720p) from https://peach.blender.org/trailer-page/
Here is the one in trouble (HandBrake 20180508203126-a6f3cd6-master (2018050901) - MinGW x86_64)
~~~
[13:23:04] hb_init: starting libhb thread
[13:23:04] thread 7f6ec60 started ("libhb")
HandBrake 20180508203126-a6f3cd6-master (2018050901) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening trailer_720p.mov...
[13:23:04] CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
[13:23:04] - Intel microarchitecture Skylake
[13:23:04] - logical processor count: 4
[13:23:04] Intel Quick Sync Video support: yes
[13:23:04] - Intel Media SDK hardware: API 1.25 (minimum: 1.3)
[13:23:04] - H.264 encoder: yes
[13:23:04] - preferred implementation: hardware (any) via D3D11
[13:23:04] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[13:23:04] - H.265 encoder: yes (8bit: yes, 10bit: no)
[13:23:04] - preferred implementation: hardware (any) via D3D11
[13:23:04] - capabilities (hardware): bpyramid icq vsinfo opt1
[13:23:04] hb_scan: path=trailer_720p.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image trailer_720p.mov
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMVBACKUP\index.bdmv
[13:23:04] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[13:23:04] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'trailer_720p.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2008-03-18 12:45:48
Duration: 00:00:33.00, start: 0.000000, bitrate: 4317 kb/s
Stream #0:0(eng): Video: h264 (Main) [avc1 / 0x31637661]
yuv420p, tv, bt709/bt709/bt709
1280x720, 3945 kb/s
25 fps, 600 tbn (default)
Metadata:
creation_time : 2008-03-18 12:45:48
handler_name : Apple Alias Data Handler
encoder : H.264
Stream #0:1(eng): Audio: aac (LC) [mp4a / 0x6134706D]
48000 Hz, 5.1, fltp, 428 kb/s (default)
Metadata:
creation_time : 2008-03-18 12:45:48
handler_name : Apple Alias Data Handler
[13:23:04] scan: decoding previews for title 1
[13:23:04] scan: audio 0x1: aac, rate=48000Hz, bitrate=428605 English (AAC) (5.1 ch)
Scanning title 1 of 1, preview 4, 40.00 %[13:23:04] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:23:04] scan: supported video decoders: avcodec qsv
[13:23:04] libhb: scan thread found 1 valid title(s)
Whereas the working one (HandBrake 20180501194504-63a5558-master (2018050301) - MinGW x86_64) goes like...
~~~
[13:26:20] hb_init: starting libhb thread
[13:26:20] thread 7a56a90 started ("libhb")
HandBrake 20180501194504-63a5558-master (2018050301) - MinGW x86_64 - https://handbrake.fr
4 CPUs detected
Opening trailer_720p.mov...
[13:26:20] CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
[13:26:20] - Intel microarchitecture Skylake
[13:26:20] - logical processor count: 4
[13:26:20] Intel Quick Sync Video support: yes
[13:26:20] - Intel Media SDK hardware: API 1.25 (minimum: 1.3)
[13:26:20] - H.264 encoder: yes
[13:26:20] - preferred implementation: hardware (any) via D3D11
[13:26:20] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[13:26:20] - H.265 encoder: yes (8bit: yes, 10bit: no)
[13:26:20] - preferred implementation: hardware (any) via D3D11
[13:26:20] - capabilities (hardware): bpyramid icq vsinfo opt1
[13:26:20] hb_scan: path=trailer_720p.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image trailer_720p.mov
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMVBACKUP\index.bdmv
[13:26:20] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[13:26:20] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'trailer_720p.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2008-03-18 12:45:48
Duration: 00:00:33.00, start: 0.000000, bitrate: 4317 kb/s
Stream #0:0(eng): Video: h264 (Main) [avc1 / 0x31637661]
yuv420p, tv, bt709/bt709/bt709
1280x720, 3945 kb/s
25 fps, 600 tbn (default)
Metadata:
creation_time : 2008-03-18 12:45:48
handler_name : Apple Alias Data Handler
encoder : H.264
Stream #0:1(eng): Audio: aac (LC) [mp4a / 0x6134706D]
48000 Hz, 5.1, fltp, 428 kb/s (default)
Metadata:
creation_time : 2008-03-18 12:45:48
handler_name : Apple Alias Data Handler
[13:26:20] scan: decoding previews for title 1
[13:26:20] scan: audio 0x1: aac, rate=48000Hz, bitrate=428605 English (AAC) (5.1 ch)
Scanning title 1 of 1, preview 5, 50.00 %[13:26:20] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[13:26:20] scan: supported video decoders: avcodec qsv
[13:26:20] libhb: scan thread found 1 valid title(s)
encoded 812 frames in 38.16s (21.28 fps), 113.16 kb/s, Avg QP:44.54
[13:26:59] starting job
[13:26:59] job configuration:
[13:26:59] * source
[13:26:59] yadif thread started for segment 1
[13:26:59] yadif thread started for segment 3
[13:26:59] + trailer_720p.mov
[13:26:59] yadif thread started for segment 0
[13:26:59] yadif thread started for segment 2
[13:26:59] + title 1, chapter(s) 1 to 1
[13:26:59] + container: mov,mp4,m4a,3gp,3g2,mj2
[13:26:59] + data rate: 4317 kbps
[13:26:59] * destination
[13:26:59] + D:\video\trailer_720p.mov
[13:26:59] + container: MPEG-4 (libavformat)
[13:26:59] * video track
[13:26:59] + decoder: h264
[13:26:59] + bitrate 3945 kbps
[13:26:59] + filters
[13:26:59] + Decomb (mode=7)
[13:26:59] + Framerate Shaper (mode=0)
[13:26:59] + frame rate: same as source (around 25.000 fps)
[13:26:59] + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[13:26:59] + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[13:26:59] + Output geometry
[13:26:59] + storage dimensions: 1280 x 720
[13:26:59] + pixel aspect ratio: 1 : 1
[13:26:59] + display dimensions: 1280 x 720
[13:26:59] + encoder: H.265 (libx265)
[13:26:59] + preset: medium
[13:26:59] + profile: auto
[13:26:59] + bitrate: 100 kbps, pass: 2
[13:26:59] * audio track 1
[13:26:59] + decoder: English (AAC) (5.1 ch) (track 1, id 0x1)
[13:26:59] + bitrate: 428 kbps, samplerate: 48000 Hz
[13:26:59] + mixdown: Mono
[13:26:59] + dither: triangular
[13:26:59] + encoder: HE-AAC (libfdk_aac)
[13:26:59] + bitrate: 32 kbps, samplerate: 48000 Hz
[13:26:59] sync: expecting 812 video frames
x265 [info]: HEVC encoder version 2.7+346-69aafa6
x265 [info]: build info [Windows][GCC 7.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 2 / wpp(12 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : ABR-100 kbps / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 rskip signhide tmvp strong-intra-smoothing
x265 [info]: tools: lslices=4 deblock sao stats-read
[13:26:59] sync: first pts video is 0
[13:26:59] sync: Chapter 1 at frame 1 time 0
[13:26:59] sync: first pts audio 0x1 is 0
[13:27:37] reader: done. 1 scr changes
[13:27:42] work: average encoding speed for job is 19.610355 fps
[13:27:42] decomb: deinterlaced 812 | blended 0 | unfiltered 0 | total 812
[13:27:43] vfr: lost time: 0 (0 frames)
[13:27:43] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:27:43] aac-decoder done: 1547 frames, 0 decoder errors
[13:27:43] h264-decoder done: 812 frames, 0 decoder errors
[13:27:43] sync: got 812 frames, 812 expected
[13:27:43] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x265 [info]: frame I: 16, Avg QP:39.10 kb/s: 1010.83
x265 [info]: frame P: 248, Avg QP:43.59 kb/s: 193.38
x265 [info]: frame B: 548, Avg QP:47.76 kb/s: 34.72
x265 [info]: Weighted P-Frames: Y:17.7% UV:17.3%
x265 [info]: consecutive B-frames: 23.9% 9.5% 8.0% 52.7% 6.1%
encoded 812 frames in 43.92s (18.49 fps), 102.41 kb/s, Avg QP:46.32
[13:27:43] mux: track 0, 812 frames, 419032 bytes, 101.46 kbps, fifo 1024
[13:27:43] mux: track 1, 776 frames, 132438 bytes, 32.07 kbps, fifo 1024
[13:27:43] libhb: work result = 0
Encode done!
HandBrake has exited.
~~~
I know the fact that GCC 7.3 somehow breaks the binary even though the final compile message ends with SUCCESS. I had tested GCC 7.3 before the change set came in. The results are all the same with various x265 sources. GCC 7.2 does not produce bad ones, but 7.3 always produces bad ones. Actually, I was waiting for a new toolchain with GCC 7.3, so I gave it a try and failed. This may be upstream (x265 or GCC) issue, but I file it anyway.
HEVC encoder version 2.7+348-0968a46
Current HandBrake is shipping x265 2.6. You cannot drop in 2.7 without additional changes.
That said, I will investigate to make sure there isn't breakage with the standard contribs.
Fixed, thanks for catching that.
Thank you. Degrading to binutils 2.91 works fine. Confirmed.