Jump to content

Chapter Images


Recommended Posts

quickmic
Posted (edited)

Hi

Emby server, latest beta version:

Seems there is a bug in chapter "ImageTag"

Auto generated chapters (episodes):

'Chapters': [{'StartPositionTicks': 0, 'Name': 'Chapter 1', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 3000000000, 'Name': 'Chapter 2', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 6000000000, 'Name': 'Chapter 3', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 9000000000, 'Name': 'Chapter 4', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 12000000000, 'Name': 'Chapter 5', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 15000000000, 'Name': 'Chapter 6', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 18000000000, 'Name': 'Chapter 7', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 21000000000, 'Name': 'Chapter 8', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}, {'StartPositionTicks': 24000000000, 'Name': 'Chapter 9', 'ImageTag': '3b2e252361fdd24e3157ffdea3840292'}], 'MediaType': 'Video'}

As you can see, imagetag reported is always: "3b2e252361fdd24e3157ffdea3840292"

I assume this should not be the case. Guessing this should be individual screenshots according to timestamp.

 

btw, feature request: As Kodi has no functionality to disable embedded (videostream) chapter extraction, I need to know what is native coming from video and what's generated.

Currently I use modulo StartPositionTicks from Chapter >1 as a reasonable guess and some other magic, but actually would be great if this can be reported in some way.

 

Edited by quickmic
Posted

Is there an actual problem?

quickmic
Posted

Well yes, I got the same image everywhere. -> for all chapters

 

 

chapter.png

quickmic
Posted (edited)

Maybe I'm not clear enough.

The data (first post) is a selection of the return value from  Emby server after item query with extra fields -> "chapters".

Edited by quickmic
quickmic
Posted

Full data:

 

{
   "Name":"Französischer Klassiker",
   "ServerId":"2a38697ffc1b428b943aa1b6014e2263",
   "Id":"944344",
   "Etag":"89d6c7e032f9d1b0a4e23170d2bc1316",
   "DateCreated":"2018-10-26T08:44:27.0000000+00:00",
   "PresentationUniqueKey":"086857f3fc21ec1bf03c86f1415aa7fd-001 - 0004",
   "Container":"mkv",
   "SortName":"Franzosischer Klassiker",
   "MediaSources":[
      {
         "Protocol":"File",
         "Id":"3e0e7d4a597b1ff0bb7631090eb26fee",
         "Path":"/mnt/storage1/series/2/2 Profis für 4 Räder/S01/S01E04 - Französischer Klassiker.mkv",
         "Type":"Default",
         "Container":"mkv",
         "Size":1199549613,
         "Name":"E04 - Französischer Klassiker",
         "IsRemote":false,
         "RunTimeTicks":26639550000,
         "SupportsTranscoding":true,
         "SupportsDirectStream":true,
         "SupportsDirectPlay":true,
         "IsInfiniteStream":false,
         "RequiresOpening":false,
         "RequiresClosing":false,
         "RequiresLooping":false,
         "SupportsProbing":false,
         "MediaStreams":[
            {
               "Codec":"hevc",
               "TimeBase":"1/1000",
               "VideoRange":"SDR",
               "DisplayTitle":"1080p HEVC",
               "IsInterlaced":false,
               "BitRate":3602311,
               "BitDepth":8,
               "RefFrames":1,
               "IsDefault":true,
               "IsForced":false,
               "Height":1080,
               "Width":1920,
               "AverageFrameRate":25,
               "RealFrameRate":25,
               "Profile":"Main",
               "Type":"Video",
               "AspectRatio":"16:9",
               "Index":0,
               "IsExternal":false,
               "IsTextSubtitleStream":false,
               "SupportsExternalStream":false,
               "Protocol":"File",
               "PixelFormat":"yuv420p",
               "Level":120,
               "IsAnamorphic":false,
               "AttachmentSize":0
            },
            {
               "Codec":"aac",
               "Language":"eng",
               "TimeBase":"1/1000",
               "DisplayTitle":"English AAC stereo (Default)",
               "DisplayLanguage":"English",
               "IsInterlaced":false,
               "ChannelLayout":"stereo",
               "BitRate":192000,
               "Channels":2,
               "SampleRate":44100,
               "IsDefault":true,
               "IsForced":false,
               "Profile":"LC",
               "Type":"Audio",
               "Index":1,
               "IsExternal":false,
               "IsTextSubtitleStream":false,
               "SupportsExternalStream":false,
               "Protocol":"File",
               "AttachmentSize":0
            }
         ],
         "Formats":[
            
         ],
         "Bitrate":3602311,
         "RequiredHttpHeaders":{
            
         },
         "ReadAtNativeFramerate":false,
         "DefaultAudioStreamIndex":1
      }
   ],
   "Path":"/mnt/storage1/series/2/2 Profis für 4 Räder/S01/S01E04 - Französischer Klassiker.mkv",
   "Taglines":[
      
   ],
   "Genres":[
      
   ],
   "RunTimeTicks":26639550000,
   "ProductionYear":2016,
   "IndexNumber":4,
   "ParentIndexNumber":1,
   "RemoteTrailers":[
      
   ],
   "ProviderIds":{
      
   },
   "IsFolder":false,
   "ParentId":"944333",
   "Type":"Episode",
   "People":[
      
   ],
   "Studios":[
      
   ],
   "GenreItems":[
      
   ],
   "TagItems":[
      
   ],
   "ParentLogoItemId":"944332",
   "UserData":{
      "PlaybackPositionTicks":0,
      "PlayCount":1,
      "IsFavorite":false,
      "LastPlayedDate":"2021-06-05T11:49:51.0000000+00:00",
      "Played":true
   },
   "SeriesName":"2 Profis für 4 Räder",
   "SeriesId":"944332",
   "SeasonId":"944333",
   "SeriesPrimaryImageTag":"c545c07dd41e178b897a41d96446e842",
   "SeasonName":"Season 1",
   "ImageTags":{
      "Primary":"a975e42e2d9488d811df81bd13852a1f"
   },
   "BackdropImageTags":[
      
   ],
   "ParentLogoImageTag":"52f43bae2c8c69b8d7e71f304953de50",
   "Chapters":[
      {
         "StartPositionTicks":0,
         "Name":"Chapter 1",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":300000000,
         "Name":"Title Sequence",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":520000000,
         "Name":"Chapter 2",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":6000000000,
         "Name":"Chapter 3",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":9000000000,
         "Name":"Chapter 4",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":12000000000,
         "Name":"Chapter 5",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":15000000000,
         "Name":"Chapter 6",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":18000000000,
         "Name":"Chapter 7",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":21000000000,
         "Name":"Chapter 8",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      },
      {
         "StartPositionTicks":24000000000,
         "Name":"Chapter 9",
         "ImageTag":"8fdd678e19d2bae23053b050dbf41c85"
      }
   ],
   "MediaType":"Video"
}

 

Posted

Right but when you request a chapter image, the chapter index is part of the url, therefore making each of them different. Can you get this to happen with a brand new video in the library?

  • Like 1
quickmic
Posted
1 minute ago, Luke said:

Right but when you request a chapter image, the chapter index is part of the url, therefore making each of them different. Can you get this to happen with a brand new video in the library?

Thanks, will check.

quickmic
Posted

That solved the issue, thanks for you help. -> I though "ImageTag" should be unique, but actually the index was the problem.

  • Thanks 1

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