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

 
  • 0 Vote(s) - 0 Average
Pluto TV.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 36,354
Threads: 723
Joined: May 2006
#1
2020-12-23, 02:17 AM (This post was last modified: 2020-12-26, 04:59 PM by mvallevand.)
Pluto TV is an interesting service that can add 100's of stations to your NextPVR collection.   Check here to see what is in your country if that interests you can try it out as follows

Steps to install

1.  Download and install Streamlink from https://streamlink.github.io/install.html for your platform ensuring you install for all users.  Windows users will also need to copy  "C:\Program Files (x86)\Streamlink\ffmpeg\ffmpeg.exe" to "C:\Program Files (x86)\Streamlink\bin"

2. Install python following these steps https://github.com/sub3/NextPVR/wiki/install-python

3.  Install the require python modules as Adminstrator

pip install lxml requests m3u8

or when not using Windows

sudo pip3 install lxml requests m3u8

4. After installing applications in 2 and 3 you will need to restart the NextPVR server to get the upgraded PATH

5. Download the attached into the scripts sub folder  of the NextPVR data directory.

6. From there unzip the file which should create a new folder in scripts called plutotv

At this stage I recommend backing up npvr.db3 since you could get more channels then you expect.

7. Change to scripts/plutotv and then run 

python pluto.py install 

or on non Windows

sudo python3 pluto.py install 

I would update the EPG at the end but if you are using  OTA update you may want to wait for later to save time.

8. Pluto TV should be installed and ready to used.

Follow the steps in Post Installation and enjoy.

Martin


Attached Files
.zip   plutotv.zip (Size: 7.8 KB / Downloads: 24)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 36,354
Threads: 723
Joined: May 2006
#2
2020-12-23, 02:24 AM (This post was last modified: 2020-12-24, 10:14 PM by mvallevand.)
1. If you followed the steps  in post #1 you will have lots of channels.  I would review the channels in the various NextPVR Groups that were create and see which Groups interest you then in the file  scripts/pluto/pluto-filter.lst

Change All=no and set all the groups you don't want to no as well.

2.  Pluto TV uses standard XMLTV updating in NextPVR

Windows

In your UpdateEPG.bat

python C:\Users\Public\NPVR-data\scripts\plutotv\pluto.py xmltv

In linux that is

UpdateEPG.sh file 

python3  /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv

Martin
2leftfeet
Offline

Senior Member

Posts: 487
Threads: 48
Joined: Jan 2015
#3
2020-12-24, 10:12 PM
(2020-12-23, 02:24 AM)mvallevand Wrote: 1. If you followed the steps  in post #1 you will have lots of channels.  I would review the channels in the various NextPVR Groups that were create and see which Groups interest you then in the file  scripts/pluto/pluto-filter.lst

Change All=no and set all the groups you don't want to no as well.

2.  Pluto TV uses standard XMLTV updating in NextPVR

Windows

In your UpdateEPG.bat

python C:\Users\Public\NPVR-data\scripts\plutotv\pluto.py xmltv   <---- shouldn't it be this?

In linux that is

UpdateEPG.sh file 

python3  /var/opt/nextpvr/scripts/plutotv/pluto.py xmltv   <----

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 36,354
Threads: 723
Joined: May 2006
#4
2020-12-24, 10:15 PM
Sorry yes thanks, it should. I've updated the original post.

Martin.
2leftfeet
Offline

Senior Member

Posts: 487
Threads: 48
Joined: Jan 2015
#5
2020-12-24, 10:40 PM
Martin,  I went through the steps on my test server (including setting the filter list to news only), updated the EPG - all good to this point.  But when trying to watch, I am getting "Failed to start requested stream" messages.


Attached Files
.zip   logs-20201224-1737.zip (Size: 166.27 KB / Downloads: 1)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 36,354
Threads: 723
Joined: May 2006
#6
2020-12-24, 10:52 PM
What if you run

streamlink https://pluto.tv/live-tv/cnn best -O | "C:\Program Files\NextPVR\Other\ffplay.exe" -i pipe:

If that works did you copy ffmpeg as shown in the instruction?

Martin
2leftfeet
Offline

Senior Member

Posts: 487
Threads: 48
Joined: Jan 2015
#7
2020-12-24, 11:54 PM
OK, I did mess up.  I read the instructions earlier and saw that I had to install streamlink, but when I actually did the install, I jumped over the part where I was supposed to install streamlink - big mistake on my part. 

subsequently, I now have installed streamlink and copied the ffmpeg file.  when trying to play a channel from a nextpvr web client, I am now getting "streaming failed, transcoding exited" messages. Although when running the command you suggest from the server, it does play but with the following error messages in the command window:  (although the error relates to missing audio devices, which would be expected since there is no audio because I am running a headless server.)

C:\Users\darry>streamlink https://pluto.tv/live-tv/cnn best -O | "C:\Program Files\NextPVR\Other\ffplay.exe" -i pipe:
ffplay version 4.2.2 Copyright © 2003-2019 the FFmpeg developers
  built with gcc 9.2.1 (GCC) 20200122
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
  libavutil      56. 31.100 / 56. 31.100
  libavcodec    58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter    7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample  3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[cli][info] Found matching plugin pluto for URL https://pluto.tv/live-tv/cnn
[cli][info] Available streams: 572k (worst), 997k, 1539k, 2142k, 3063k (best)
[cli][info] Opening stream: 3063k (muxed-stream)
Input #0, mpegts, from 'pipe:':    0KB vq=    0KB sq=    0B f=0/0
  Duration: N/A, start: 1.466667, bitrate: N/A
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 91 kb/s
SDL_OpenAudio (2 channels, 48000 Hz): WASAPI can't find requested audio endpoint: Element not found.

SDL_OpenAudio (1 channels, 48000 Hz): WASAPI can't find requested audio endpoint: Element not found.

SDL_OpenAudio (2 channels, 44100 Hz): WASAPI can't find requested audio endpoint: Element not found.

SDL_OpenAudio (1 channels, 44100 Hz): WASAPI can't find requested audio endpoint: Element not found.

No more combinations to try, audio open failed
  13.30 M-V: -0.026 fd=  4 aq=    0KB vq=  253KB sq=    0B f=0/0
error: Error when writing to output: [Errno 32] Broken pipe, exiting
[cli][info] Stream ended
[cli][info] Closing currently open stream...
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp1252'>
OSError: [Errno 22] Invalid argument


Attached Files
.zip   logs-20201224-1851.zip (Size: 365.83 KB / Downloads: 1)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 36,354
Threads: 723
Joined: May 2006
#8
2020-12-25, 12:06 AM
Did you install for all users?

Martin
2leftfeet
Offline

Senior Member

Posts: 487
Threads: 48
Joined: Jan 2015
#9
2020-12-25, 12:09 AM
yes
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 36,354
Threads: 723
Joined: May 2006
#10
2020-12-25, 01:19 AM
You may have to restart the server to get the new PATH.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): 1 2 3 4 5 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Alternate Pluto TV extra. mvallevand 2 182 2020-12-29, 07:50 PM
Last Post: mvallevand
  A couple of questions on Pluto TV mvallevand 4 162 2020-12-28, 02:29 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode