Jump to content

Stopping live playback appears to stop active Live TV recording sharing same stream


Recommended Posts

halter73
Posted (edited)

Emby Server 4.9.5.0

I think stopping playback of a Live TV stream can incorrectly stop an active recording that is sharing the same stream.

Setup:
- Emby Server 4.9.5.0
- Docker on Windows / Docker Desktop / WSL2
- HDHomeRun tuner
- Channel: KOMO / hdhr_4.1

What happened:
I had an NBA Finals Live TV recording in progress. While it was recording, I played the in-progress recording / live stream from clients. The recording unexpectedly stopped at 6:55:28 PM. I noticed about five minutes later and restarted the recording manually from iPhone at 7:00:11 PM. The restarted recording then continued normally until the scheduled end.

The likely trigger was that I briefly started playback in the Emby Xbox app, backed out, then quickly switched to Emby Web in Edge on the same Xbox and started/stopped the live stream there. I switched to Edge, because unlike the native Xbox client, I can time shift a still-recording stream from the beginning works (as long as it's from the beginning). I cannot get time shifting to work in the native app even if I force transcoding, but I digress.

My guess is that switching clients caused the shared live stream reference count to be decremented incorrectly, allowing the active recording stream to close.

Expected:
Stopping playback from a client should not stop an active DVR recording.

Actual:
The server log shows the shared live stream consumer count dropping to 0, then Emby closes the live stream and logs "Recording stopped" for the active recording.

Relevant timeline from server log:
- 2026-06-10 17:30:04: recording starts
- 2026-06-10 18:54:26: Emby Xbox starts playback of the in-progress NBA Finals recording
- 2026-06-10 18:54:44: Emby Xbox stops playback; recording continues
- 2026-06-10 18:55:27: Emby Web / Edge Windows opens KOMO live stream
- 2026-06-10 18:55:28: Edge session reports playback stopped
- 2026-06-10 18:55:28: live stream consumer count goes to 0
- 2026-06-10 18:55:28: Emby closes the shared live stream
- 2026-06-10 18:55:28: Emby logs "Recording stopped" for the active NBA Finals recording
- 2026-06-10 19:00:11: Emby for iOS posts /LiveTv/Timers
- 2026-06-10 19:00:15: recording restarts as a new "-1.ts" file
- 2026-06-10 21:29:59: restarted recording stops normally at scheduled end

I do not see an "Error recording to..." message, tuner failure, or automatic retry at the time of the unexpected stop. This looks like the shared stream was closed because playback stopped, even though the recording should still have held a reference.

embyserver-63916732798.txt ffmpeg-directstream-20b80ad5-8990-413b-95dc-1b6ee34d5890_1.txt ffmpeg-transcode-39fa5729-f0fc-4a7c-b7bf-14d08ba241b9_1.txt

Edited by halter73
I wanted to include details about why I was using two clients in a short period.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...