Playback Error This Live TV Session has Ended

Server Version#: 1.28.2.6151
Player Version#: 4.87.2
Tuner Make/Model: hauppauge wintv-dualhd
Guide/Lineup name:
Using XMLTV?:
Channel number/Name:

Plex Media Server Logs_2022-09-10_18-00-25.zip (3.0 MB)

I get this error when tunning into some channels. The channels work fine if I try a different PVR software. It doesn’t seem to matter what device I’m watching from either. It’s not always the same channels either. A while back I tried it and CBS and FOX wouldn’t work, not today those are fine but PBS doesn’t work. I’m running the Plex server on my home PC and I’m not seeing any resource issues, CPU and GPU go up to around 25% when watching live TV. Any help would be greatly appreciated!

I also get this error, but only in the Plex client for desktop computers (Fedora Linux).
Stream works fine in the web app, also on Android devices including FireTV.

This issue looks like a regression of: Live TV keeps stopping - #50 by sa2000 on desktop browsers.

Also have “Use alternate streaming protocol for video playback” disabled (which was the workaround discussed in above thread), and I can reliably get a ‘ended tv session’ within 2 minutes.

Logs show ‘idle subscription’, and the dashboard doesn’t detect the live tv session. On android app all works fine.

I have tested a fix last week to Plex Web that should get released soon - it will initially be in the hosted app https://app.plex.tv

1 Like

Does this also go for the Windows app? Currently using the latest version, 1.60.1.3413-533a7645, but get the same error message as the title. This applies to all channels; but plays perfectly on my iOS devices.

The fix is coming out in Plex Web 4.99
The Plex Desktop app will be updated to use that

1 Like

We have a fix for the issue of DVR Live TV streaming failing sometime after start

The fix is in Plex Web and initially is available in the hosted Plex Web that is on https://app.plex.tv/desktop

See release notice for Plex Web 4.99.2

  • Fix live tv session stopped after a period of time.

The fix will get included in the Plex Desktop app sometime soon and will eventually also be included in the Plex Web app bundled within Plex Media Server

The fix has now been released for the Plex for Desktop app in version 1.62.2

See Plex for Mac, Windows, and Linux - #81 by Moussa

  • Fix live tv session stopped after a period of time.

Hello there,
It seems that I’ve got a similar issue with the Plex for Windows app (even 1.62.2.3451)
I can see my IPTV [passing by xTeve] on the Chrome Webapp, but the Windows app is popping this error :

Playback Error / This live TV session has ended

Here are logs from the app concerning the issue :
PFWLogs.txt (37.9 KB)

If you have any idea… Thanks a lot !

I will have a look on monday …. But will need logs from both sides - the debug server logs and the Plex app logs for corresponding period and indication of when the failure arose

Hi,
Thanks for your help !

Reproduced at Jan 21, 2023 10:29
Plex Media Server Logs_2023-01-21_10-29-31.zip (3.1 MB)
PlexForWindowsLogs.txt (139.9 KB)

Have a good weekend!
FP

Confirming that on my end this issue is resolved.
Thank you for the support!

It’s most likely because your Live TV stream has AAC audio which the Windows client does NOT like for Live TV streams. Other platforms will work though.

Otherwise transcode your audio stream to AC3 via ffmpeg buffer inside xTeVe.

1 Like

Hi,
Thanks a lot for your support.

I’m trying to configure alturismo/xteve for that, but i’m stuck with the field :

FFmpeg Options: -hide_banner -loglevel error -i [URL] -c copy -f mpegts pipe:1

And not sure for the Buffer Size.

Do you have any recommendations for the xTeve config ?

-hide_banner -loglevel quiet -i [URL] -f lavfi -i anullsrc -c:v copy -c:a ac3 -b:a 640k -ac 6 -c:s copy -shortest -f mpegts pipe:1

Set buffer size to whatever you like.

2 Likes

Nice ! It works !
Thanks a lot !

I know it works! LOL.

No problem.

I can see the transcoder failing with Error parsing AAC extradata, unable to determine samplerate.

Jan 21, 2023 10:29:13.824 [0x14e84eb2db38] ERROR - [Req#2a671/Transcode/u52l6czu02eimct6vn3978xa/c39d36cc-54ac-4e4d-a53d-ea044c6899e7] [matroska @ 0x14a8d32873c0] Error parsing AAC extradata, unable to determine samplerate.
Jan 21, 2023 10:29:13.824 [0x14e84f02cb38] ERROR - [Req#2a672/Transcode/u52l6czu02eimct6vn3978xa/c39d36cc-54ac-4e4d-a53d-ea044c6899e7] av_interleaved_write_frame(): Invalid argument
Jan 21, 2023 10:29:13.825 [0x14e85098ab38] ERROR - [Req#2a673/Transcode/u52l6czu02eimct6vn3978xa/c39d36cc-54ac-4e4d-a53d-ea044c6899e7] Error writing trailer of chunk-%05d: Invalid argument
Jan 21, 2023 10:29:13.826 [0x14e857ff9b38] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 20358 is 1 (failure)

Thanks for the info and get round

I would like to get diagnostics for this so I can pass it to the development team

We introduced some diagnostic server settings to capture the stream and also retain the transcoder session files - if you can find time to revert the change and run with these settings and provide me with zip of all the transcoder session directories for the test and server logs zip and time of failure, that would be good

The server diagnostic preferences for the capture are these (to be added to the PMS Preferences.xml file)

TranscoderPersistSessionDirs Set the value to 1
TranscoderInputTracing Set the value to 1
TranscoderPruneBuffer Set the value to 0
TranscoderLivePruneBuffer Set the value to 0

When you add these settings, launch the server and just do one test and then capture the diagnostics - debug server logs and zip of the Transcode/Session directory

And then shutdown PMS, remove these preferences or flip them round (changing 1 to 0 and 0 to 1 to disable)

Thanks

It seems to be working now for me as well, thanks all!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.