NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 29 30 31 32 33 34 Next »
One Stream at a Time?

 
  • 0 Vote(s) - 0 Average
One Stream at a Time?
crackulator
Offline

Member

Posts: 131
Threads: 22
Joined: Nov 2014
#1
2019-10-09, 07:21 AM
Ubuntu client, 5.0.0.191007 and HDHomeRun, I can only run one live stream at a time.

Clients are Linux/NextPVR/Knewc and Chrome/NPVR Android Addon. I can run a live stream on either one alone, but when I try to run both, when I start the second, everything looks fine but video doesn't play. I can play one live channel and one recording, but not two live channels. Doesn't seem to matter if it's the same channel or different channels.

Log attached.


Attached Files
.zip   logs-20191009-0019.zip (Size: 400.68 KB / Downloads: 1)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#2
2019-10-09, 12:32 PM
Going by the logs it looks like you left the browser on a failed play on 192.168.254.55 (the same PC running knewc) when you restarted the server which causes all kinds of transcode.status message error to be logged to a default sid and weird behaviour. You need to shut down that browser session and try your test again.

I meant to write that up for sub, it happens enough to be annoying. You don't have the start of the error in your 4 logs.

Martin
crackulator
Offline

Member

Posts: 131
Threads: 22
Joined: Nov 2014
#3
2019-10-09, 04:49 PM
I will rerun it tonight and update.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2019-10-09, 07:12 PM
(2019-10-09, 07:21 AM)TheFritz Wrote: Ubuntu client, 5.0.0.191007 and HDHomeRun, I can only run one live stream at a time.
The web app currently only gives one stream per session. If you open a second tab, it's still the same session (so starting playback in the second tab will stop the first). You can open an incognito/private browser to login again and get a second session. Or use a second machine, or a different type of client etc.
crackulator
Offline

Member

Posts: 131
Threads: 22
Joined: Nov 2014
#5
2019-10-10, 12:02 PM
Attached is a new log of the same condition, but after closing the hung browser tab noted above.

Neither of the clients I'm using (intentionally) are in the browser, they are Chrome/NPVR and Linux/Kodi/Knewc, on two different machines, both separate from the server. Though Knewc might look like a web session to the server, I dunno.

I also tried it with two Linux/Kodi/Knewc's on the same machine (but different from the server), same result.


Attached Files
.zip   logs-20191010-0456.zip (Size: 394.13 KB / Downloads: 2)
crackulator
Offline

Member

Posts: 131
Threads: 22
Joined: Nov 2014
#6
2019-10-10, 12:20 PM
I just did the same test with the Kodi NextPVR PVR addon, same result. Both kodis running on same Linux machine.

I can stream on either instance, but if one is streaming and I try the other, I get no video.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#7
2019-10-10, 12:57 PM (This post was last modified: 2019-10-10, 01:02 PM by mvallevand.)
Did you try a test from two different tuners?  I know that multirec is not working very well for me in v5 yet.   

Also since the one test you showed was IPTV the issue might be trying related to how many instances you allow for that provider or how sub uses the client parameter for IPTV

Code:
2019-10-10 04:56:13.200    [DEBUG][18]    /live?channel=6&client=sdl-KNEW50x782bcbacacf4&sid=3e241a74338a4a8caff43f59955106de
...
2019-10-10 04:56:13.223    [DEBUG][18]    checking: IPTV (http://...)
2019-10-10 04:56:13.223    [DEBUG][18]    enabled and present
2019-10-10 04:56:13.223    [DEBUG][18]    has channel
2019-10-10 04:56:13.228    [DEBUG][18]    live tv is not possible
...
2019-10-10 04:56:13.228    [DEBUG][18]    Handle: 0
2019-10-10 04:56:13.228    [DEBUG][18]    Failed to start stream. Handle 0.

The issue with the browser was a Firefox user agent.

2019-10-10 04:50:12.620 [DEBUG][6]   user_agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

The unique client ID for knewc is the MAC address so two instances on the same machine will not be unique.  In theory this would mean the second attempt would close  playback on the first client. It may also cause problems because there are two SIDs for one client ID.

Martin
crackulator
Offline

Member

Posts: 131
Threads: 22
Joined: Nov 2014
#8
2019-10-10, 09:02 PM
All these tests are all on the 3-tuner HDHomeRun.

There should have been no IPTV involved. The only IPTV in the system is on the v5 server, it has an IPTV virtual device by default, but I've never tried to use it, and it has no channels. Seems like the client query would probably query that and find nothing, but it shouldn't try to stream it. ??

What's wrong with the Firefox user agent?

Sounds like the issue of simultaneous streaming is complicated, some scenarios should work and some not... not sure about the ones I presented, seems like most of them should. I'd like to stream two knewc's on one Linux client, so would be disappointed if that is not possible.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,112
Threads: 957
Joined: May 2006
#9
2019-10-10, 09:20 PM (This post was last modified: 2019-10-10, 09:33 PM by mvallevand.)
(2019-10-10, 09:02 PM)TheFritz Wrote: All these tests are all on the 3-tuner HDHomeRun.

There should have been no IPTV involved. The only IPTV in the system is on the v5 server, it has an IPTV virtual device by default, but I've never tried to use it, and it has no channels. Seems like the client query would probably query that and find nothing, but it shouldn't try to stream it. ??

What's wrong with the Firefox user agent?

Sounds like the issue of simultaneous streaming is complicated, some scenarios should work and some not... not sure about the ones I presented, seems like most of them should. I'd like to stream two knewc's on one Linux client, so would be disappointed if that is not possible.
Must be the way v5 logs, it looked like IPTV to me and I didn't see an HDHR playback attempt.

Code:
2019-10-10 04:56:13.223 [DEBUG][18] checking: IPTV (http://...)
2019-10-10 04:56:13.223 [DEBUG][18] enabled and present
2019-10-10 04:56:13.223 [DEBUG][18] has channel
2019-10-10 04:56:13.228 [DEBUG][18] live tv is not possible

There is nothing wrong with FF user agent, I was just saying that is what is logged and why I said it was a browser playback error nothing to do with knewc or Android.  From Kodi it would be Kodi or python in the user agent.

I regularly test streaming multiple streams using the /live?channel= API without issues so it should be possible (at least when not transcoding)  Here are my three tuners

Martin
crackulator
Offline

Member

Posts: 131
Threads: 22
Joined: Nov 2014
#10
2019-10-10, 10:37 PM
The second log (in message #5) shouldn't have any browser activity (at least, unless I forgot a tab somewhere). The two clients are Chrome/Android NPVR on a laptop and Linux/Kodi/Knewc on a desktop (both different from the server). This seems like a case that we expect to work.

The other two cases I reported look like the same error, but they might be explained by appearing to be the same session, because they were both the same client software on the same machine (one was Knewc/Knewc, one was Kodi-NextPVR/Kodi-NextPVR, on the same Linux machine). In any case none of them exhibited the described intended behavior (old stream stops and new one starts), the newer instance just didn't work, without any apparent explanation.

This seems like a less common use-case but for myself, I would like "the Linux box running multiple instances of kodi with knewc" to work.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to add a DirecTV Stream lineup in the guide? TheRealRoland 1 110 2025-06-24, 07:44 AM
Last Post: mvallevand
  Live stream not working while recording pciber 6 1,089 2024-06-10, 07:48 AM
Last Post: pciber
  EGP Docker time off jrockow 2 634 2024-04-01, 01:43 PM
Last Post: jrockow
  Time scheduled radio recording? WagMan 8 1,271 2024-01-13, 05:34 PM
Last Post: mvallevand
  Failed to start requested stream satforall 50 5,746 2023-12-27, 04:04 PM
Last Post: mvallevand
  Sometimes stream fails VCR58 5 927 2023-07-15, 12:45 AM
Last Post: mvallevand
  During recording, time remaining is extremely large thool 8 1,348 2022-11-19, 07:19 PM
Last Post: thool
  IPTV Stream 404 from NextPVR unless user-agent is changed bphillips09 4 1,645 2022-10-12, 05:19 AM
Last Post: bphillips09
  v5.0.5 not recording: failed to start stream rkulagow 40 10,696 2022-08-08, 04:54 PM
Last Post: mvallevand
  Maybe I broke NextPVR but... Failed to start stream is happening Armsp0 7 1,596 2022-02-24, 07:17 PM
Last Post: Armsp0

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode