[Pending] chapters disabled after setting same first/last

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
Hawke
Posts: 5
Joined: Thu Aug 27, 2009 3:57 pm

[Pending] chapters disabled after setting same first/last

Post by Hawke »

On Linux (at least) when you set the selected chapters so that the first and last are the same, Handbrake will uncheck and disable the chapter markers checkbox. This is perfectly fine. However, when you go back to multiple chapters, Handbrake will not re-set this checkbox.

I often run into this when I’m encoding a disc which has several episodes of a show on one title. For example, I’ll start chapters 1-5, and then do 6-10. As I move the starting chapter field up to 6, chapters are disabled when it hits 5…and then not re-enabled when I move the ending chapter field up to 10. It’s especially bad since the Chapters tab is not necessarily the one currently being viewd.

Obviously a workaround is to change the ending chapter field first.

Presumably the correct thing to do would be to distinguish between “chapter markers available” and “user wants chapter markers”, and only include chapter markers when both are true, (with the checkbox controlling the latter)

Code: Select all

[15:01:38] gtkgui: HandBrake svn3428 (2010070501) - Linux i686 - http://handbrake.fr
[15:01:38] hb_init: checking cpu count
[15:01:38] hb_init: starting libhb thread
[15:01:38] thread b5db0b70 started ("libhb")
[15:01:38] hb_init: checking cpu count
[15:01:38] hb_init: starting libhb thread
[15:01:38] thread b539fb70 started ("libhb")
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[15:01:45] hb_scan: path=/dev/sr0, title_index=0
[15:01:45] thread b3b9cb70 started ("scan")
[15:01:45] scan: trying to open with libdvdread
[15:01:45] dvd: Region mask 0xfe
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Using libdvdcss version 1.2.10 for DVD access
libdvdnav: DVD Title: Bleach Volume 4
libdvdnav: DVD Serial Number: 36666940
libdvdnav: DVD Title (Alternative): 
libdvdnav: Unable to find map file '/home/likewise-open/BGTDOM/amauer/.dvdnav/Bleach Volume 4.map'
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000127
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000169
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00002f8f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x001d49b2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x001d49b6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x001d9833
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x001d9837
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
libdvdread: Using libdvdcss version 1.2.10 for DVD access
[15:01:46] scan: DVD has 4 title(s)
[15:01:46] scan: scanning title 1
[15:01:46] scan: opening IFO for VTS 1
[15:01:46] pgc_id: 1, pgn: 1: pgc: 0xa96d190
[15:01:46] scan: vts=1, ttn=1, cells=0->21, blocks=6322->1907170, 1897279 blocks
[15:01:46] scan: duration is 01:31:33 (5493043 ms)
[15:01:46] scan: checking audio 1
[15:01:46] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[15:01:46] scan: checking audio 2
[15:01:46] scan: id=81bd, lang=Japanese (AC3), 3cc=jpn ext=0
[15:01:46] scan: checking subtitle 1
[15:01:46] scan: id=20bd, lang=English, 3cc=eng
[15:01:46] scan: title 1 has 22 chapters
[15:01:46] scan: chap 1 c=0->0, b=6322->43180 (36859), 90419 ms
[15:01:46] scan: chap 2 c=1->1, b=43181->243635 (200455), 598892 ms
[15:01:46] scan: chap 3 c=2->2, b=243636->442883 (199248), 611032 ms
[15:01:46] scan: chap 4 c=3->3, b=442884->470749 (27866), 59173 ms
[15:01:46] scan: chap 5 c=4->4, b=470750->477846 (7097), 15108 ms
[15:01:46] scan: chap 6 c=5->5, b=477847->515977 (38131), 90353 ms
[15:01:46] scan: chap 7 c=6->6, b=515978->696643 (180666), 568971 ms
[15:01:46] scan: chap 8 c=7->7, b=696644->913101 (216458), 635155 ms
[15:01:46] scan: chap 9 c=8->8, b=913102->942133 (29032), 59307 ms
[15:01:46] scan: chap 10 c=9->9, b=942134->948026 (5893), 15022 ms
[15:01:46] scan: chap 11 c=10->10, b=948027->984234 (36208), 90419 ms
[15:01:46] scan: chap 12 c=11->11, b=984235->1192784 (208550), 595076 ms
[15:01:46] scan: chap 13 c=12->12, b=1192785->1388748 (195964), 609974 ms
[15:01:46] scan: chap 14 c=13->13, b=1388749->1416658 (27910), 59307 ms
[15:01:46] scan: chap 15 c=14->14, b=1416659->1422056 (5398), 15288 ms
[15:01:46] scan: chap 16 c=15->15, b=1422057->1460886 (38830), 90353 ms
[15:01:46] scan: chap 17 c=16->16, b=1460887->1649265 (188379), 569915 ms
[15:01:46] scan: chap 18 c=17->17, b=1649266->1860469 (211204), 635201 ms
[15:01:46] scan: chap 19 c=18->18, b=1860470->1890193 (29724), 59340 ms
[15:01:46] scan: chap 20 c=19->19, b=1890194->1898652 (8459), 15255 ms
[15:01:46] scan: chap 21 c=20->20, b=1898653->1903596 (4944), 9299 ms
[15:01:46] scan: chap 22 c=21->21, b=1907167->1907170 (4), 176 ms
[15:01:46] scan: aspect = 0
[15:01:46] scan: scanning title 2
[15:01:46] scan: opening IFO for VTS 1
[15:01:46] pgc_id: 2, pgn: 1: pgc: 0xa970d08
[15:01:46] scan: vts=1, ttn=2, cells=0->3, blocks=0->1907166, 14836 blocks
[15:01:46] scan: duration is 00:00:32 (32243 ms)
[15:01:46] scan: checking audio 1
[15:01:46] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[15:01:46] scan: checking audio 2
[15:01:46] scan: id=81bd, lang=Japanese (AC3), 3cc=jpn ext=0
[15:01:46] scan: checking subtitle 1
[15:01:46] scan: id=20bd, lang=English, 3cc=eng
[15:01:46] scan: title 2 has 4 chapters
[15:01:46] scan: chap 1 c=0->0, b=0->6321 (6322), 12689 ms
[15:01:46] scan: chap 2 c=1->1, b=1898653->1903596 (4944), 9776 ms
[15:01:46] scan: chap 3 c=2->2, b=1903597->1904866 (1270), 5264 ms
[15:01:46] scan: chap 4 c=3->3, b=1904867->1907166 (2300), 4512 ms
[15:01:46] scan: aspect = 0
[15:01:46] scan: scanning title 3
[15:01:46] scan: opening IFO for VTS 2
[15:01:46] pgc_id: 1, pgn: 1: pgc: 0xa970a98
[15:01:46] scan: vts=2, ttn=1, cells=0->1, blocks=0->20057, 20058 blocks
[15:01:46] scan: duration is 00:01:03 (63233 ms)
[15:01:46] scan: checking audio 1
[15:01:46] scan: id=80bd, lang=Japanese (AC3), 3cc=jpn ext=0
[15:01:46] scan: title 3 has 2 chapters
[15:01:46] scan: chap 1 c=0->0, b=0->20053 (20054), 63054 ms
[15:01:46] scan: chap 2 c=1->1, b=20054->20057 (4), 178 ms
[15:01:46] scan: aspect = 0
[15:01:46] scan: scanning title 4
[15:01:46] scan: opening IFO for VTS 3
[15:01:46] pgc_id: 1, pgn: 1: pgc: 0xa8ffdb8
[15:01:46] scan: vts=3, ttn=1, cells=0->3, blocks=0->100128, 100129 blocks
[15:01:46] scan: duration is 00:04:39 (279310 ms)
[15:01:46] scan: checking audio 1
[15:01:46] scan: id=80bd, lang=English (AC3), 3cc=eng ext=0
[15:01:46] scan: title 4 has 4 chapters
[15:01:46] scan: chap 1 c=0->0, b=0->40660 (40661), 122427 ms
[15:01:46] scan: chap 2 c=1->1, b=40661->74556 (33896), 91278 ms
[15:01:46] scan: chap 3 c=2->2, b=74557->100124 (25568), 65428 ms
[15:01:46] scan: chap 4 c=3->3, b=100125->100128 (4), 176 ms
[15:01:46] scan: aspect = 0
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[15:01:47] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[15:01:47] scan: title angle(s) 1
[15:01:47] scan: preview 1
[15:01:47] fifo_close: trashing 0 buffer(s)
[15:01:47] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch)
[15:01:47] fifo_close: trashing 0 buffer(s)
[15:01:47] scan: audio 0x81bd: AC-3, rate=48000Hz, bitrate=224000 Japanese (AC3) (2.0 ch)
[15:01:47] scan: preview 2
[15:01:48] scan: preview 3
[15:01:48] Interlacing detected in preview frame 3
[15:01:48] scan: preview 4
[15:01:48] scan: preview 5
[15:01:49] scan: preview 6
[15:01:49] scan: preview 7
[15:01:49] scan: preview 8
[15:01:49] scan: preview 9
[15:01:49] scan: preview 10
[15:01:50] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/2/0, aspect 1.33:1, PAR 8:9
[15:01:50] scan: decoding previews for title 2
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[15:01:50] scan: title angle(s) 1
[15:01:50] scan: preview 1
[15:01:57] scan: preview 2
[15:01:57] Warning: Could not read data for preview 2, skipped
[15:01:57] scan: preview 3
[15:01:57] Warning: Could not read data for preview 3, skipped
[15:01:57] scan: preview 4
[15:01:57] Warning: Could not read data for preview 4, skipped
[15:01:57] scan: preview 5
[15:01:57] Warning: Could not read data for preview 5, skipped
[15:01:57] scan: preview 6
[15:01:57] Warning: Could not read data for preview 6, skipped
[15:01:57] scan: preview 7
[15:01:57] Warning: Could not read data for preview 7, skipped
[15:01:57] scan: preview 8
[15:01:57] Warning: Could not read data for preview 8, skipped
[15:01:57] scan: preview 9
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[15:01:58] scan: preview 10
[15:01:58] scan: 3 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 1.33:1, PAR 8:9
[15:01:58] scan: removing audio 0x80bd because no bitrate found
[15:01:58] scan: removing audio 0x81bd because no bitrate found
[15:01:58] scan: decoding previews for title 3
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[15:01:58] scan: title angle(s) 1
[15:01:58] scan: preview 1
[15:01:58] fifo_close: trashing 0 buffer(s)
[15:01:58] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=224000 Japanese (AC3) (2.0 ch)
[15:01:58] scan: preview 2
[15:01:58] scan: preview 3
[15:01:58] scan: preview 4
[15:01:58] scan: preview 5
[15:01:59] Interlacing detected in preview frame 5
[15:01:59] scan: preview 6
[15:01:59] scan: preview 7
[15:01:59] scan: preview 8
[15:01:59] scan: preview 9
[15:01:59] scan: preview 10
[15:01:59] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 1.33:1, PAR 8:9
[15:01:59] scan: decoding previews for title 4
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[15:01:59] scan: title angle(s) 1
[15:01:59] scan: preview 1
[15:01:59] fifo_close: trashing 0 buffer(s)
[15:01:59] scan: audio 0x80bd: AC-3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch)
[15:01:59] scan: preview 2
[15:02:00] scan: preview 3
[15:02:00] scan: preview 4
[15:02:00] scan: preview 5
[15:02:00] scan: preview 6
[15:02:00] Interlacing detected in preview frame 6
[15:02:00] scan: preview 7
[15:02:00] scan: preview 8
[15:02:00] scan: preview 9
[15:02:01] scan: preview 10
[15:02:01] scan: 10 previews, 720x480, 29.970 fps, autocrop = 2/0/6/6, aspect 1.33:1, PAR 8:9
[15:02:01] scan: title (0) job->width:640, job->height:480
[15:02:01] scan: title (1) job->width:640, job->height:480
[15:02:01] scan: title (2) job->width:640, job->height:480
[15:02:01] scan: title (3) job->width:624, job->height:480
[15:02:01] thread b3b9cb70 exited ("scan")
[15:02:01] thread b3b9cb70 joined ("scan")
[15:02:01] libhb: scan thread found 4 valid title(s)
libdvdread: Using libdvdcss version 1.2.10 for DVD access
User avatar
JohnAStebbins
HandBrake Team
Posts: 5583
Joined: Sat Feb 09, 2008 7:21 pm

Re: chapters disabled after setting same first/last chapter

Post by JohnAStebbins »

Hawke wrote:Presumably the correct thing to do would be to distinguish between “chapter markers available” and “user wants chapter markers”, and only include chapter markers when both are true, (with the checkbox controlling the latter)
Yup, knew about this. It's just been a low priority thing.
siromega
Posts: 36
Joined: Mon Jul 02, 2007 5:06 am

Re: chapters disabled after setting same first/last chapter

Post by siromega »

FYI this occurs on the Mac as well.

I hit this error when ripping a TV show as well (Samuari Champloo). Ch 1-4 was ep 1, 5-9 episode 2, etc. I didn't catch it until after all 7 discs were ripped that only the first episode on each disc had chapter markers. Oops.
TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: chapters disabled after setting same first/last chapter

Post by TedJ »

Tripped over this one while encoding series 1 of Spaced the other day, used the workaround mentioned by the OP (shift end chapter first).
Hawke
Posts: 5
Joined: Thu Aug 27, 2009 3:57 pm

Re: [Pending] chapters disabled after setting same first/las

Post by Hawke »

Just wanted to mention, this is still a problem in release 0.9.5
User avatar
JohnAStebbins
HandBrake Team
Posts: 5583
Joined: Sat Feb 09, 2008 7:21 pm

Re: [Pending] chapters disabled after setting same first/las

Post by JohnAStebbins »

Post Reply