xteve-project / xTeVe

M3U Proxy for Plex DVR and Emby Live TV
MIT License
1.79k stars 231 forks source link

Switching channels xTeVe says "No New Connections Available Tuners=1" #325

Open markosjal opened 2 years ago

markosjal commented 2 years ago

Please first read the documentation. Problems affecting the client, e.g. Plex or Emby should be reported there in the forum.

Describe the bug When switching channels on the same list xTeVe does not play the newly selected channel and says "No New Connections Available. Tuner=1" I have tuners set to 4

Server (please complete the following information):

To Reproduce Steps to reproduce the behavior (I am using with NextPVR and Kodi clients):

  1. Go to 'any xTeVeChannel'
  2. Click on 'any new xTeVe channel from the same playlist'
  3. KOdi client displays xTeVe Logo and unavailable message
  4. See error "No New Connections Available Tuners=1"
  5. Number of tuners is set to 4 ONce xTeve realizes the tuner (first channel) is no longer in use ""no Client is using this channel..." I can view (second channel) normally

Expected behavior I would expect to be able to switch from channel to channel when set to 4 tuners

Screenshots If applicable, add screenshots to help explain your problem.

Additional context

MCTyler commented 2 years ago

I suspect your Client is not properly disconnecting from the Stream. We have called this "Ghost Streams" and have plagued media players for years. (Such as Emby)

dslugPX commented 2 years ago

I have the same behavior and see a ton of threads, but no resolutions on places like reddit related to this issue.

The Xteve config XML is updated to X number of tuners,but no matter what, plex always thinks there is only one tuner available regardless of the number of connections you set in xteve.

And yes, that includes even if you delete and re-add xteve as a tuner in plex. Including restarting plex (or just for kicks xteve) in between each and every step in the process.

MCTyler commented 2 years ago

Yup, definitely a client issue, not xTeVe.

tuffcalc commented 1 year ago

@MCTyler - I believe you are wrong. I am seeing the same issue. 4 tuners are created in Plex. When playing a second stream I see the following in xTeVe:

2022/12/26 16:26:19 [xTeVe] Tuner (Plex / Emby): 4

-

2022/12/26 16:26:58 [xTeVe] Streaming Status: Playlist: M3U - No new connections available. Tuner = 1

... it is an issue with xTeVe. Even though I am configured properly for 4 tuners (as you can see from the readout above), xTeVe will only allow me to use one tuner.

tuffcalc commented 1 year ago

FYI - I was able to solve this by going into the settings.json file and changing the tuners manually. It now works fine.

There is a bug in the GUI when you change the tuners it doesn't actually update the json settings file.

MCTyler commented 1 year ago

Never experienced this issue, but we will keep an eye on it. Thanks!

B17C0D3 commented 1 year ago

FYI - I was able to solve this by going into the settings.json file and changing the tuners manually. It now works fine. There is a bug in the GUI when you change the tuners it doesn't actually update the json settings file.

I think the problem is, the webui ich changing somthing like a global Tuner setting. Ant there is another Tuner setting for the sourrce playlist which is unchanged. after incriesing the Tuner setting in the playlist/file block, it works

edit: just found out, you can edit the playlist tuner setting in the webui too I think some users dont know about this or forget it

MCTyler commented 1 year ago

Number of Tuners only work if the buffer is enabled.

walidjami commented 1 year ago

FYI - I was able to solve this by going into the settings.json file and changing the tuners manually. It now works fine. There is a bug in the GUI when you change the tuners it doesn't actually update the json settings file.

I think the problem is, the webui ich changing somthing like a global Tuner setting. Ant there is another Tuner setting for the sourrce playlist which is unchanged. after incriesing the Tuner setting in the playlist/file block, it works

edit: just found out, you can edit the playlist tuner setting in the webui too I think some users dont know about this or forget it

This solved my issue for me, never realized there were multiple places where it needed to be changed.