Extracting Chapters With Wrong Position

by ADMIN 40 views

Introduction

Jellyfin Server is a popular media server that allows users to manage and stream their media collections. However, like any complex software, it is not immune to bugs and issues. One such issue is the incorrect extraction of chapters from media files, which can lead to errors and inconsistencies in the playback experience. In this article, we will delve into the details of this issue, its reproduction steps, and the expected behavior.

Description of the Bug

The bug in question occurs when the Jellyfin Server attempts to extract chapters from a media file that contains chapters with incorrect positions. The file in question is a typical example of this issue:

Menu
23:59:59.997                   : en:Recap
00:01:37.039                   : en:Scene 1
00:01:37.080                   : en:Intro
00:07:24.997                   : en:Scene 2
00:15:03.330                   : en:Scene 3
00:25:40.789                   : en:Scene 4
00:38:52.872                   : en:Credits

As you can see, the first chapter has a position of 23:59:59.997, which is greater than the runtime of the media file. This is where the issue arises. The Jellyfin Server attempts to extract chapters from the file, but it ends up with an error message:

[2025-05-20 05:10:46.462 +03:00] [INF] [9] Emby.Server.Implementations.MediaEncoder.EncodingManager: Skipping chapter image extraction for "..." as the average chapter duration 0 was lower than the minimum threshold 10000000
[2025-05-20 05:10:46.463 +03:00] [INF] [9] Emby.Server.Implementations.MediaEncoder.EncodingManager: Stopping chapter extraction for "..." because a chapter was found with a position greater than the runtime.

Reproduction Steps

To reproduce this issue, follow these steps:

  1. Create a media file with chapters that have incorrect positions.
  2. Upload the file to your Jellyfin Server.
  3. Attempt to extract chapters from the file using the Jellyfin Server's built-in chapter extraction feature.

What is the Current Bug Behavior?

The current bug behavior is that the Jellyfin Server attempts to extract chapters from the file, but it ends up with an error message. The server skips chapter image extraction and stops chapter extraction altogether because a chapter was found with a position greater than the runtime.

What is the Expected Correct Behavior?

The expected correct behavior is that the Jellyfin Server correctly understands the typo in the first chapter and changes it to 00:00:00.000. This would allow the server to extract chapters from the file correctly.

Jellyfin Server Version

The Jellyfin Server version that is affected by this issue is 10.10.0+.

Specify Commit ID

Unfortunately, there is no response to this question.

Specify Unstable Release Number

Unfortunately, there is no response to this question.

Specify Version Number

Unfortunately, there is no response to this question.

Specify Build Version

The build version that is affected by this issue is 10.10.7.

Environment

The environment in which this issue occurs is:

  • OS: Linux
  • Linux Kernel: 5.10.0-13-amd64
  • Virtualization: None
  • Clients: Jellyfin Server
  • Browser: None
  • FFmpeg Version: 4.4.1
  • Playback Method: None
  • Hardware Acceleration: None
  • GPU Model: None
  • Plugins: None
  • Reverse Proxy: None
  • Base URL: None
  • Networking: None
  • Storage: None

Jellyfin Logs

The Jellyfin logs that are relevant to this issue are:

[2025-05-20 05:10:46.462 +03:00] [INF] [9] Emby.Server.Implementations.MediaEncoder.EncodingManager: Skipping chapter image extraction for "..." as the average chapter duration 0 was lower than the minimum threshold 10000000
[2025-05-20 05:10:46.463 +03:00] [INF] [9] Emby.Server.Implementations.MediaEncoder.EncodingManager: Stopping chapter extraction for "..." because a chapter was found with a position greater than the runtime.

FFmpeg Logs

Unfortunately, there are no FFmpeg logs relevant to this issue.

Client / Browser Logs

Unfortunately, there are no client or browser logs relevant to this issue.

Relevant Screenshots or Videos

Unfortunately, there are no relevant screenshots or videos.

Additional Information

Unfortunately, there is no additional information available.

Conclusion

Q: What is the issue with extracting chapters with wrong position in Jellyfin Server?

A: The issue occurs when the Jellyfin Server attempts to extract chapters from a media file that contains chapters with incorrect positions. The server attempts to extract chapters from the file, but it ends up with an error message.

Q: What is the expected correct behavior of the Jellyfin Server in this scenario?

A: The expected correct behavior is that the Jellyfin Server correctly understands the typo in the first chapter and changes it to 00:00:00.000. This would allow the server to extract chapters from the file correctly.

Q: What is the current bug behavior of the Jellyfin Server in this scenario?

A: The current bug behavior is that the Jellyfin Server attempts to extract chapters from the file, but it ends up with an error message. The server skips chapter image extraction and stops chapter extraction altogether because a chapter was found with a position greater than the runtime.

Q: What are the reproduction steps to reproduce this issue?

A: To reproduce this issue, follow these steps:

  1. Create a media file with chapters that have incorrect positions.
  2. Upload the file to your Jellyfin Server.
  3. Attempt to extract chapters from the file using the Jellyfin Server's built-in chapter extraction feature.

Q: What is the Jellyfin Server version that is affected by this issue?

A: The Jellyfin Server version that is affected by this issue is 10.10.0+.

Q: Is there a workaround for this issue?

A: Yes, one possible workaround is to change the first chapter to 00:00:00.000. This would allow the server to extract chapters from the file correctly.

Q: Has this issue been reported in the Jellyfin Web repository?

A: Yes, this issue has been reported in the Jellyfin Web repository. The issue can be found at https://github.com/jellyfin/jellyfin-web/issues/5712.

Q: What is the current status of this issue?

A: Unfortunately, the current status of this issue is that it is still open and has not been resolved.

Q: Can I contribute to the resolution of this issue?

A: Yes, you can contribute to the resolution of this issue by reporting any additional information or steps that may help the developers to resolve the issue.

Q: How can I stay updated on the status of this issue?

A: You can stay updated on the status of this issue by following the Jellyfin Web repository and checking for any updates on the issue.

Q: Is there a timeline for the resolution of this issue?

A: Unfortunately, there is no timeline for the resolution of this issue. The developers will work on resolving the issue as soon as possible.

Conclusion

In conclusion, the issue of extracting chapters with wrong position is a critical issue in Jellyfin Server. It occurs when the server attempts to extract chapters from a media file that contains chapters with incorrect positions. The expected correct behavior is that the server correctly understands the typo in the first chapter and changes it to 00:00:00.000. However, the current bug behavior is that the server attempts to extract chapters from the file, but it ends up with an error message. We hope that this Q&A article has provided you with the information you need to understand this issue and its implications.