NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Extras v
« Previous 1 2 3 4 Next »
Plutotv stream failing

 
  • 0 Vote(s) - 0 Average
Plutotv stream failing
loveridgem
Offline

Junior Member

USA
Posts: 36
Threads: 6
Joined: Aug 2021
#1
2021-08-29, 12:28 AM (This post was last modified: 2021-08-29, 12:28 AM by loveridgem.)
Hi It's Mike again,

After I got locast working, I thought I'd give plutotv a try.  I believe it's file permission issues again.  I must admit there is a lot of confusion around users and groups.  NextPVR wants nextpvr:video as user:group and the setuid.  I got things working for locast and now plutotv has nextpvr:nextpvr..  I can't tell what's what anymore.

What does it all really need to be and I'll fix it?  It's also possible streamlink isn't getting picked up in the path.  What's a good command -line test for me to see what's failing?

Thanks much!
Mike
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#2
2021-08-29, 12:44 AM
Installing streamlink is beyond the scope of this extra, but apt might not include a current version so follow the instruction I linked to on the wiki. The permissions for the pluto folder are there too.

To check if streamlink is working if you aren't running headless (It uses mpv by default but I configured streamlink to use ffplay since it should be installed with the deb installer)

streamlink https://pluto.tv/live-tv/watchfree-mystery best

If you are headless you can create a file

streamlink https://pluto.tv/live-tv/watchfree-mystery best -O filename.ts

To see if streamlink is working for nextpvr prefix the test with sudo -u nextpvr

Martin
loveridgem
Offline

Junior Member

USA
Posts: 36
Threads: 6
Joined: Aug 2021
#3
2021-08-29, 06:36 PM
OK, so I've identified the problem and it is with streamlink. Even though I followed webupd8 added the ppa (sudo add-apt-repository ppa:nilarimogard/webupd8), the streamlink package is not in the ppa so it installs the outdated version from Ubuntu.

I realize this is outside of this NPVR forum, but I wanted to give you an update. I'm totally baffled because their own website shows how to install, but the app streamlink isn't in their own repository. I'll be working with them to understand what's going on.

You helped me identify the problem by giving me a CLI to run so I can see exactly where it goes awry.

Thanks,
Mike
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#4
2021-08-29, 06:51 PM
Did you try installing via pip3 or deb? That is how I do it inside sub's Docker.

Martin
loveridgem
Offline

Junior Member

USA
Posts: 36
Threads: 6
Joined: Aug 2021
#5
2021-08-29, 08:07 PM
OK, so I used pip3 to install and it put it in /usr/local/bin. The deb install is very old (ver 1.7 and should be 2.3 ). Streamlink didn't work because it looks like it was trying to find it in /usr/bin. I created a link in /usr/bin to the one in /usr/local/bin and your test works now.

I went into NPVR and deleted the device for pluto and removed the xml files relating to pluto and re-ran the pluto.py install. It all looks like it should work, but I still get a failed stream. Here is a snippet of my log file after its tried many times:
<map><stream_length>0</stream_length><stream_duration>0</stream_duration><live>true</live><complete>false</complete><files><file><filename>/video/nextpvr/buffer/live-Pluto TV Comedy-4429-2.ts</filename><offset>0</offset><start_ms>0</start_ms><end_ms>0</end_ms></file></files></map>
2021-08-29 12:50:32.001 [DEBUG][33] Renewed lease... (2E0002)
2021-08-29 12:50:32.001 [DEBUG][33] Renew lease ok (0x2E0002)
2021-08-29 12:50:32.002 [DEBUG][33] reached end of rolling file. Dropping connection...(2) (available=0 of=1316)

It looks like NPVR is not able to open the stream. I really thought I had it and it would go. I don't know why the test works and NPVR doesn't. I've likely got stuff out of sync now.

I've messed it up now. Is npvr.db3 in need of restoring and start over?

Thanks,
Mike
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#6
2021-08-29, 08:09 PM
Did you do the second test of streamlink with sudo -u nextpvr that I suggested?

None of this is in the database so that won't help.

Martin
loveridgem
Offline

Junior Member

USA
Posts: 36
Threads: 6
Joined: Aug 2021
#7
2021-08-29, 08:25 PM
I didn't. It doesn't work unless the -O filename.ts needs to be something else.

streamlink https://pluto.tv/live-tv/watchfree-mystery best -O filename.ts
usage: streamlink [OPTIONS] <URL> [STREAM]
streamlink: error: unrecognized arguments: filename.ts
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#8
2021-08-29, 08:29 PM
Your right it is -O > filename.ts sorry

Martin
loveridgem
Offline

Junior Member

USA
Posts: 36
Threads: 6
Joined: Aug 2021
#9
2021-08-29, 08:40 PM
Yes, that works and creates the .ts file. When I open that file it plays the video. Something inside npvr is not right.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,087
Threads: 957
Joined: May 2006
#10
2021-08-29, 08:48 PM
Let's see the logs, assuming your test really runs as nextpvr

sudo -u nextpvr streamlink https://pluto.tv/live-tv/watchfree-mystery best -O > /tmp/filename.ts

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PlutoTV VOD: empty list for categories starting with a single quote spagio 3 1,326 2024-06-23, 07:23 PM
Last Post: mvallevand
  PlutoTV Extra Commerical Exit freezing bisonfan 13 2,893 2023-12-16, 07:42 PM
Last Post: mvallevand
  PlutoTV freezing spagio 1 1,274 2023-11-10, 07:47 AM
Last Post: mvallevand
  PlutoTV on Docker install dinki 6 1,608 2023-10-11, 06:38 PM
Last Post: mvallevand
  Extra donation access -plutotv bisonfan 3 1,059 2023-09-04, 07:26 PM
Last Post: mvallevand
  PlutoTV Extra Problem Metroid 3 1,064 2023-07-23, 06:41 PM
Last Post: mvallevand
  Change Pluto default stream of "Best"? loveridgem 2 3,157 2021-10-29, 04:03 PM
Last Post: loveridgem
  Locast streaming and recordings failing Esteban 22 5,063 2021-09-01, 09:29 PM
Last Post: mvallevand
  Extra PlutoTV VOD returning error p37307 12 4,463 2021-08-11, 11:31 PM
Last Post: p37307

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

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

Linear Mode
Threaded Mode