A little script to serve Youtube / Twitch / Crunchyroll videos without storage it. Uses yt-dlp HTTP data throught Flask and dynamic URLs. We can use this dynamic URLs to set STRM files.
I can't seem to make streams (Twitch) play. Channels and metadata are discovered but playback never starts; depending on the client, it either loads forever or nothing happens at all when pressing play. This happens regardless of the chosen stream or playback client (tried web,android, and the Linux client).
Jellyfin log:
[2024-11-25 15:59:29.425 +01:00] [INF] [4] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -probesize 1G -i \"http://127.0.0.1:5000/twitch/direct/faith@39489914884\" -map_metadata -1 -map_chapters -1 -threads 0 -sn -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_base_url \"hls/924719121a7c0ccda420bc2d52f9c1f5/\" -hls_segment_filename \"/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5%d.ts\" -hls_playlist_type event -hls_list_size 0 -y \"/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5.m3u8\""
[2024-11-25 15:59:29.438 +01:00] [INF] [20] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) "/config/cache/transcodes/d49e9adcc2ebd680c144bb938f690973.m3u8"
[2024-11-25 15:59:29.440 +01:00] [INF] [20] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for "/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5.m3u8"
[2024-11-25 15:59:29.442 +01:00] [ERR] [4] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "A task was canceled". URL "GET" "/videos/f48500ad-bdf1-6ea4-79e5-6c0636944292/live.m3u8".
[2024-11-25 15:59:29.443 +01:00] [ERR] [20] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 1
[2024-11-25 15:59:29.444 +01:00] [INF] [20] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) "/config/cache/transcodes/924719121a7c0ccda420bc2d52f9c1f5.m3u8"
[2024-11-25 15:59:30.947 +01:00] [INF] [23] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Media Player" "1.11.1" playing "!000-live-F a i t h ( l i v e ) 2 0 2 4 - 1 1 - 2 5 0 0 2 1 [39489914884]". Stopped at "0" ms
I can't seem to make streams (Twitch) play. Channels and metadata are discovered but playback never starts; depending on the client, it either loads forever or nothing happens at all when pressing play. This happens regardless of the chosen stream or playback client (tried web,android, and the Linux client).
Jellyfin log:
ytdlp2strm config:
Ytdlp2strm container log show no errors and nothing stand out to me in the Jellyfin logs. Any ideas?