Auto Separating Chapters to Files from DVD

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
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.
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Auto Separating Chapters to Files from DVD

Post by Budgie »

Please detail your question or problem in as much detail as possible:
My objective is to create flac audio files for each chapter in a Video DVD of an opera performance so that I end up with a similar set of files to those I would have obtained if I had ripped an audio CD. I am using Handbrake first and then extracting and creating flac files with VLC

My problem is that I cannot get an automatic creation of a new file for each chapter. I have set the Auto Name Template to {source}-{Title}-{Chapters} thinking this would do what I want but I still only get one large file. This works perfectly and gives me a perfect flac file with VLC but there should be 39 files, one for each chapter with consecutive numbering.

I am running Handbrake version 1.0.1 (x86_64) on OpenSUSE Leap 42.2. This version is now available from the repo site.

There are no errors, only problem is me not knowing enough and not finding more than above setting in the manuals.

Grateful for some direction please.
Woodstock
Veteran User
Posts: 4613
Joined: Tue Aug 27, 2013 6:39 am

Re: Auto Separating Chapters to Files from DVD

Post by Woodstock »

You have to select each chapter as a range. There is no automatic way to tell handbrake to break up the file at chapter boundaries.
mduell
Veteran User
Posts: 8182
Joined: Sat Apr 21, 2007 8:54 pm

Re: Auto Separating Chapters to Files from DVD

Post by mduell »

Relatively easy to script with the CLI.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Auto Separating Chapters to Files from DVD

Post by BradleyS »

Currently, in the graphical interface you will need to add multiple jobs to the queue, adjusting the chapter range each time. So, chapter 1 through 1, 2 through 2, etc.

As for doing this automatically, the feature request is welcome but somewhat low priority at the moment. We've probably had 2-3 requests like this in 10 years (just saying).
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

Hi and thanks for the replies. I was hoping to avoid the need to enter range for each chapter but understand situation and just get on with it. Exactly what does the Auto Name Plate do in these circumstances. Does it just count and name Chapter 1, Chapter 2, etc?
Thanks again,
Budgie
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Auto Separating Chapters to Files from DVD

Post by BradleyS »

It should provide a number or number range, e.g. 2 or 2-5, depending on what you selected. You can add additional text to the auto naming field in the preferences, like Chapter or C, if you want.
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

Hi and thanks. My only problem is that if I try and queue chapters 1 to 1, 2 to 2, 3 to 3,...etc I get the "another queued job has specified the same destination so it looks like I have to name each file separately before I rip.
Surely I am doing something wrong.
Woodstock
Veteran User
Posts: 4613
Joined: Tue Aug 27, 2013 6:39 am

Re: Auto Separating Chapters to Files from DVD

Post by Woodstock »

You could try adding "{chapters}" to your FileFormat specification in Automatic File Naming. That would differentiate the resulting chapter files without you having to manually edit the output file name.

However, given the nature of the file source, I would think editing the output file name to include the name of the music would be appropriate. Or, are you delaying that until after encoding the chapter?
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

Thanks Woodstock. My Fileformat spec is in my original post and includes {Chapters}. It does not work. Will play around a bit. I am presently ripping video DVDs and have a similar problem. I can see the chapter markers on the player (VLC) progress bar but cannot move to them or get any chapter naming.
Thanks again,
Budgie
mduell
Veteran User
Posts: 8182
Joined: Sat Apr 21, 2007 8:54 pm

Re: Auto Separating Chapters to Files from DVD

Post by mduell »

1) Use official HB if you want support here, not the distro-provided build.

2) Upgrade to 1.0.7.

3) Post your encoding logs.
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

Hi and thanks for the reply. I understand but note that 1.0.7-1.36 is now available from repo site.
I have un-installed all the repo versions and installed the official version of HB from tarball.
A bit out of my depth here but there are logs in the ~/HandBrake-1.0.7/build directory as follows:-

Code: Select all

probe: host tuple...(pass) x86_64-unknown-linux-gnu
compute: available architectures...(pass) x86_64
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /usr/bin/cp
find: gcc...(pass) /usr/bin/gcc
find: gmake...(pass) /usr/bin/gmake
find: gm4...(pass) /usr/bin/m4
find: mkdir...(pass) /usr/bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /usr/bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /bin/tar
find: yasm...(pass) /usr/bin/yasm
find: autoconf...(pass) /usr/bin/autoconf
find: automake...(pass) /usr/bin/automake
find: cmake...(pass) /usr/bin/cmake
find: libtool...(pass) /usr/bin/libtool
find: pkg-config...(pass) /usr/bin/pkg-config
find: xcodebuild...(fail) not found
find: lipo...(fail) not found
compute: build tuple...(pass) x86_64-unknown-linux-gnu
probe: number of CPU cores...(pass) 8
probe: repo info...(fail) code 128
probe: version.txt...(fail)
compute: project data...(pass) HandBrake (release)
version probe: yasm...(pass) 1.2.0
probe: strerror_r...(pass) end
compute: makevar SRC/    = ..
compute: makevar BUILD/  = .
compute: makevar PREFIX/ = /usr/local
mkdir: ./build
chdir: ./build
write: GNUmakefile
mkdir: project
write: project/handbrake.m4
write: distfile.cfg
and the verbose version:-

Code: Select all

probe: host tuple...(pass) x86_64-unknown-linux-gnu
  + ./make/config.guess
  : x86_64-unknown-linux-gnu
compute: available architectures...(pass) x86_64
  : <NO-OUTPUT>
find: ar...(pass) /usr/bin/ar
  : name[0] = ar
find: cp...(pass) /usr/bin/cp
  : name[0] = cp
find: gcc...(pass) /usr/bin/gcc
  : name[0] = gcc
find: gmake...(pass) /usr/bin/gmake
  : name[0] = gmake
  : name[1] = make
find: gm4...(pass) /usr/bin/m4
  : name[0] = gm4
  : name[1] = m4
find: mkdir...(pass) /usr/bin/mkdir
  : name[0] = mkdir
find: gpatch...(pass) /usr/bin/patch
  : name[0] = gpatch
  : name[1] = patch
find: rm...(pass) /usr/bin/rm
  : name[0] = rm
find: ranlib...(pass) /usr/bin/ranlib
  : name[0] = ranlib
find: strip...(pass) /usr/bin/strip
  : name[0] = strip
find: gtar...(pass) /bin/tar
  : name[0] = gtar
  : name[1] = tar
find: yasm...(pass) /usr/bin/yasm
  : name[0] = yasm
find: autoconf...(pass) /usr/bin/autoconf
  : name[0] = autoconf
find: automake...(pass) /usr/bin/automake
  : name[0] = automake
find: cmake...(pass) /usr/bin/cmake
  : name[0] = cmake
find: libtool...(pass) /usr/bin/libtool
  : name[0] = libtool
find: pkg-config...(pass) /usr/bin/pkg-config
  : name[0] = pkg-config
find: xcodebuild...(fail) not found
  : name[0] = xcodebuild
find: lipo...(fail) not found
  : name[0] = lipo
compute: build tuple...(pass) x86_64-unknown-linux-gnu
  : <NO-OUTPUT>
probe: number of CPU cores...(pass) 8
  : <NO-OUTPUT>
probe: repo info...(fail) code 128
  + ./scripts/repo-info.sh .
  : fatal: Not a git repository (or any parent up to mount point /home)
  : Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  : fatal: Not a git repository (or any parent up to mount point /home)
  : Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  : Not a valid repository.
probe: version.txt...(fail)
compute: project data...(pass) HandBrake (release)
  : <NO-OUTPUT>
version probe: yasm...(pass) 1.2.0
  + /usr/bin/yasm --version
  : yasm 1.2.0
  : Copyright (c) 2001-2011 Peter Johnson and other Yasm developers.
  : Run yasm --license for licensing overview and summary.
probe: strerror_r...(pass) end
  + /usr/bin/gcc
  : <NO-OUTPUT>
compute: makevar SRC/    = ..
compute: makevar BUILD/  = .
compute: makevar PREFIX/ = /usr/local
mkdir: ./build
chdir: ./build
write: GNUmakefile
mkdir: project
write: project/handbrake.m4
write: distfile.cfg
mkdir: log
write: log/config.info.txt
write: log/config.verbose.txt
I am sure there will be other logs but not sure where to look.
Grateful for your help, many thanks.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Auto Separating Chapters to Files from DVD

Post by rollin_eng »

Could you please post your encode logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

No problem and thanks for the link. I usually use dropbox which is one of those included in the instructions. I need an email address with which to share the files. Please advise what address I should use.
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Auto Separating Chapters to Files from DVD

Post by rollin_eng »

Just post your log here.
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

rollin_eng wrote: Wed Aug 09, 2017 4:27 pm Just post your log here.
Activity log is 31.9 KiB and encode log is 16.9 KiB. Not keen to try and post.
The instructions to which you referred me state "share its link with your intended recipient(s)"
If you don't use Dropbox do you have a preferred alternative which is more open?
How do others do this?
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Auto Separating Chapters to Files from DVD

Post by rollin_eng »

Pastebin seems popular but you should be ok to post them here in code blocks.
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

OK I have posted the Activity Log to Pastebin. It should be available now
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Auto Separating Chapters to Files from DVD

Post by rollin_eng »

You need to post the link to it.
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

rollin_eng wrote: Wed Aug 09, 2017 4:54 pm You need to post the link to it.
Sorry to be so dumb. Not familiar with Pastebin but I think I have it now. The above links should work. If you need more info please let me know.
Thank you once more for helping.
Budgie
rollin_eng
Veteran User
Posts: 4836
Joined: Wed May 04, 2011 11:06 pm

Re: Auto Separating Chapters to Files from DVD

Post by rollin_eng »

Budgie wrote: Wed Aug 09, 2017 5:09 pm [17:18:14] * destination
[17:18:14] + /home/alastair/Handbrake_Rips/6104 01 Hinduism Disk 1-{Title}-{Chapters}.m4v
Seems it's not parsing your title and chapter naming, I don't know why as I don't have a unix version available but hopefully someone can tell you why.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Auto Separating Chapters to Files from DVD

Post by BradleyS »

You'll need to use the tarball on handbrake.fr to build the release.
Budgie
Posts: 31
Joined: Fri Jan 13, 2017 2:48 pm

Re: Auto Separating Chapters to Files from DVD

Post by Budgie »

BradleyS wrote: Wed Aug 09, 2017 5:52 pm You'll need to use the tarball on handbrake.fr to build the release.
Thank you. That is what I have done. Why do you think otherwise?
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Auto Separating Chapters to Files from DVD

Post by BradleyS »

probe: version.txt...(fail)

The source code tarball here https://handbrake.fr/downloads.php will have the appropriate version.txt inside (as opposed to a git archive like GitHub creates), which is necessary to build properly.
User avatar
s55
HandBrake Team
Posts: 10347
Joined: Sun Dec 24, 2006 1:05 pm

Re: Auto Separating Chapters to Files from DVD

Post by s55 »

I assume {chapters} was set in preferences, not the destination box. Also, i assume it's all lower case?
Post Reply