Jump to content

Chapters Previews Missing for Some Episodes


Recommended Posts

Posted

Here is an interesting one for you...

Some episodes are missing the chapter previews (so you can't start playing at the chapter directly).

Missing

vs

image.thumb.png.89ba687c601cecfbe897083799000644.png

I see this entry in the Emby Log:

image.thumb.png.5bcbce5f0c51ab5793b8b5048fc74d5a.png

However, there is no chapter that exists outside the runtime (00:43:36.65)...

image.thumb.png.7eeed2fc45cd323eeb79bcee81d17d32.png

image.thumb.png.6ba534753f9ee955c3634b90e4f213fc.png

The end time of chapter 12 is 00:43:36.572, which is still within the runtime.

At first, I was planning to delete the offending chapters, but when I looked into it there were none.  Maybe I can just delete the last chapter?  Is there a better way to fix the error so Emby can acquire the chapter previews normally?

 

 

Posted

Hi, yea we’ll have to add more logging to see what values those are being based on.

Posted

One thought I had was it being a rounding issue when converting frames to seconds (or vicevesa).  As it turns out, the video is 23.98 fps.  If you add 1 frame (displayed twice), the end time becomes 43:36.655 seconds, which to a computer is out of bounds if ffprobe is reporting it as 43:36.650 and dropping the trailing 0 (it appears from the other numbers it is using 3 digits of precision).  However, the end of the chapter is 2616.572, so there shouldn't be an extra frame unless it is a "starts at 0" vs "starts at 1" issue in the chapter image extraction routines.

(2/23.98) + 36.572 = 36.655

image.thumb.png.c4c557b79df7969f41d2930d268b104f.png

  • Thanks 1
Posted

Using ffmpeg, I updated the end point of the last chapter for the offending episodes by subtracting 83ms.  They all successfully pulled the chapter images.  Seems it was likely choking on the end point of the last chapter for those few episodes.

  • Thanks 2

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