[Fixed][svn6169] HEVC : No chapter markers

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Ayoross
Novice
Posts: 51
Joined: Mon Jun 11, 2012 9:07 pm

[Fixed][svn6169] HEVC : No chapter markers

Post by Ayoross »

Hi there,

I went back recently to handbrake nightly builds to try HEVC encoding, results are above all expectations. AVC file size is 2.66 GB, HEVC is 1.60 GB !
However, it seems that chapter markers are broken with HEVC, not AVC. I'm using MKV container.
Here is an encode log.

Code: Select all

HandBrake svn6169 (Nightly Build) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
Ram: 16311 MB, 
GPU Information:
  NVIDIA GeForce GTX 580 - 9.18.13.3523
Screen: 1920x1200
Temp Dir: C:\Users\FG\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\FG\AppData\Roaming\HandBrake\HandBrake\0.0.0.6169

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

CLI Query:  -i "H:\\" -t 1 --angle 1 -c 1-7 -o "D:\DVD\Under the dome S1E04 Le fléau.x265.mkv"  -f mkv  --crop 0:0:0:0 --strict-anamorphic  --modulus 16 -e x265 -q 21.5 --vfr -a 2,4 -E copy:dtshd,copy:ac3 -6 none,none -R Auto,Auto -B 0,0 -D 0,0 --gain 0,0 --audio-fallback ac3 --subtitle 5,1 --markers="C:\Users\FG\AppData\Local\Temp\Under the dome S1E04 Le fléau.x265-1-chapters.csv" --encoder-preset=slow  --encoder-profile=main  --verbose=1

[07:20:07] hb_init: starting libhb thread
HandBrake svn6169 (2014042001) - MinGW x86_64 - http://handbrake.fr
12 CPUs detected
Opening H:\...
[07:20:07] CPU: Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
[07:20:07]  - Intel microarchitecture Sandy Bridge
[07:20:07]  - logical processor count: 12
[07:20:08] OpenCL device #1: NVIDIA Corporation GeForce GTX 580
[07:20:08]  - OpenCL version: 1.1 CUDA
[07:20:08]  - driver version: 335.23
[07:20:08]  - device type:    GPU
[07:20:08]  - supported:      no
[07:20:08] Intel Quick Sync Video support: no
[07:20:08] hb_scan: path=H:\, title_index=1
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
[07:20:08] scan: BD has 7 title(s)
[07:20:08] bd: scanning title 1
[07:20:08] bd: playlist 00000.MPLS
[07:20:08] bd: duration is 00:42:01 (2521352 ms)
[07:20:08] bd: video id=0x1011, stream type=H.264, format 1080p
[07:20:08] bd: aspect = 1.77778
[07:20:08] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[07:20:08] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[07:20:08] bd: audio id=0x1101, lang=Deutsch (AC3), 3cc=deu
[07:20:08] bd: audio id=0x1102, lang=Francais (AC3), 3cc=fra
[07:20:08] bd: subtitle id=0x1200, lang=English, 3cc=eng
[07:20:08] bd: subtitle id=0x1201, lang=Dansk, 3cc=dan
[07:20:08] bd: subtitle id=0x1202, lang=Deutsch, 3cc=deu
[07:20:08] bd: subtitle id=0x1203, lang=Espanol, 3cc=spa
[07:20:08] bd: subtitle id=0x1204, lang=Francais, 3cc=fra
[07:20:08] bd: subtitle id=0x1205, lang=Nederlands, 3cc=nld
[07:20:08] bd: subtitle id=0x1206, lang=Norsk, 3cc=nor
[07:20:08] bd: subtitle id=0x1207, lang=Portugues, 3cc=por
[07:20:08] bd: subtitle id=0x1208, lang=Suomi, 3cc=fin
[07:20:08] bd: subtitle id=0x1209, lang=Svenska, 3cc=swe
[07:20:08] bd: chap 1 packet=768, 557765 ms
[07:20:08] bd: chap 2 packet=1953622464, 276109 ms
[07:20:08] bd: chap 3 packet=2958938688, 439564 ms
[07:20:08] bd: chap 4 packet=4594487232, 517391 ms
[07:20:08] bd: chap 5 packet=6655187328, 702660 ms
[07:20:08] bd: chap 6 packet=9415775616, 27110 ms
[07:20:08] bd: chap 7 packet=9445657344, 750 ms
[07:20:08] bd: title 1 has 7 chapters
[07:20:08] scan: decoding previews for title 1
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
[07:20:08] scan: title angle(s) 1
[07:20:08] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[07:20:08] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1536000 English (DTS-HD MA) (5.1 ch)
[07:20:08] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=448000 Deutsch (AC3) (5.1 ch)
[07:20:08] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=448000 Francais (AC3) (5.1 ch)
Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 4, 40.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 6, 60.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 8, 80.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 10, 100.00 %[07:20:11] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[07:20:11] stream: 24 good frames, 0 errors (0%)
[07:20:11] libhb: scan thread found 1 valid title(s)
+ title 1:
  + playlist: 00000.MPLS
  + duration: 00:42:01
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + support opencl: no
  + support hwd: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:09:18
    + 2: cells 0->0, 0 blocks, duration 00:04:36
    + 3: cells 0->0, 0 blocks, duration 00:07:20
    + 4: cells 0->0, 0 blocks, duration 00:08:37
    + 5: cells 0->0, 0 blocks, duration 00:11:43
    + 6: cells 0->0, 0 blocks, duration 00:00:27
    + 7: cells 0->0, 0 blocks, duration 00:00:01
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 1536000bps
    + 2, English (DTS-HD MA) (5.1 ch) (iso639-2: eng)
    + 3, Deutsch (AC3) (5.1 ch) (iso639-2: deu), 48000Hz, 448000bps
    + 4, Francais (AC3) (5.1 ch) (iso639-2: fra), 48000Hz, 448000bps
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Bitmap)(PGS)
    + 2, Dansk (iso639-2: dan) (Bitmap)(PGS)
    + 3, Deutsch (iso639-2: deu) (Bitmap)(PGS)
    + 4, Espanol (iso639-2: spa) (Bitmap)(PGS)
    + 5, Francais (iso639-2: fra) (Bitmap)(PGS)
    + 6, Nederlands (iso639-2: nld) (Bitmap)(PGS)
    + 7, Norsk (iso639-2: nor) (Bitmap)(PGS)
    + 8, Portugues (iso639-2: por) (Bitmap)(PGS)
    + 9, Suomi (iso639-2: fin) (Bitmap)(PGS)
    + 10, Svenska (iso639-2: swe) (Bitmap)(PGS)
Reading chapter markers from file C:\Users\FG\AppData\Local\Temp\Under the dome S1E04 Le fléau.x265-1-chapters.csv
[07:20:11] 1 job(s) to process
[07:20:11] starting job
[07:20:11] sync: expecting 60451 video frames
[07:20:11] job configuration:
[07:20:11]  * source
[07:20:11]    + H:\
[07:20:11]    + title 1, chapter(s) 1 to 7
[07:20:11]  * destination
[07:20:11]    + D:\DVD\Under the dome S1E04 Le fl‚au.x265.mkv
[07:20:11]    + container: Matroska (libavformat)
[07:20:11]      + chapter markers
[07:20:11]  * video track
[07:20:11]    + decoder: h264
[07:20:11]      + bitrate 200 kbps
[07:20:11]    + filters
[07:20:11]      + Framerate Shaper (0:27000000:1126125)
[07:20:11]        + frame rate: same as source (around 23.976 fps)
[07:20:11]      + Crop and Scale (1920:1080:0:0:0:0)
[07:20:11]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[07:20:11]    + strict anamorphic
[07:20:11]      + storage dimensions: 1920 * 1080, mod 0
[07:20:11]      + pixel aspect ratio: 1 / 1
[07:20:11]      + display dimensions: 1920 * 1080
[07:20:11]    + encoder: H.265 (libx265)
[07:20:11]      + preset:  slow
[07:20:11]      + profile: main
[07:20:11]      + quality: 21.50 (RF)
[07:20:11]  * subtitle track 1, Francais (track 4, id 0x1204) Picture [PGS] -> Passthrough
[07:20:11]  * subtitle track 2, English (track 0, id 0x1200) Picture [PGS] -> Passthrough
[07:20:11]  * audio track 1
[07:20:11]    + decoder: English (DTS-HD MA) (5.1 ch) (track 2, id 0x1100)
[07:20:11]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[07:20:11]    + DTS-HD Passthru
[07:20:11]  * audio track 2
[07:20:11]    + decoder: Francais (AC3) (5.1 ch) (track 4, id 0x1102)
[07:20:11]      + bitrate: 448 kbps, samplerate: 48000 Hz
[07:20:11]    + AC3 Passthru
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match, expected (MPLS0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
x265 [info]: using cpu capabilities: MMX2 SSE SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-4 (Main tier)
failed signature match expected (HDMV0200) got ()
failed signature match expected (HDMV0200) got ()
x265 [info]: WPP streams / pool / frames         : 17 / 12 / 3
x265 [info]: CU size                             : 64
x265 [info]: Max RQT depth inter / intra         : 1 / 1
x265 [info]: fME / range / subpeailel / merge         : sdtar /  signature ma57 / 3 / 3
tch expected (x265 [info]: HDMV0200) got ()
Keyframe min / max / scenecut       : 24 / 240 / 40
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / refs          : 1 / 1 / 3
x265 [info]: Rate Control / AQ-Strength / CUTree : CRF-21.5failed signature match expected ( HDMV0200) got ()
/ 1.0 / 1
x265 [info]: tools: rect amp rd=4 lft sao-lcu sign-hide 
[07:20:11] reader: first SCR 377816246 id 0x1011 DTS 377816246
[07:20:11] h264: "Chapter 1" (1) at frame 0 time 3754
[07:20:11] sync: first pts is 3754
[08:31:25] h264: "Chapter 2" (2) at frame 13373 time 50204184
[09:06:37] h264: "Chapter 3" (3) at frame 19993 time 75054009
[09:59:41] h264: "Chapter 4" (4) at frame 30532 time 114614781
[11:01:12] h264: "Chapter 5" (5) at frame 42937 time 161180049
[12:15:42] h264: "Chapter 6" (6) at frame 59784 time 224419476
[12:16:25] next_packet: eof while re-establishing sync @ 9445656768
[12:16:25] reader: done. 2 scr changes
[12:16:50] work: average encoding speed for job is 3.396506 fps
[12:16:50] sync: got 60433 frames, 60451 expected
[12:16:50] render: lost time: 0 (0 frames)
[12:16:50] render: gained time: 0 (0 frames) (0 not accounted for)
[12:16:50] h264-decoder done: 60433 frames, 0 decoder errors, 0 drops
x265 [info]: frame I: 527    Avg QP:19.13  kb/s: 30537.76
x265 [info]: frame P: 15863  Avg QP:21.94  kb/s: 4250.26 
x265 [info]: frame B: 44043  Avg QP:23.07  kb/s: 1418.47 
x265 [info]: global : 60433  Avg QP:22.74  kb/s: 2415.72 
x265 [info]: 9826 of 15863 (61.94%) P frames weighted
[12:16:50] dca-decoder done: 0 frames, 0 decoder errors, 0 drops
[12:16:50] ac3-decoder done: 0 frames, 0 decoder errors, 0 drops
[12:16:50] mux: track 0, 60433 frames, 761361271 bytes, 2416.44 kbps, fifo 1024
[12:16:50] mux: track 1, 236306 frames, 689800952 bytes, 2189.32 kbps, fifo 4096
[12:16:50] mux: track 2, 78758 frames, 141134336 bytes, 447.94 kbps, fifo 1024
[12:16:50] mux: track 3, 1068 frames, 8772460 bytes, 27.84 kbps, fifo 32
[12:16:50] mux: track 4, 1138 frames, 10511148 bytes, 33.36 kbps, fifo 32
[12:16:50] stream: 60434 good frames, 0 errors (0%)
[12:16:50] libhb: work result = 0
Encode done!
HandBrake has exited.
Here is the CSV chapter list:

Code: Select all

1,Chapter 1
2,Chapter 2
3,Chapter 3
4,Chapter 4
5,Chapter 5
6,Chapter 6
7,Chapter 7
Last edited by Ayoross on Tue May 13, 2014 9:34 pm, edited 2 times in total.
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: [svn6169] HEVC : No chapter markers

Post by s55 »

AVC file size is 2.66 GB, HEVC is 1.60 GB !
Your almost certainly not doing a good comparison. The HVEC encoder is pretty weak right now. Lots of missing features and optimisations, so as it stands, it's still better to use x264.

It's only enabled for testing purposes at the moment. Fun to play around with, but I'd expect if you used it as your main encoder, you'd be re-encoding everything in a years time when it starts getting really good.
Ayoross
Novice
Posts: 51
Joined: Mon Jun 11, 2012 9:07 pm

Re: [svn6169] HEVC : No chapter markers

Post by Ayoross »

s55 wrote:it's still better to use x264.
Better for what ? Certainly not file size. Quality seems rather good too. Encode is slow, ok, but I don't care.
I hope VP9 will be added soon too.
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: [svn6169] HEVC : No chapter markers

Post by s55 »

Better for what ? Certainly not file size.
Try doing a fair comparison. Most of the time, the gap is small, or in x264's favour. In terms of quality, the only place I've seen a real advantage is in the fades / regions that are typically quite blockly. The intro to big buck bunny is a good demonstration of this. Step through the first 2~3 seconds of frames.

If you don't care about speed, bare in mind you can get much better results out of x264 by using slower settings rather than faster x264 settings.

Basically, your using an experimental, incomplete h.265 encoder, so bare this in mind when using it. It's probably going to be another year before it starts maturing.
I hope VP9 will be added soon too.
Soon, no. Eventually yes. There are no usable open-source encoders right now for it. libvpx is too slow. (think several months for encodes on high end hardware) If they ever get it working at a reasonable speed or hardware catches up, it's mostly trivial for us to add. So just a case of watching, waiting and waiting some more. Given how slow improvements have come to VP8, I expect we'll be waiting a while :(



As for chapters, no idea. Will let someone else comment on that. Probably a bug or just not implemented yet.
Ayoross
Novice
Posts: 51
Joined: Mon Jun 11, 2012 9:07 pm

Re: [svn6169] HEVC : No chapter markers

Post by Ayoross »

s55 wrote:Most of the time, the gap is small, or in x264's favour. (...) If you don't care about speed, bare in mind you can get much better results out of x264 by using slower settings rather than faster x264 settings
Well, the few tests I've done are really impressive. I'm using q=21,5, AVC very slow presets (no gain in placebo) vs. HEVC slower preset. HEVC encode is always much smaller than AVC encode.
No quality issue seen so far, I'm still investigating. MPC-HC and VLC support hardware accelerated decoding (I have nvidia GPU). I'm still waiting for plex support.
HEVC is already a great and promising feature, even if it's experimental.
Deleted User 11865

Re: [svn6169] HEVC : No chapter markers

Post by Deleted User 11865 »

Thanks for reporting, should be fixed: https://trac.handbrake.fr/changeset/6176

Will land in a nightly when the build server works again.
Post Reply