LiveTV Consumer Count #1199

Closed
opened 2026-02-06 20:37:22 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @Artiume on GitHub (Jan 13, 2020).

Describe the bug

For LiveTV, you can set a limit on the number of streams available. The counter doesn't always reset properly, I believe it is hanging on null streams, but I have been having issues reproducing it.

To Reproduce

Having trouble reproducing it but it typically occurs on a bad stream being attempted to play. I need to investigate it with DEBUG mode on to see if I can get anything else to appear.

Expected behavior

Logs

Here are normal logs, trying to reproduce a failure still.

Jellyfin node [2020-01-13 13:01:09.476 -05:00] [INF] User policy for "artiume". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
Jellyfin node [2020-01-13 13:01:09.476 -05:00] [INF] Profile: "Unknown Profile", Path: "http://REDACTED", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
Jellyfin node [2020-01-13 13:01:09.476 -05:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "http://REDACTED"
Jellyfin node [2020-01-13 13:01:09.477 -05:00] [INF] Opening channel stream from "Emby", external channel Id: "m3u_531e513cec0571fef0f48610c15f0e4dec8c5e697e5ee3bf9dfe959756562d9e"
Jellyfin node [2020-01-13 13:01:09.477 -05:00] [INF] Streaming Channel m3u_531e513cec0571fef0f48610c15f0e4dec8c5e697e5ee3bf9dfe959756562d9e
Jellyfin node [2020-01-13 13:01:09.478 -05:00] [INF] Live stream opened after 0.0145ms
Jellyfin node [2020-01-13 13:01:09.478 -05:00] [INF] Returning mediasource streamId "c0a2b80f765fe2a626bd699341d6", mediaSource.Id "c0a2b80f765fe2a626bd7629699341d6", mediaSource.LiveStreamId null
Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] Live tv media info probe took "0.0006240999999999999" seconds
Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] Live stream opened: {"Protocol":"Http","Id":"c0a2b80f765fe2a626bd7629699341d6","Path":"http://REDACTED","Type":"Default","Container":"mpegts","IsRemote":true,"ReadAtNativeFramerate":false,"IgnoreDts":true,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":false,"IsInfiniteStream":true,"RequiresOpening":true,"RequiresClosing":true,"LiveStreamId":"a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6","RequiresLooping":true,"SupportsProbing":true,"MediaStreams":[{"Codec":"h264","TimeBase":"1/90000","CodecTimeBase":"1001/120000","VideoRange":"SDR","DisplayTitle":"720P H264","NalLengthSize":"0","IsInterlaced":false,"BitRate":8000000,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":59.94006,"RealFrameRate":59.94006,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"aac","TimeBase":"1/90000","CodecTimeBase":"1/48000","DisplayTitle":"AAC stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":136125,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Profile":"LC","Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"Formats":[],"Bitrate":8136125,"RequiredHttpHeaders":{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"},"AnalyzeDurationMs":3000}
Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] User policy for "artiume". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] Profile: "Unknown Profile", Path: "http://REDACTED", isEligibleForDirectPlay: True, isEligibleForDirectStream: True
Jellyfin node [
Jellyfin node [2020-01-13 13:01:09.480 -05:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "http://REDACTED"
Jellyfin node [2020-01-13 13:01:10.831 -05:00] [WRN] HTTP Response 200 to "192.168.1.1". Time (slow): 0:00:01.0141846. "http://REDACTED?DeviceId=TW96aMaW51eHJ2OjcwLjApIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvNzAuMHwxNTc1Mzc3MzQ5NjU4&MediaSourceId=c0a2b841d6&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=-1&VideoBitrate=8000000&AudioBitrate=136125&PlaySessionId=94ffeb9518f44f048105854be82cb84b&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline&h264-lev
Jellyfin node el=51&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported&allowVideoStreamCopy=false&allowAudioStreamCopy=false"
Jellyfin node [2020-01-13 13:01:10.947 -05:00] [ERR] Could not find handler for "/LiveStreams/MediaInfo"
Jellyfin node [2020-01-13 13:01:12.325 -05:00] [INF] Stopping ffmpeg process with q command for "/ram_transcode/dea8bd41874e466295c6c68a18ddea8c.m3u8"
Jellyfin node [2020-01-13 13:01:12.448 -05:00] [INF] Deleting partial stream file(s) "/ram_transcode/dea8bd41874e466295c6c68a18ddea8c.m3u8"
Jellyfin node [2020-01-13 13:01:13.809 -05:00] [WRN] HTTP Response 200 to "192.168.1.1". Time (slow): 0:00:01.4201964. "http:/REDACTED/d2652e0c2c6/Items/Resume?Limit=12&Recursive=true&Fields=PrimaryImageAspectRatio%2CBasicSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&EnableTotalRecordCount=false&MediaTypes=Video"
Jellyfin node [2020-01-13 13:01:13.949 -05:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.5.0" playing "VIP HD DISNEY JNR". Stopped at "1119" ms


Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Live stream "c0a2b80f765fe2a62699341d6" consumer count is now 0


Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Closing live stream "a17c75760a04e99b68cf766e11c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6"
Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Closing "LiveStream"
Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Live stream "a17c75760a04e99b68cf766e11c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6" closed successfully
Jellyfin node [
Jellyfin node [
Jellyfin node [2020-01-13 13:01:14.328 -05:00] [WRN] HTTP Response 204 to "192.168.1.1". Time (slow): 0:00:02.0045905. "http://REDACTED/Sessions/Playing/Stopped"

Screenshots

System (please complete the following information):

  • OS: [e.g. Docker, Debian, Windows]
  • Browser: [e.g. Firefox, Chrome, Safari]
  • Jellyfin Version: [e.g. 10.0.1]
  • Installed Plugins: [e.g. none, Fanart, Anime, etc.]
  • Reverse proxy: [e.g. no, nginx, apache, etc.]

Additional context

The logs also don't report out when Consumer Count increases. It probably should.

Originally created by @Artiume on GitHub (Jan 13, 2020). **Describe the bug** <!-- A clear and concise description of what the bug is. --> For LiveTV, you can set a limit on the number of streams available. The counter doesn't always reset properly, I believe it is hanging on null streams, but I have been having issues reproducing it. **To Reproduce** Having trouble reproducing it but it typically occurs on a bad stream being attempted to play. I need to investigate it with DEBUG mode on to see if I can get anything else to appear. **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Logs** <!-- Please paste any log errors. --> Here are normal logs, trying to reproduce a failure still. ``` Jellyfin node [2020-01-13 13:01:09.476 -05:00] [INF] User policy for "artiume". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True Jellyfin node [2020-01-13 13:01:09.476 -05:00] [INF] Profile: "Unknown Profile", Path: "http://REDACTED", isEligibleForDirectPlay: True, isEligibleForDirectStream: True Jellyfin node [2020-01-13 13:01:09.476 -05:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "http://REDACTED" Jellyfin node [2020-01-13 13:01:09.477 -05:00] [INF] Opening channel stream from "Emby", external channel Id: "m3u_531e513cec0571fef0f48610c15f0e4dec8c5e697e5ee3bf9dfe959756562d9e" Jellyfin node [2020-01-13 13:01:09.477 -05:00] [INF] Streaming Channel m3u_531e513cec0571fef0f48610c15f0e4dec8c5e697e5ee3bf9dfe959756562d9e Jellyfin node [2020-01-13 13:01:09.478 -05:00] [INF] Live stream opened after 0.0145ms Jellyfin node [2020-01-13 13:01:09.478 -05:00] [INF] Returning mediasource streamId "c0a2b80f765fe2a626bd699341d6", mediaSource.Id "c0a2b80f765fe2a626bd7629699341d6", mediaSource.LiveStreamId null Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] Live tv media info probe took "0.0006240999999999999" seconds Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] Live stream opened: {"Protocol":"Http","Id":"c0a2b80f765fe2a626bd7629699341d6","Path":"http://REDACTED","Type":"Default","Container":"mpegts","IsRemote":true,"ReadAtNativeFramerate":false,"IgnoreDts":true,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":false,"SupportsDirectPlay":false,"IsInfiniteStream":true,"RequiresOpening":true,"RequiresClosing":true,"LiveStreamId":"a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6","RequiresLooping":true,"SupportsProbing":true,"MediaStreams":[{"Codec":"h264","TimeBase":"1/90000","CodecTimeBase":"1001/120000","VideoRange":"SDR","DisplayTitle":"720P H264","NalLengthSize":"0","IsInterlaced":false,"BitRate":8000000,"BitDepth":8,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":59.94006,"RealFrameRate":59.94006,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"aac","TimeBase":"1/90000","CodecTimeBase":"1/48000","DisplayTitle":"AAC stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":136125,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Profile":"LC","Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0}],"Formats":[],"Bitrate":8136125,"RequiredHttpHeaders":{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"},"AnalyzeDurationMs":3000} Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] User policy for "artiume". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True Jellyfin node [2020-01-13 13:01:09.479 -05:00] [INF] Profile: "Unknown Profile", Path: "http://REDACTED", isEligibleForDirectPlay: True, isEligibleForDirectStream: True Jellyfin node [ Jellyfin node [2020-01-13 13:01:09.480 -05:00] [INF] Profile: "Unknown Profile", No direct play profiles found for Path: "http://REDACTED" Jellyfin node [2020-01-13 13:01:10.831 -05:00] [WRN] HTTP Response 200 to "192.168.1.1". Time (slow): 0:00:01.0141846. "http://REDACTED?DeviceId=TW96aMaW51eHJ2OjcwLjApIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvNzAuMHwxNTc1Mzc3MzQ5NjU4&MediaSourceId=c0a2b841d6&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=-1&VideoBitrate=8000000&AudioBitrate=136125&PlaySessionId=94ffeb9518f44f048105854be82cb84b&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-profile=high,main,baseline,constrainedbaseline&h264-lev Jellyfin node el=51&TranscodeReasons=ContainerNotSupported,VideoCodecNotSupported,AudioCodecNotSupported&allowVideoStreamCopy=false&allowAudioStreamCopy=false" Jellyfin node [2020-01-13 13:01:10.947 -05:00] [ERR] Could not find handler for "/LiveStreams/MediaInfo" Jellyfin node [2020-01-13 13:01:12.325 -05:00] [INF] Stopping ffmpeg process with q command for "/ram_transcode/dea8bd41874e466295c6c68a18ddea8c.m3u8" Jellyfin node [2020-01-13 13:01:12.448 -05:00] [INF] Deleting partial stream file(s) "/ram_transcode/dea8bd41874e466295c6c68a18ddea8c.m3u8" Jellyfin node [2020-01-13 13:01:13.809 -05:00] [WRN] HTTP Response 200 to "192.168.1.1". Time (slow): 0:00:01.4201964. "http:/REDACTED/d2652e0c2c6/Items/Resume?Limit=12&Recursive=true&Fields=PrimaryImageAspectRatio%2CBasicSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&EnableTotalRecordCount=false&MediaTypes=Video" Jellyfin node [2020-01-13 13:01:13.949 -05:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.5.0" playing "VIP HD DISNEY JNR". Stopped at "1119" ms Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Live stream "c0a2b80f765fe2a62699341d6" consumer count is now 0 Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Closing live stream "a17c75760a04e99b68cf766e11c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6" Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Closing "LiveStream" Jellyfin node [2020-01-13 13:01:14.328 -05:00] [INF] Live stream "a17c75760a04e99b68cf766e11c_09efa0d56b934a82adec00a87b837fb0_c0a2b80f765fe2a626bd7629699341d6" closed successfully Jellyfin node [ Jellyfin node [ Jellyfin node [2020-01-13 13:01:14.328 -05:00] [WRN] HTTP Response 204 to "192.168.1.1". Time (slow): 0:00:02.0045905. "http://REDACTED/Sessions/Playing/Stopped" ``` **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **System (please complete the following information):** - OS: [e.g. Docker, Debian, Windows] - Browser: [e.g. Firefox, Chrome, Safari] - Jellyfin Version: [e.g. 10.0.1] - Installed Plugins: [e.g. none, Fanart, Anime, etc.] - Reverse proxy: [e.g. no, nginx, apache, etc.] **Additional context** <!-- Add any other context about the problem here. --> The logs also don't report out when Consumer Count increases. It probably should.
OVERLORD added the bugstale labels 2026-02-06 20:37:22 +03:00
Author
Owner

@JustAMan commented on GitHub (May 8, 2020):

Might be fixed by https://github.com/jellyfin/jellyfin/pull/3072

@JustAMan commented on GitHub (May 8, 2020): _Might_ be fixed by https://github.com/jellyfin/jellyfin/pull/3072
Author
Owner

@gled-rs commented on GitHub (May 14, 2020):

Might be fixed by #3072

At first it seems like it did, but I got another case of limit reached when it should not have been.

@gled-rs commented on GitHub (May 14, 2020): > _Might_ be fixed by #3072 At first it seems like it did, but I got another case of limit reached when it should not have been.
Author
Owner

@JustAMan commented on GitHub (May 15, 2020):

Enable debug logs and try to repro... that's best I can do. I don't have any livetv devices.

@JustAMan commented on GitHub (May 15, 2020): Enable debug logs and try to repro... that's best I can do. I don't have any livetv devices.
Author
Owner

@gled-rs commented on GitHub (May 15, 2020):

I got those logs when it happened earlier, unfortunately debug logs were not activated:

[2020-05-14 23:59:46.018 +00:00] [INF] Opening channel stream from "Emby", external channel Id: "m3u_51108631f36c887c17c7f92b2f5f79c50b21ee7fc56eb7eb8f4d2ef22f7e739c"
[2020-05-14 23:59:46.019 +00:00] [INF] Streaming Channel m3u_51108631f36c887c17c7f92b2f5f79c50b21ee7fc56eb7eb8f4d2ef22f7e739c
[2020-05-14 23:59:46.019 +00:00] [ERR] Error opening tuner
MediaBrowser.Controller.LiveTv.LiveTvConflictException: M3U simultaneous stream limit has been reached.

This one is not easy to reproduce on demand, it worked perfectly for 5 days and suddenly happened again.

@gled-rs commented on GitHub (May 15, 2020): I got those logs when it happened earlier, unfortunately debug logs were not activated: ``` [2020-05-14 23:59:46.018 +00:00] [INF] Opening channel stream from "Emby", external channel Id: "m3u_51108631f36c887c17c7f92b2f5f79c50b21ee7fc56eb7eb8f4d2ef22f7e739c" [2020-05-14 23:59:46.019 +00:00] [INF] Streaming Channel m3u_51108631f36c887c17c7f92b2f5f79c50b21ee7fc56eb7eb8f4d2ef22f7e739c [2020-05-14 23:59:46.019 +00:00] [ERR] Error opening tuner MediaBrowser.Controller.LiveTv.LiveTvConflictException: M3U simultaneous stream limit has been reached. ``` This one is not easy to reproduce on demand, it worked perfectly for 5 days and suddenly happened again.
Author
Owner

@Artiume commented on GitHub (May 15, 2020):

@gled-rs do you happen to have a fire stick?

@Artiume commented on GitHub (May 15, 2020): @gled-rs do you happen to have a fire stick?
Author
Owner

@gled-rs commented on GitHub (May 15, 2020):

@gled-rs do you happen to have a fire stick?

I do not, I use a standard x86_64 linux host.

@gled-rs commented on GitHub (May 15, 2020): > @gled-rs do you happen to have a fire stick? I do not, I use a standard x86_64 linux host.
Author
Owner

@stale[bot] commented on GitHub (Sep 12, 2020):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@stale[bot] commented on GitHub (Sep 12, 2020): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#1199