Last dummy chapter covers more than the dummy chapter duration instead of creating a smaller chapter #7271

Open
opened 2025-12-22 05:29:21 +01:00 by backuprepo · 1 comment
Owner

Originally created by @steffenhauge on GitHub (Aug 22, 2025).

Description of the bug

When using dummy chapter extraction (default time duration of 5 minutes)
The last chapter is always longer than the dummy chapter duration.

For example, having a 5 minute dummy chapter duration and a video with 44 minutes of runtime.
8 chapters gets created.
Chapter 7 is at 30:00
Chapter 8 is at 35:00

But the remaing duration is 35:00 to 44:00. So the last chapter (8) covers that duration, leaving a "big" gap in the timeline.
Instead of just creating a chapter 9 at 40:00 to cover the rest.

Reproduction steps

  1. Enable dummy chapter extraction
  2. Wait for dummy chapter extraction to run
  3. Observe above behavior

What is the current bug behavior?

The last chapter covers more than the dummy chapter duration

What is the expected correct behavior?

Insert an extra dummy chapter that covers the rest of the video, even if the reset of the video is less than the dummy chapter duration

Jellyfin Server version

10.10.0+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.10.7

Environment

- OS: Debian 12.11
- Linux Kernel: 6.1
- Virtualization: Docker
- Clients: Jellyfin Media Player
- Browser: None
- FFmpeg Version:
- Playback Method:
- Hardware Acceleration:
- GPU Model:
- Plugins:
- Reverse Proxy:
- Base URL:
- Networking:
- Jellyfin Data Storage:
- Media Storage:
- External Integrations:

Jellyfin logs

.

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

Image Image Image

Additional information

No response

Originally created by @steffenhauge on GitHub (Aug 22, 2025). ### Description of the bug When using dummy chapter extraction (default time duration of 5 minutes) The last chapter is always longer than the dummy chapter duration. For example, having a 5 minute dummy chapter duration and a video with 44 minutes of runtime. 8 chapters gets created. Chapter 7 is at 30:00 Chapter 8 is at 35:00 But the remaing duration is 35:00 to 44:00. So the last chapter (8) covers that duration, leaving a "big" gap in the timeline. Instead of just creating a chapter 9 at 40:00 to cover the rest. ### Reproduction steps 1. Enable dummy chapter extraction 2. Wait for dummy chapter extraction to run 3. Observe above behavior ### What is the current _bug_ behavior? The last chapter covers more than the dummy chapter duration ### What is the expected _correct_ behavior? Insert an extra dummy chapter that covers the rest of the video, even if the reset of the video is less than the dummy chapter duration ### Jellyfin Server version 10.10.0+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.10.7 ### Environment ```markdown - OS: Debian 12.11 - Linux Kernel: 6.1 - Virtualization: Docker - Clients: Jellyfin Media Player - Browser: None - FFmpeg Version: - Playback Method: - Hardware Acceleration: - GPU Model: - Plugins: - Reverse Proxy: - Base URL: - Networking: - Jellyfin Data Storage: - Media Storage: - External Integrations: ``` ### Jellyfin logs ```shell . ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos <img width="818" height="175" alt="Image" src="https://github.com/user-attachments/assets/95fe38c6-7334-4794-82c4-6a71804f4854" /> <img width="816" height="168" alt="Image" src="https://github.com/user-attachments/assets/a0d38227-c3e2-4670-bc63-54e71559296e" /> <img width="833" height="93" alt="Image" src="https://github.com/user-attachments/assets/9e27d1c5-7d90-4ad2-9fb2-2f387cb71d11" /> ### Additional information _No response_
backuprepo added the
stale
bug
labels 2025-12-22 05:29:21 +01:00
Author
Owner

@jellyfin-bot commented on GitHub (Dec 21, 2025):

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

@jellyfin-bot commented on GitHub (Dec 21, 2025): This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs. If you have any questions you can use one of several ways to [contact us](https://jellyfin.org/contact).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#7271
No description provided.