H265 Main10 Profile Not Working

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
ByteShare
Posts: 35
Joined: Fri Aug 07, 2015 1:21 am

H265 Main10 Profile Not Working

Post by ByteShare »

I started working on this issue on this thread: viewtopic.php?f=12&t=32859
I worked with JohnAStebbins.

The issue:
I tried several different dll files from: http://www.msystem.waw.pl/x265/
I tried the following DLLs name "libx265_main10.dll" (told this is the correct name) in the main handbrake folder:
(Version / Dll Name in the package)
x265-1.9+2-ee38630-stable_Win64-vs2015 / (both main and AVX files) libx265.dll
x265-1.9+15-425b583_vs2015 / libx265_main10.dll
x265-1.9+15-425b583_vs2015-AVX / libx265_main10.dll & libx265_main.dll (renamed it when placing in the main HandBrake folder)
(Note, some of them I renamed when placing them in the main HandBrake install folder)

I only ran 10 sec encodes and made sure that the profile was set to Main10, but the encode always defaulted back to Main, rather than Main10.

I'm concluding I used the wrong location or wrong filename but but JohnAStebbins seemed to be confident about both, or maybe the wrong dll.
Any advice?

Log from one of the encodes:

Code: Select all

HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
Ram: 8099 MB, 
GPU Information:
  Intel(R) HD Graphics Family - 8.15.10.2291
  NVIDIA GeForce GT 540M - 10.18.13.5435
Screen: 1920x1080
Temp Dir: C:\Users\***\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\***\AppData\Roaming\HandBrake Team\HandBrake\0.10.5.0

-------------------------------------------

CLI Query:  -i "C:\Test.mkv" -t 1 --angle 1 --start-at duration:0 --stop-at duration:10 -o "C:\Test Main10.mkv"  -f mkv  --crop 0:0:0:0 --strict-anamorphic  --modulus 2 -e x265 -q 1 --vfr -a 1 -E av_aac -6 stereo -R Auto -B 128 -D 0 --gain 2 --audio-fallback ac3 --markers="C:\Users\***\AppData\Local\Temp\Test Main10-1-chapters.csv" --encoder-profile=main10  --verbose=1

[11:35:28] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening C:\Test.mkv...
[11:35:28] CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz
[11:35:28]  - Intel microarchitecture Sandy Bridge
[11:35:28]  - logical processor count: 8
[11:35:29] OpenCL device #1: NVIDIA Corporation GeForce GT 540M
[11:35:29]  - OpenCL version: 1.1 CUDA
[11:35:29]  - driver version: 354.35
[11:35:29]  - device type:    GPU
[11:35:29]  - supported:      no
[11:35:29] Intel Quick Sync Video support: no
[11:35:29] hb_scan: path=C:\Test.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Test.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Test.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(C:\Test.mkv) failed
[11:35:29] 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
[11:35:29] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Test.mkv':
  Duration: 01:38:52.33, start: 0.000000, bitrate: N/A
    Stream #0.0(und): Video: h264 (High), yuv420p, 1264x720 [PAR 1:1 DAR 79:45], PAR 254:255 DAR 20066:11475, 23.98 fps, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 8110638
      DURATION        : 01:37:01.816000000
      NUMBER_OF_FRAMES: 139584
      NUMBER_OF_BYTES : 5902330955
    Stream #0.1(und): Audio: vorbis, 48000 Hz, stereo, fltp
    Metadata:
      title           : 
      BPS             : 166699
      DURATION        : 01:38:48.336000000
      NUMBER_OF_FRAMES: 409710
      NUMBER_OF_BYTES : 123531572
[11:35:29] scan: decoding previews for title 1
[11:35:29] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 (AAC) (2.0 ch)
Scanning title 1 of 1, preview 1, 10.00 %[11:35:29] scan: audio 0x3: vorbis, rate=48000Hz, bitrate=1 English (Vorbis) (2.0 ch)
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 8, 80.00 %[11:35:30] scan: 10 previews, 1264x720, 23.976 fps, autocrop = 0/0/0/0, aspect 1.76:1, PAR 1:1
Scanning title 1 of 1, preview 10, 100.00 %[11:35:30] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\Test.mkv
  + duration: 01:38:52
  + size: 1264x720, pixel aspect: 1/1, display aspect: 1.76, 23.976 fps
  + autocrop: 0/0/0/0
  + support opencl: no
  + support hwd: yes
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 01:38:52
  + audio tracks:
    + 1,  (AAC) (2.0 ch) (iso639-2: und)
  + subtitle tracks:
Reading chapter markers from file C:\Test Main10-1-chapters.csv
[11:35:30] 1 job(s) to process
[11:35:30] starting job
[11:35:30] sync: expecting 263 video frames
[11:35:30] work: only 1 chapter, disabling chapter markers
[11:35:30] job configuration:
[11:35:30]  * source
[11:35:30]    + C:\Test.mkv
[11:35:30]    + title 1, start 00:00:0.00 stop 00:00:10.00
[11:35:30]    + container: matroska,webm
[11:35:30]  * destination
[11:35:30]    + C:\Test Main10.mkv
[11:35:30]    + container: Matroska (libavformat)
[11:35:30]  * video track
[11:35:30]    + decoder: h264
[11:35:30]    + filters
[11:35:30]      + Framerate Shaper (0:27000000:1126125)
[11:35:30]        + frame rate: same as source (around 23.976 fps)
[11:35:30]      + Crop and Scale (1264:720:0:0:0:0)
[11:35:30]        + source: 1264 * 720, crop (0/0/0/0): 1264 * 720, scale: 1264 * 720
[11:35:30]    + strict anamorphic
[11:35:30]      + storage dimensions: 1264 * 720, mod 2
[11:35:30]      + pixel aspect ratio: 1 / 1
[11:35:30]      + display dimensions: 1264 * 720
[11:35:30]    + encoder: H.265 (libx265)
[11:35:30]      + profile: main10
[11:35:30]      + quality: 1.00 (RF)
[11:35:30]  * audio track 1
[11:35:30]    + decoder: (AAC) (5.1 ch) (track 1, id 0x1)
[11:35:30]      + samplerate: 48000 Hz
[11:35:30]    + mixdown: Stereo
[11:35:30]    + gain: 2dB
[11:35:30]    + encoder: AAC (libavcodec)
[11:35:30]      + bitrate: 128 kbps, samplerate: 48000 Hz
[11:35:30] reader: first SCR 0 id 0x0 DTS 0
x265 [info]: HEVC encoder version 1.9
x265 [info]: build info [Windows][GCC 4.9.0][64 bit] 8bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: frame threads / pool features       : 3 / 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       : 24 / 240 / 40
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 / 1 / 1
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-1.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 signhide tmvp strong-intra-smoothing
x265 [info]: tools: lslices=4 deblock sao
[11:36:05] sync: reached pts 900900, exiting early
[11:36:22] work: average encoding speed for job is 6.922851 fps
[11:36:22] reader: done. 1 scr changes
[11:36:22] sync: got 240 frames, 263 expected
[11:36:22] render: lost time: 0 (0 frames)
[11:36:22] render: gained time: 0 (0 frames) (0 not accounted for)
[11:36:22] h264-decoder done: 3161 frames, 0 decoder errors, 0 drops
x265 [info]: frame I:      2, Avg QP:2.71  kb/s: 36817.97
x265 [info]: frame P:     53, Avg QP:1.72  kb/s: 63412.30
x265 [info]: frame B:    185, Avg QP:4.78  kb/s: 38873.64
x265 [info]: Weighted P-Frames: Y:17.0% UV:7.5%
x265 [info]: consecutive B-frames: 3.6% 0.0% 7.3% 34.5% 54.5% 
encoded 240 frames in 51.97s (4.62 fps), 44275.47 kb/s, Avg QP:4.09
[11:36:22] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[11:36:22] mux: track 0, 240 frames, 55400633 bytes, 44461.49 kbps, fifo 64
[11:36:22] mux: track 1, 468 frames, 161491 bytes, 129.60 kbps, fifo 512
[11:36:22] libhb: work result = 0
Encode done!
HandBrake has exited.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: H265 Main10 Profile Not Working

Post by s55 »

This feature is only available in the nightly builds (and CLI Only right now)

Not to mention, completely untested.

But remember, your still potentially doing 10bit to 8bit to 10bit conversions since libhb is still 8bit
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: H265 Main10 Profile Not Working

Post by s55 »

Update: Looks like you need to build x265 in a very specific way otherwise this won't work. The versions on that site are incompatible with our builds.

We'll maybe look into providing some dll's on the forum for those who want to experiement
ByteShare
Posts: 35
Joined: Fri Aug 07, 2015 1:21 am

Re: H265 Main10 Profile Not Working

Post by ByteShare »

s55 wrote:Update: Looks like you need to build x265 in a very specific way otherwise this won't work. The versions on that site are incompatible with our builds.

We'll maybe look into providing some dll's on the forum for those who want to experiement
Saw your update: https://trac.handbrake.fr/changeset/966 ... e745f87d52
Some dlls would be awesome, since the dlls need to be so specialized.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: H265 Main10 Profile Not Working

Post by mduell »

ByteShare wrote:
s55 wrote:Update: Looks like you need to build x265 in a very specific way otherwise this won't work. The versions on that site are incompatible with our builds.

We'll maybe look into providing some dll's on the forum for those who want to experiement
Saw your update: https://trac.handbrake.fr/changeset/966 ... e745f87d52
Some dlls would be awesome, since the dlls need to be so specialized.
They've already been posted viewtopic.php?f=11&t=34165
ByteShare
Posts: 35
Joined: Fri Aug 07, 2015 1:21 am

Re: H265 Main10 Profile Not Working

Post by ByteShare »

They weren't posted when I asked for them, but thank you for the link :)
wex1001
Posts: 5
Joined: Sun Jul 16, 2017 11:34 pm

Re: H265 Main10 Profile Not Working

Post by wex1001 »

windows 10, I installed the latest nightly build and the new libx265_main10.dll.
Handbrake won't recognize 2.5, but works fine with the 2.3 library.
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: H265 Main10 Profile Not Working

Post by s55 »

2.5 Removed binaries removed. Looks like we can't support 2.5 then. We'll have to wait until 2.6
ByteShare
Posts: 35
Joined: Fri Aug 07, 2015 1:21 am

Re: H265 Main10 Profile Not Working

Post by ByteShare »

wex1001 wrote: Tue Aug 08, 2017 8:26 pm windows 10, I installed the latest nightly build and the new libx265_main10.dll.
Handbrake won't recognize 2.5, but works fine with the 2.3 library.
I thought the DLLs have to match the x265 build, no?
Meaning you have to use the specific x265 2.5+XX version of the DLLs and complied with the same compiler (for example: Visual Studio 2017).
User avatar
s55
HandBrake Team
Posts: 10350
Joined: Sun Dec 24, 2006 1:05 pm

Re: H265 Main10 Profile Not Working

Post by s55 »

We don't officially support non-matching versions but as long as there is no API changes, it may work.

We provide x265 builds in a sticky on the forum built with the correct toolchain. (Anything we don't compile ourselves, is not supported as there can be issues with 3rd party builds)
Post Reply