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

Live Twitch streams fail to transcode #10

Closed
dcflachs opened this issue Jul 16, 2023 · 4 comments
Closed

Live Twitch streams fail to transcode #10

dcflachs opened this issue Jul 16, 2023 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@dcflachs
Copy link
Contributor

I keep running into an issue with live Twitch streams. Many live streams that show an ad at the beginning fail to work. The streams start ok initially playing the "Commercial Break in progress" screen but after that there is only black. Grabbing the stream directly in VLC works fine but through jellyfin not so much. The ffmpeg transcode log for the session shows an error like this.

[mpegts @ 0x5628b2994540] Packet corrupt (stream = 1, dts = 6748380). [hls @ 0x5628b268a6c0] Packet corrupt (stream = 1, dts = 6745320). http://127.0.0.1:5000/twitch/direct/Mousie@40904378728: corrupt input packet in stream 1 frame= 449 fps= 32 q=11.0 size=N/A time=00:00:13.03 bitrate=N/A speed=0.926x More than 1000 frames duplicated

@fe80Grau
Copy link
Owner

Hello, I understand that it must be a small error in the redirection or ban issue, I have tried but I cannot find the scenario. If you can send me the Twitch channels that are giving you problems, it would help to find your same scenario, I will also work a little blindly adding in Twitch plugin the bridge mode where the video flow is preprocessed and it is the script itself that serves the data without redirect, this to solve the possible error in the redirection and the option to add proxy in case it is a ban case.

@dcflachs
Copy link
Contributor Author

I have observed the issue on the following channels "PotasticP", "bouphe", "Mousie", "tarik", "xQc". So far as i can tell its actually any channel that begins with a commercial.

As I mentioned, tuning into the stream url (via ytdlp2STRM) with VLC plays the stream fine showing the commercial break screen and then eventually the stream. It is only the jellyfin transcoder that seems to have a problem with it, and only after the commercial break screen. I have tried various transcoder settings to see if that had something to do with it but they all behave the same.

@fe80Grau
Copy link
Owner

fe80Grau commented Oct 22, 2023

Jellyfin web issue. Maybe fixed in the last Jellyfin release. https://github.com/jellyfin/jellyfin/releases/tag/v10.8.11

@dcflachs
Copy link
Contributor Author

dcflachs commented Nov 29, 2023

@fe80Grau This issue still exists in the latest jellyfin release. Best I have been able to discern it is not a issue with Jellyfin Web but with the Jellyfin Server HLS handling. If i understand correctly jellyfin passes the m3u playlist decoding off to FFMPEG which is unable to correctly handle the #EXT-X-DISCONTINUITY tags used to embed ads into some Twitch Live streams.

jellyfin/jellyfin-ffmpeg#57

@fe80Grau fe80Grau added the documentation Improvements or additions to documentation label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants