Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transcoded Streams Error During Playback #1474

Open
brandondeason opened this issue Nov 6, 2023 · 0 comments
Open

Transcoded Streams Error During Playback #1474

brandondeason opened this issue Nov 6, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@brandondeason
Copy link

brandondeason commented Nov 6, 2023

Software Versions

  • Jellyfin Server Version: 10.8.11 (Docker on Debian 12.2, Intel Core I7-9700T, iGPU, QSV HA)
  • Roku Client Version: 1.6.6 (Roku Streambar - Model 9102R)

Describe the bug

When transcoding, the stream will work for some amount of time, then it will fail with "Error During Playback: An error was encountered while playing this item."

The same issue exist with with multiple transcode reasons. For a specific scenario, I am trying to stream a movie that requires a transcode because of it's MPEG-TS container (Reason: ContainerNotSupported). The movie streams perfectly for about 4 minutes, then I get the error. By looking at the FFMPEG log, the movie was completely transcoded without any errors. Reviewing the Jellyfin log, there are no errors and it appears the Jellyfin Roku app stopped the movie. The first sign of failure in the JF log is a ReportPlaybackStopped command. That is why I believe it is a Roku app issue.

How To Reproduce

  1. Play a video in the Jellyfin Roku app that requires a transcode.
  2. Watch the movie, possibly until a few minutes after the transcode finishes.
  3. Bug occurs - "Error During Playback: An error was encountered while playing this item." pop-up and video crashes (app does not crash).

Expected behavior

The video plays without errors or crashing.

Logs

Full Jellyfin Log (with debug and plugins)

Edited Jellyfin Log (most debug and plugins removed)

FFMPEG log

Screenshots

N/A

Connection Information

  • Is server local or remote: Local
  • Is server connection HTTP or HTTPS: HTTP

Additional context

As mentioned above, this issue persists with other transcode reasons, including an audio only transocde of 7.1 EAC3 to 5.1 EAC3. I do not get this issue on my Roku Express (Model 3960R), although I have other issues like streams not starting (another issue for another day). I did not have this issue in the web app either.

I attempted to run this with VSCode and the dev app. The same thing happened but I didn't get any errors in the command console. It's possible I was doing that wrong.

There are similar closed issues to mine, some using different clients, but none are identical to mine. My stream starts just fine, which I think points to good overall transcode and hardware acceleration settings. I am not seeing the transcode stopped with a [q] command. I do not have Throttle Transcodes turned on.

Here are som similar threads I've reviewed:
jellyfin/jellyfin#6957 (androittv)
jellyfin/jellyfin#7385
https://www.reddit.com/r/jellyfin/comments/vaalpo/transcoding_stops_working_after_a_few_minutes/

The FFMPEG log does have errors near the end for "Unset Timestamp" but I do not believe that is causing the issue. Similarly, there is a note for "HLS implementation doesn't support non-keyframe breaks" in the JF log that I believe is unrelated. I dug into HLS and I'm not convinced that Jellyfin doesn't have an issue with the dynamic HLS controller. Maybe that is related.

I reviewed the server and router logs and have not found any issues there.

@brandondeason brandondeason added the bug Something isn't working label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant