Jump to content

Generated Chapter Names Automatically


STR8
Go to solution Solved by Luke,

Recommended Posts

Is there a way that the actual names (titles) of the characters can be generated automatically and placed instead of it saying Chapter 01

Example: Toy Story 4
Now: Chapter 01, Chapter 02, Chapter 03 and so on
Change: Intro, Woody in the rain, Bonnie goes to school and so on

 

I ran across this link and it shows what I was referring to which is http://chapterdb.plex.tv/browse 

Edited by STR8
  • Like 1
Link to comment
Share on other sites

  • Solution

Hi, yes, if the embedded chapters of your files contain titles, then Emby can use these.

  • Like 1
Link to comment
Share on other sites

Would the XML plugin place the chapter titles in the correct place if i add an XML Document (file) like so or would the titles have to be in the actual movie file?

 

I tried to upload the xml file but got an error... but this is what it is or what's on it

 

<chapterInfo xml:lang="eng" version="2" extractor="ChapterGrabber 4.2" client="ChapterGrabber 4.2" confirmations="132" xmlns="http://jvance.com/2008/ChapterGrabber">
  <title>Avatar</title>
  <ref>
    <chapterSetId>18</chapterSetId>
  </ref>
  <source>
    <type>Blu-Ray</type>
    <hash>9db570c63ae8a33331773a7f11ca1742</hash>
    <fps>23.976023976023978</fps>
    <duration>02:41:41.6919999</duration>
  </source>
  <chapters>
    <chapter time="00:00:00" name="A New World" />
    <chapter time="00:06:17.9608888" name="You are not in Kansas anymore" />
    <chapter time="00:07:53.5980888" name=""This is your Avatar now, Jake."" />
    <chapter time="00:12:04.8908000" name=""This is why we're here..."" />
    <chapter time="00:14:00.4645777" name="First Awakening" />
    <chapter time="00:20:00.5743111" name="Colonel Quaritch" />
    <chapter time="00:24:00.2304000" name="First Sortie" />
    <chapter time="00:26:53.2782666" name="Thanator chase" />
    <chapter time="00:31:41.8999333" name="A Sign" />
    <chapter time="00:33:33.4280000" name="Viperwolves" />
    <chapter time="00:35:43.8499555" name="Neytiri" />
    <chapter time="00:43:31.8591555" name="The Omaticaya Clan" />
    <chapter time="00:49:23.6272444" name="Covert Report" />
    <chapter time="00:54:29.9749333" name="The Hallelujah Mountains" />
    <chapter time="00:59:56.0506888" name="Learn fast or die" />
    <chapter time="01:05:10.1978444" name="Banshee Rookery" />
    <chapter time="01:11:36.4170000" name="First Flight" />
    <chapter time="01:15:11.0063777" name="Last Shadow" />
    <chapter time="01:20:29.1158222" name="A Son of The Omaticaya" />
    <chapter time="01:24:41.9100222" name="Willow Glade Destruction" />
    <chapter time="01:36:04.8005333" name=""You will never be one of the People!"" />
    <chapter time="01:37:55.7864000" name="Assault on Home Tree" />
    <chapter time="01:44:33.0999777" name="Aftermath" />
    <chapter time="01:48:15.4888000" name="Escape from Hell's Gate" />
    <chapter time="01:53:53.8684888" name=""There's something we gotta do..."" />
    <chapter time="01:55:32.8840666" name="Toruk Macto" />
    <chapter time="01:58:38.8198000" name=""She's real"" />
    <chapter time="02:02:05.5680000" name="Recuiting The Clans" />
    <chapter time="02:05:33.8594222" name="Preamble to Battle" />
    <chapter time="02:10:01.8354444" name="Battle for Pandora" />
    <chapter time="02:16:07.2838666" name="Fall of The Heroes" />
    <chapter time="02:19:50.8405333" name="Eywa" />
    <chapter time="02:25:50.3246444" name="Quaritch Fight" />
    <chapter time="02:31:14.0647333" name=""I See You"" />
    <chapter time="02:35:05.2957333" name="End Credits" />
    <chapter time="02:41:40.6907333" name="" />
  </chapters>
  <createdDate>2010-06-03T16:45:18.927-05:00</createdDate>
  <updatedDate>2018-05-09T05:39:40.6037911-06:00</updatedDate>
</chapterInfo>

Link to comment
Share on other sites

Hi, there is no support at this time for chapter names coming from an xml file. It's always possible for the future though.

Link to comment
Share on other sites

PenkethBoy

You can add the chapters (xml file) using MKVToolNix to a video file - once added and the file added to Emby they will appear in the movie detail screen as the names for the chapter images rather than Chapter 1 etc

 

Done this for a few movies myself

  • Like 1
Link to comment
Share on other sites

PenkethBoy

yes i only did a few movies

 

but at some point i was going to setup a script to do it as MKVToolNix can be controlled from the command line

 

Also the source for xml files i found was not complete having more hits for "newer" movies

Link to comment
Share on other sites

d00zah

Also the source for xml files i found was not complete having more hits for "newer" movies

 

Mind if I ask what your chapter source is? ChapterDB dot org was a great resource for chapter files... until funding dried up. It's finally been archived & made available, but sadly, very little new material is being added. TIA

 

http://chapterdb.plex.tv/browse

 

(Pay no attention to the fact that 'the competition' is hosting this archive... it' still handy)

  • Like 1
Link to comment
Share on other sites

Would the XML plugin place the chapter titles in the correct place if i add an XML Document (file) like so or would the titles have to be in the actual movie file?

 

I tried to upload the xml file but got an error... but this is what it is or what's on it

 

<chapterInfo xml:lang="eng" version="2" extractor="ChapterGrabber 4.2" client="ChapterGrabber 4.2" confirmations="132" xmlns="http://jvance.com/2008/ChapterGrabber">

<title>Avatar</title>

<ref>

<chapterSetId>18</chapterSetId>

</ref>

<source>

<type>Blu-Ray</type>

<hash>9db570c63ae8a33331773a7f11ca1742</hash>

<fps>23.976023976023978</fps>

<duration>02:41:41.6919999</duration>

</source>

<chapters>

<chapter time="00:00:00" name="A New World" />

<chapter time="00:06:17.9608888" name="You are not in Kansas anymore" />

<chapter time="00:07:53.5980888" name=""This is your Avatar now, Jake."" />

<chapter time="00:12:04.8908000" name=""This is why we're here..."" />

<chapter time="00:14:00.4645777" name="First Awakening" />

<chapter time="00:20:00.5743111" name="Colonel Quaritch" />

<chapter time="00:24:00.2304000" name="First Sortie" />

<chapter time="00:26:53.2782666" name="Thanator chase" />

<chapter time="00:31:41.8999333" name="A Sign" />

<chapter time="00:33:33.4280000" name="Viperwolves" />

<chapter time="00:35:43.8499555" name="Neytiri" />

<chapter time="00:43:31.8591555" name="The Omaticaya Clan" />

<chapter time="00:49:23.6272444" name="Covert Report" />

<chapter time="00:54:29.9749333" name="The Hallelujah Mountains" />

<chapter time="00:59:56.0506888" name="Learn fast or die" />

<chapter time="01:05:10.1978444" name="Banshee Rookery" />

<chapter time="01:11:36.4170000" name="First Flight" />

<chapter time="01:15:11.0063777" name="Last Shadow" />

<chapter time="01:20:29.1158222" name="A Son of The Omaticaya" />

<chapter time="01:24:41.9100222" name="Willow Glade Destruction" />

<chapter time="01:36:04.8005333" name=""You will never be one of the People!"" />

<chapter time="01:37:55.7864000" name="Assault on Home Tree" />

<chapter time="01:44:33.0999777" name="Aftermath" />

<chapter time="01:48:15.4888000" name="Escape from Hell's Gate" />

<chapter time="01:53:53.8684888" name=""There's something we gotta do..."" />

<chapter time="01:55:32.8840666" name="Toruk Macto" />

<chapter time="01:58:38.8198000" name=""She's real"" />

<chapter time="02:02:05.5680000" name="Recuiting The Clans" />

<chapter time="02:05:33.8594222" name="Preamble to Battle" />

<chapter time="02:10:01.8354444" name="Battle for Pandora" />

<chapter time="02:16:07.2838666" name="Fall of The Heroes" />

<chapter time="02:19:50.8405333" name="Eywa" />

<chapter time="02:25:50.3246444" name="Quaritch Fight" />

<chapter time="02:31:14.0647333" name=""I See You"" />

<chapter time="02:35:05.2957333" name="End Credits" />

<chapter time="02:41:40.6907333" name="" />

</chapters>

<createdDate>2010-06-03T16:45:18.927-05:00</createdDate>

<updatedDate>2018-05-09T05:39:40.6037911-06:00</updatedDate>

</chapterInfo>

Is this what a chapter XML file looks like inside an mkv file?

Link to comment
Share on other sites

d00zah

This is a plaintext chapter file MKVToolNix chapter editor is able to import:

 

Avatar.chapters.txt

 

This is the format MKVToolNix chapter editor produces when 'Save as XML file' is selected.

 

Avatar.chapters.xml

 

There's something about the XML format posted above which MKVToolNix chapter editor (latest) does NOT like:

 

post-10374-0-77906100-1570734228_thumb.jpg

Edited by d00zah
  • Like 1
Link to comment
Share on other sites

Cool, and do we know of any other resource online which would hold chapter title information besides the chapterDb (which is now in a read only resource on the web)?

Link to comment
Share on other sites

d00zah

@PenkethBoy mentions "a source" but has yet to respond to my query... across the pond.

 

The CDB archive is reporting a few recent  additions, but they seem 'broken'. I suspect the ChapterGrabber app may be confused?

 

This sort of resource is, unfortunately, scarce.

Link to comment
Share on other sites

PenkethBoy

Yes the ChapterDb was the source i used

 

Did not find one for TV - did not look very hard

 

Dont think skipping intros on TV shows is going to be a thing as they vary by episode and there would have to be a db somewhere for each episode and i'm sure Netflix preprocess the episodes before release

  • Like 2
Link to comment
Share on other sites

We looked at it several years ago and it was not good. There was no control over the language of the data so you'd end up with whatever the person who had contributed the chapters submitted. For instance, sometimes you'd get Spanish chapter names back because that's all they had.

Link to comment
Share on other sites

No worries and no apologies needed I'm grateful for all the hard work the entire team does to allow myself and family to enjoy Emby you all rock!

Link to comment
Share on other sites

laie_techie

I know it's a limitation of mp4 and mkv files, but I wish I could provide a different chapter title based on language.

Link to comment
Share on other sites

d00zah

I know it's a limitation of mp4 and mkv files, but I wish I could provide a different chapter title based on language.

 

You can use the MKVToolNix chapter editor to edit chapter names to be whatever you want. The aforementioned database seemed geared towards English,  and many available titles just used the generic 'Chapter 1', 'Chapter 2', etc., but with the editor, you can make them anything you want. Just don't expect it to become 'automatic'. That seems unlikely, just based on the lack of available sources.

 

Edit: It occurs to me that a plug-in that programmatically extracts chapter detail from users' ofttimes sizable movie libraries to populate a common database 'in the cloud' could be an interesting 'feature'. Beyond my capabilities but there is, at least, some demand. Create a community-sourced database.

Edited by d00zah
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...