Jellyfin Forum
Live Stream Crashes with Transcode Error - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Live Stream Crashes with Transcode Error (/t-live-stream-crashes-with-transcode-error)



Live Stream Crashes with Transcode Error - ralphshep - 2023-09-18

I have ErstazTV and Jellyfin running on the same TrueNAS Scale server. For a while now I have been able to stream Jellyfin remotly through my domain with no issues. Now, I have setup ErstazTV to be able to watch my content in a randomized order. I have successfully connected it to Jellyfin and I'm able to stream a couple of minutes before the stream crashes and this message appears in the logs:

Code:
[2023-09-17 21:38:58.584 -04:00] [WRN] [38] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "https://MYDOMAIN/videos/4a4bab48-d63f-d762-0716-fe4d187a445f/live.m3u8?DeviceId=TW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTVfNykgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzE2LjQgU2FmYXJpLzYwNS4xLjE1fDE2ODQyNzkxODQ5MzM1&MediaSourceId=7f5acd154b71643603158b5d75faecaf&VideoCodec=h264,h264&AudioCodec=aac,mp3&AudioStreamIndex=-1&VideoBitrate=9616000&AudioBitrate=384000&MaxFramerate=29.97003&PlaySessionId=f0cb465d5b8a49b5997f95a226e2478f&api_key=f1b5474c148048a8b94b07e10353d999&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_7f5acd154b71643603158b5d75faecaf&TranscodingMaxAudioChannels=6&RequireAvc=false&SegmentContainer=ts&MinSegments=2&BreakOnNonKeyFrames=True&h264-level=31&h264-videobitdepth=8&h264-profile=high&h264-rangetype=SDR&h264-deinterlace=true&[b]TranscodeReasons=ContainerNotSupported" to "DESTIONATION IP" in 0:00:07.8919162 with Status Code 200[/b]


This is all followed by the following repeated error messages:

Code:
2023-09-17 21:38:59.044 -04:00] [ERR] [72] Emby.Server.Implementations.Session.SessionManager: Error reporting playback progress MediaBrowser.Common.Extensions.ResourceNotFoundException: Session bc1e47f5be1ea86c6b1dde1891e1b155 not found. at Emby.Server.Implementations.Session.SessionManager.GetSession(String sessionId, Boolean throwOnMissing) at Emby.Server.Implementations.Session.SessionManager.OnPlaybackProgress(PlaybackProgressInfo info, Boolean isAutomated) at MediaBrowser.Controller.Session.SessionInfo.OnProgressTimerCallback(Object state)


In the final lines in the FFmpeg direct stream log report:


Code:
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb442.ts' for writing
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb4.m3u8.tmp' for writing
frame= 5158 fps= 31 q=-1.0 size=N/A time=00:02:52.03 bitrate=N/A speed=1.02x   
frame= 5175 fps= 31 q=-1.0 size=N/A time=00:02:52.60 bitrate=N/A speed=1.02x   
frame= 5192 fps= 31 q=-1.0 size=N/A time=00:02:53.16 bitrate=N/A speed=1.02x   
frame= 5207 fps= 31 q=-1.0 size=N/A time=00:02:53.66 bitrate=N/A speed=1.02x   
frame= 5221 fps= 30 q=-1.0 size=N/A time=00:02:54.13 bitrate=N/A speed=1.02x   
frame= 5239 fps= 31 q=-1.0 size=N/A time=00:02:54.73 bitrate=N/A speed=1.02x   
frame= 5256 fps= 31 q=-1.0 size=N/A time=00:02:55.30 bitrate=N/A speed=1.02x   
frame= 5273 fps= 30 q=-1.0 size=N/A time=00:02:55.87 bitrate=N/A speed=0.993x   
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb443.ts' for writing
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb4.m3u8.tmp' for writing
frame= 5391 fps= 30 q=-1.0 size=N/A time=00:02:59.80 bitrate=N/A speed=0.992x   
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb444.ts' for writing
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb4.m3u8.tmp' for writing
[q] command received. Exiting.
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb445.ts' for writing
[hls @ 0x56535d101580] Opening '/config/transcodes/d127b088daa75b52b4b02e56ba9fadb4.m3u8.tmp' for writing
frame= 5512 fps= 29 q=-1.0 Lsize=N/A time=00:03:03.84 bitrate=N/A speed=0.982x   
video:43480kB audio:8618kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Any thoughts on what could be causing this transcoding issue?


RE: Live Stream Crashes with Transcode Error - bitmap - 2023-09-18

The first error message is unrelated, most likely. It's a slow HTTP response message that plagues all users who don't disable it.

The other errors are cryptic at best without more context. You'd have to provide more than scraps of the logs for us to take a look at. The first one just says a session Jellyfin expected to find when it was checking playback status was not present so it threw an error. The ffmpeg log looks...fine? It's opening the playlist file and the ts file at the same time which makes sense. It slows to a crawl near the end, gets an exit command from somewhere, then stops. Couldn't this be an issue with running out of disk space in your transcode directory? Or if you're using a RAMdisk, could you have allocated too little for that to be effective? I'm not sure how often the transcode directory is cleaned when viewing Live TV. Again more logs would be needed to do anything effective.

And a favor? Don't change your font to black...if anybody uses dark mode it makes things impossible to read.


RE: Live Stream Crashes with Transcode Error - ralphshep - 2023-09-19

Hello @bitmap,

Thank you for your response!

What do you mean by "It's a slow HTTP response message that plagues all users who don't disable it" disable what? For more context, I have uploaded the full logs to the initial post. I have this all running in docker containers on a TrueNAS Scale machine that allocates a dynamic 8GB of memory to both the Jellyfin and ErstazTV containers. They also have 128GB of PVC storage. Both of these settings are the standard with the TrueCharts installation. I hope this additional information is helpful!