# Playback Error This Live TV Session has Ended

**URL:** <https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280>\
**Category:** Live TV & DVR\
**Tags:** livetv-dvr, server-windows\
**Created:** [September 10, 2022, 11:13pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280 "2022-09-10T23:13:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![beergn0me](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@beergn0me](https://forums.plex.tv/u/beergn0me)\
**Post date:** [September 10, 2022, 11:13pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/1 "2022-09-10T23:13:20Z")

</div>

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](https://forums.plex.tv/uploads/short-url/mhVgptlSBOwfTcxOnWK9iBADwcx.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!

---

<div class="post-metadata">

**Author:** ![doofit](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@doofit](https://forums.plex.tv/u/doofit)\
**Post date:** [December 5, 2022, 7:25am UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/2 "2022-12-05T07:25:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TheGeorge2](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TheGeorge2](https://forums.plex.tv/u/TheGeorge2)\
**Post date:** [January 8, 2023, 12:10am UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/3 "2023-01-08T00:10:03Z")

</div>

This issue looks like a regression of: [Live TV keeps stopping - #50 by sa2000](https://forums.plex.tv/t/live-tv-keeps-stopping/755168/50) 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.

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 10, 2023, 1:16pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/4 "2023-01-10T13:16:56Z")

</div>

> [@TheGeorge2](#):
>
> This issue looks like a regression of: [Live TV keeps stopping - #50 by sa2000](https://forums.plex.tv/t/live-tv-keeps-stopping/755168/50) on desktop browsers.

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](https://app.plex.tv)

---

<div class="post-metadata">

**Author:** ![paulcwestern](https://avatars.discourse-cdn.com/v4/letter/p/958977/32.png) [@paulcwestern](https://forums.plex.tv/u/paulcwestern)\
**Post date:** [January 10, 2023, 11:23pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/6 "2023-01-10T23:23:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 12, 2023, 11:41am UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/7 "2023-01-12T11:41:47Z")

</div>

> [@paulcwestern](#):
>
> Does this also go for the Windows app

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

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 19, 2023, 8:47am UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/8 "2023-01-19T08:47:07Z")

</div>

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](https://app.plex.tv/desktop)

See release notice for Plex Web 4.99.2

> [@Plex Web](https://forums.plex.tv/t/plex-web/20528/409):
>
> 4.99.2 FIXED: Discover Together: Fix “New Activity” zIndex. Discover Together: Hide avatar when we share something with other users. Don’t show “Time to fill the blanks” get started card if Profile is filled. Fix live tv session stopped after a period of time. Fixed edge case in Library access modal when setting restriction settings. Search: Avoid reloading data on some pages when “More Ways to Watch” setting is toggled. Fixed an issue that could cause audio/subtitle streams to change during …

- 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

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 20, 2023, 9:04am UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/9 "2023-01-20T09:04:58Z")

</div>

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](https://forums.plex.tv/t/plex-for-mac-windows-and-linux/446435/81)

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

---

<div class="post-metadata">

**Author:** ![Fefepaille](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@Fefepaille](https://forums.plex.tv/u/Fefepaille)\
**Post date:** [January 20, 2023, 4:30pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/10 "2023-01-20T16:30:48Z")

</div>

> [@sa2000](#):
>
> 1.62.2

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](https://forums.plex.tv/uploads/short-url/8GdNkwp8MwIhBxuzRnEVytFy6FV.txt) (37.9 KB)

If you have any idea… Thanks a lot !

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 20, 2023, 5:17pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/11 "2023-01-20T17:17:01Z")

</div>

I will have a look on monday …. But will need logs from both sides - the debug [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) and the Plex app logs for corresponding period and indication of when the failure arose

---

<div class="post-metadata">

**Author:** ![Fefepaille](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@Fefepaille](https://forums.plex.tv/u/Fefepaille)\
**Post date:** [January 21, 2023, 9:34am UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/12 "2023-01-21T09:34:45Z")

</div>

Hi,  
Thanks for your help !

Reproduced at Jan 21, 2023 10:29  
[Plex Media Server Logs\_2023-01-21\_10-29-31.zip](https://forums.plex.tv/uploads/short-url/160C1mWefsaYFcJHlDUblHrZAMr.zip) (3.1 MB)  
[PlexForWindowsLogs.txt](https://forums.plex.tv/uploads/short-url/rBfDpNjVhpTcdPAnRMn6XmCKjXJ.txt) (139.9 KB)

Have a good weekend!  
FP

---

<div class="post-metadata">

**Author:** ![TheGeorge2](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@TheGeorge2](https://forums.plex.tv/u/TheGeorge2)\
**Post date:** [January 22, 2023, 12:03pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/13 "2023-01-22T12:03:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sixxnet](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sixxnet](https://forums.plex.tv/u/sixxnet)\
**Post date:** [January 22, 2023, 6:00pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/14 "2023-01-22T18:00:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Fefepaille](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@Fefepaille](https://forums.plex.tv/u/Fefepaille)\
**Post date:** [January 22, 2023, 7:41pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/15 "2023-01-22T19:41:40Z")

</div>

> [@sixxnet](#):
>
> AAC

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 ?

---

<div class="post-metadata">

**Author:** ![sixxnet](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sixxnet](https://forums.plex.tv/u/sixxnet)\
**Post date:** [January 22, 2023, 7:50pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/16 "2023-01-22T19:50:18Z")

</div>

-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.

---

<div class="post-metadata">

**Author:** ![Fefepaille](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@Fefepaille](https://forums.plex.tv/u/Fefepaille)\
**Post date:** [January 22, 2023, 7:52pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/17 "2023-01-22T19:52:47Z")

</div>

Nice ! It works !  
Thanks a lot !

---

<div class="post-metadata">

**Author:** ![sixxnet](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@sixxnet](https://forums.plex.tv/u/sixxnet)\
**Post date:** [January 22, 2023, 7:53pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/18 "2023-01-22T19:53:09Z")

</div>

I know it works! LOL.

No problem.

---

<div class="post-metadata">

**Author:** ![sa2000](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/sa2000/32/6922_2.png) [@sa2000](https://forums.plex.tv/u/sa2000)\
**Post date:** [January 24, 2023, 12:06pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/19 "2023-01-24T12:06:59Z")

</div>

> [@Fefepaille](#):
>
> thanks for your help !
> 
> Reproduced at Jan 21, 2023 10:29

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

```auto
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)

```

> [@sixxnet](#):
>
> 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

Thanks for the info and get round

> [@Fefepaille](#):
>
> Nice ! It works !

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](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) 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](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) 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

---

<div class="post-metadata">

**Author:** ![beergn0me](https://avatars.discourse-cdn.com/v4/letter/b/50afbb/32.png) [@beergn0me](https://forums.plex.tv/u/beergn0me)\
**Post date:** [February 17, 2023, 11:08pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/20 "2023-02-17T23:08:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [May 18, 2023, 11:08pm UTC](https://forums.plex.tv/t/playback-error-this-live-tv-session-has-ended/810280/21 "2023-05-18T23:08:28Z")

</div>

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