Jump to content


Photo

Generated Chapter Names Automatically


Best Answer Luke , 09 October 2019 - 12:25 AM

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

Go to the full post


  • Please log in to reply
24 replies to this topic

#1 STR8 OFFLINE  

STR8

    Advanced Member

  • Members
  • 45 posts
  • Local time: 10:08 AM

Posted 09 October 2019 - 12:05 AM

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, 09 October 2019 - 12:25 AM.

  • miniliQuid likes this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138218 posts
  • Local time: 01:08 PM

Posted 09 October 2019 - 12:25 AM   Best Answer

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


  • ebr likes this

#3 STR8 OFFLINE  

STR8

    Advanced Member

  • Members
  • 45 posts
  • Local time: 10:08 AM

Posted 09 October 2019 - 01:01 AM

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/20...hapterGrabber">
  <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="&quot;This is your Avatar now, Jake.&quot;" />
    <chapter time="00:12:04.8908000" name="&quot;This is why we're here...&quot;" />
    <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="&quot;You will never be one of the People!&quot;" />
    <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="&quot;There's something we gotta do...&quot;" />
    <chapter time="01:55:32.8840666" name="Toruk Macto" />
    <chapter time="01:58:38.8198000" name="&quot;She's real&quot;" />
    <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="&quot;I See You&quot;" />
    <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>



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138218 posts
  • Local time: 01:08 PM

Posted 09 October 2019 - 01:52 AM

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



#5 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3392 posts
  • Local time: 06:08 PM
  • LocationWarrington,UK

Posted 09 October 2019 - 06:02 AM

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


  • chef likes this

#6 STR8 OFFLINE  

STR8

    Advanced Member

  • Members
  • 45 posts
  • Local time: 10:08 AM

Posted 09 October 2019 - 11:08 AM

@PenkethBoy Thanks for that information it's appreciated

#7 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3392 posts
  • Local time: 06:08 PM
  • LocationWarrington,UK

Posted 09 October 2019 - 02:34 PM

NP

 

Have fun



#8 STR8 OFFLINE  

STR8

    Advanced Member

  • Members
  • 45 posts
  • Local time: 10:08 AM

Posted 09 October 2019 - 06:27 PM

@PenkethBoy So after a few trial and errors that program worked like a charm but it's truly to many movies to be doing this 1 at a time. About 2k work of movies hopefully someday soon a plugin can be made to do this automatically... but again thanks for sharing it was appreciated 👍

#9 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3392 posts
  • Local time: 06:08 PM
  • LocationWarrington,UK

Posted 09 October 2019 - 11:13 PM

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



#10 d00zah OFFLINE  

d00zah

    Advanced Member

  • Members
  • 627 posts
  • Local time: 01:08 PM

Posted 10 October 2019 - 09:31 AM

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)


  • miniliQuid likes this

#11 STR8 OFFLINE  

STR8

    Advanced Member

  • Members
  • 45 posts
  • Local time: 10:08 AM

Posted 10 October 2019 - 12:51 PM

@d00zah that's the source I found and started to use. @PenkethBoy if you don't mind let me know how that works out with the script

#12 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 3958 posts
  • Local time: 01:08 PM
  • LocationPeterborough, Canada

Posted 10 October 2019 - 02:27 PM

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/20...hapterGrabber">
<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="&quot;This is your Avatar now, Jake.&quot;" />
<chapter time="00:12:04.8908000" name="&quot;This is why we're here...&quot;" />
<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="&quot;You will never be one of the People!&quot;" />
<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="&quot;There's something we gotta do...&quot;" />
<chapter time="01:55:32.8840666" name="Toruk Macto" />
<chapter time="01:58:38.8198000" name="&quot;She's real&quot;" />
<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="&quot;I See You&quot;" />
<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?

#13 d00zah OFFLINE  

d00zah

    Advanced Member

  • Members
  • 627 posts
  • Local time: 01:08 PM

Posted 10 October 2019 - 03:06 PM

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

 

Attached File  Avatar.chapters.txt   2.28KB   1 downloads

 

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

 

Attached File  Avatar.chapters.xml   17.36KB   4 downloads

 

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

 

Attached File  MKVToolNix XML import.jpg   51.02KB   1 downloads


Edited by d00zah, 10 October 2019 - 03:15 PM.

  • chef likes this

#14 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 3958 posts
  • Local time: 01:08 PM
  • LocationPeterborough, Canada

Posted 10 October 2019 - 03:32 PM

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)?

#15 d00zah OFFLINE  

d00zah

    Advanced Member

  • Members
  • 627 posts
  • Local time: 01:08 PM

Posted 10 October 2019 - 03:50 PM

@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.



#16 chef OFFLINE  

chef

    Advanced Member

  • Developers
  • 3958 posts
  • Local time: 01:08 PM
  • LocationPeterborough, Canada

Posted 10 October 2019 - 03:56 PM

I found the resource. Now just have to test it and see if it is usable.
See if I can get an API key.
https://jarrettvance...h/get?console=1

Edited by chef, 10 October 2019 - 03:57 PM.


#17 neik ONLINE  

neik

    Advanced Member

  • Members
  • 787 posts
  • Local time: 07:08 PM

Posted 10 October 2019 - 04:09 PM

Are chapters also available for TV shows?
If so, it could be possible to skip the intro like Netflix does, I guess.

#18 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3392 posts
  • Local time: 06:08 PM
  • LocationWarrington,UK

Posted 10 October 2019 - 04:48 PM

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


  • chef and d00zah like this

#19 STR8 OFFLINE  

STR8

    Advanced Member

  • Members
  • 45 posts
  • Local time: 10:08 AM

Posted 12 October 2019 - 02:25 PM

@chef I was wondering if you were able to find the API and if the testing worked out.... would be awesome if you could get this automated.

#20 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138218 posts
  • Local time: 01:08 PM

Posted 12 October 2019 - 02:30 PM

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users