Jump to content

Chapter images: add a small delay?


Recommended Posts

Posted

Since with a lot of movies a chapter start corresponds with a fade-in, many chapter images are just plain black squares. It seems like a simple way to fix this would be to grab the chapter image from the chapter timestamp + 5 seconds or so. Is this something that seems feasible?

  • Like 3
Posted

how many seconds of black does your video have between chapters?

Posted

Well, it's not just one video this is happening with. Older movies used fade-ins a lot. I tested from a few different movies, and it seems to be 3-4 seconds.

  • 5 months later...
hstamas
Posted

Just started playing with chapter images myself and I’m seeing the same thing with TV shows. Episodes that have actual, designated chapter marks that Emby is honoring usually occur when the show is coming back from where a commercial used to live so there is a fade in from black. Most of my chapter images are capturing this black screen.

 

Example attached.

 

I thing a 1-2 second offset would solve the problem.

post-45887-0-65315300-1559942953_thumb.jpeg

Posted

what is your thumbnail interval setting on the server?

hstamas
Posted

what is your thumbnail interval setting on the server?

“Chapter markers”

Posted

What container format is that?

hstamas
Posted

What container format is that?

Mkv

Posted

Strange. We actually already use a filter to try and avoid black images on chapters.

chowbok
Posted

Strange. We actually already use a filter to try and avoid black images on chapters.

Really? I didn't realize that. It's not working for me, at least not always.

Posted

Can you provide a sample video for testing? thanks.

  • 4 years later...
Posted

Too late to revive this thread? I have a good example file of what I was talking about, let me know if you'd still like to look at it and I'll put it up.

Posted

Do you extract art chapters or the 10 second intervals?

Posted

OK, there is currently no option for this, but this idea has come up before and is possible for future updates. Thanks.

  • 4 months later...
Posted (edited)

Would love this feature as well.

NCIS is a great example of this issue.  Pulling images at the chapter markers always results in a black screen (except for the first chapter):
image.thumb.png.4e14adefebaaed8c18f69426ce2df04b.png

A library level (and perhaps a TV show level override) of chapter mark + "X seconds" (and could accept + or - values).

 

Edited by Grimmer
  • Agree 1
  • 1 year later...
chowbok
Posted

Just wanted to do an annual ping on this. It seems like just adding a 10–15 second delay on the chapter images would fix this, and be easy to implement.

  • Thanks 1
Posted

Could also add a quick calculation to sum the values from a few hundred pixels across the chapter screenshot. If the sum is below a certain threshold (that indicates a black/dark scene), advance 1 sec and try again and repeat as needed. A small (negligible?) additional load on the CPU, but could keep the chapter screenshot as close as possible to the start of the chapter.

  • Thanks 1
chowbok
Posted

I just feel that the more complicated this is, the less likely it is to be implemented. 

Posted

We could always add a library option for this.

  • Like 1
chowbok
Posted

That'd be fine with me.

Posted

Would it be possible to have the server admin choose the delay value in the library settings?  Is there already a default delay built in?  10-15 second is a very long time for video.  Skipping over a chapter fade-in, could likely be handled by a 2 second delay.

 

Posted
43 minutes ago, Grimmer said:

Would it be possible to have the server admin choose the delay value in the library settings?  Is there already a default delay built in?  10-15 second is a very long time for video.  Skipping over a chapter fade-in, could likely be handled by a 2 second delay.

 

Yes. There currently is no delay. The image extraction uses a filtering technique to avoid getting black frames, however this is a push/pull because the more aggressive we make that, the more people complain that the extraction takes too long. But making that configurable could be an alternative to a delay because then you actually get an image that corresponds with the chapter timestamp.

chowbok
Posted (edited)
On 6/18/2025 at 10:59 AM, Grimmer said:

Would it be possible to have the server admin choose the delay value in the library settings?  Is there already a default delay built in?  10-15 second is a very long time for video.  Skipping over a chapter fade-in, could likely be handled by a 2 second delay.

 

You're right, 10–15 seconds is unnecessarily long. 3–4 would probably be ideal, I think 2 isn't enough.

I worry that Luke's proposed solution of auto-detecting black would take too long to implement.

Edited by chowbok
Submitted too soon
  • 7 months later...
chowbok
Posted

Any luck with this? Still getting mostly black chapter images on my older movies.

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