Page 1 of 1

Navi-X PLX Parser - RELEASED

PostPosted: Sun Apr 12, 2015 7:27 pm
by TechWhizZ199
RELEASED - In Available plugins section

Introductory message:

Hey,

I was wondering if it would be possible to create a plugin which could parse plx files from the internet. This would mean we can watch Navi-X streams. E.g. http://www.navixtreme.com/playlist/1509 ... hd.tv_.plx

That is a plx file, if we could get the rtmp urls and names of streams and play it with serviio it would be useful, a plugin could work like this:

• Use the link to parse the latest .plx file at that url
• Get all the stream names
• Get the rtmp urls from the text
• Set these as livestreams in Serviio

I believe this could be easier than other plugins since .plx files can be just treated as .txt files in essence. So maybe could someone make a plugin?

Re: PLX Parser?

PostPosted: Sat Apr 18, 2015 12:27 pm
by tuareg64ve
Interesting idea.
It should not be so complex. The URL is already in the page.
I do not know so much of Groovy, but I would like to try to write my first plugin and get more experience.
One question: have you tried to add manually the URLs ?
I have tried with a couple of them but I get the following error:

Re: PLX Parser?

PostPosted: Sat Apr 18, 2015 2:29 pm
by TechWhizZ199
tuareg64ve wrote:Interesting idea.
It should not be so complex. The URL is already in the page.
I do not know so much of Groovy, but I would like to try to write my first plugin and get more experience.
One question: have you tried to add manually the URLs ?
I have tried with a couple of them but I get the following error:


Possibly it requires a token, maybe it could be since the actual site requires a membership (login) so the stream blocks out any normal user from accessing the stream.

Re: PLX Parser?

PostPosted: Sat Apr 18, 2015 8:27 pm
by tuareg64ve
Do you mean access to w11.vmnode.pw ?

Re: PLX Parser?

PostPosted: Fri May 01, 2015 2:59 am
by TechWhizZ199
tuareg64ve wrote:Do you mean access to w11.vmnode.pw ?


Yes, it might be that access could be denied when trying to play it back. Anyhow, if someone could make a PLX parser, it would make serviio a lot better.

Re: Navi-X PLX Parser

PostPosted: Thu May 21, 2015 7:38 pm
by TechWhizZ199
Hello guys,

Since no-one has decided to make a PLX Parser I have decided to try and make one myself and see how far I can get.

So since I have some knowledge in python my intention is to download the plx file and get the rtmp links on their own and either put them into a RSS file or another file which could be played back by Serviio.

I am not sure if I will finish this, though I will see.

I have two questions to anyone who knows about the capabilites of serviio, is it possible to run python with it and does RSS files still work?

Tech

Re: Navi-X PLX Parser

PostPosted: Thu May 21, 2015 8:31 pm
by tuareg64ve
I have two questions to anyone who knows about the capabilites of serviio, is it possible to run python with it and does RSS files still work?


Interesting question, I would also be interested to run Python with Serviio...
But I gues the answer is no
There might be some other post where they say the scripting language is Groovy...
I hope someone may clarify better...

Re: Navi-X PLX Parser

PostPosted: Thu May 21, 2015 9:34 pm
by TechWhizZ199
I know that the language is Groovy.

I think I will try to convert the links and then place them into rss format.

The links are put into a text file:

URL=https://dl.dropboxusercontent.com/s/9n106bmhlbc56ct/soccerpublic.plx

URL=rtmp://w3.vmnode.pw:1935/live playpath=elite2 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite43.php live=1 timeout=10

URL=rtmp://w14.vmnode.pw:1935/live playpath=elite1 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite1.php live=1 timeout=10

URL=rtmp://104.250.102.68:1935/live playpath=nbcsn swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/nbcsn1.php live=1 timeout=10

URL=rtmp://w10.vmnode.pw:1935/live playpath=elite50 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite50.php live=1 timeout=10

URL=rtmp://w10.vmnode.pw:1935/live playpath=elite50 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite50.php live=1 timeout=10

URL=rtmp://w8.vmnode.pw:1935/live playpath=elite29 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite29.php live=1 timeout=10

URL=rtmp://w7.vmnode.pw:1935/live playpath=elite27 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite27.php live=1 timeout=10

URL=rtmp://5.79.75.129:2195/live3/channel15a playpath=channel15a swfUrl=http://supremecater.com/player/src.swf token=Lvg4zyLafHmbd3Yt pageurl=http://www.plus1hd.com/forums/live_stream.php?cid=15&nid=e1 live=true timeout=10

That is the contents of the file, I just need to split the 'URL=" and the rtmp part of each link and put them into list and place these lists into a rss file, then play them back with Serviio.

If you are wondering, those links actually work, they play some Sky Sports streams.

Tech

Re: Navi-X PLX Parser

PostPosted: Thu May 21, 2015 9:42 pm
by tuareg64ve
Good idea.
Let me know your progress.

Re: Navi-X PLX Parser

PostPosted: Fri May 22, 2015 7:54 am
by TechWhizZ199
tuareg64ve wrote:Good idea.
Let me know your progress.


I will, thanks, it would be helpful if you could ask if anyone knows whether RSS still works. I'm assuming it does since the option for rss feed for adding online sources hasn't been removed, maybe the plugin is not working now.

Re: Navi-X PLX Parser - ALPHA

PostPosted: Fri May 22, 2015 6:15 pm
by TechWhizZ199
I have just figured out that RSS works only with revisions of Serviio before 1.5, so if this plugin is made it can only work with 1.4 versions of Serviio and with the LiveFeeds groovy plugin as well.

Re: Navi-X PLX Parser - ALPHA

PostPosted: Sat May 23, 2015 1:00 pm
by TechWhizZ199
I think I know how far I can get with RSS feeds:

• Its possible to convert the PLX file into a RSS feed using python
• Though there is currently no way for serviio to play RSS files locally, it only allows ones from the internet, this would be pointless since it would mean the user uploading the RSS file and it would not save time anyway.

I might try to see if I can convert the PLX into other formats instead, such as M3U or XML.

Re: Navi-X PLX Parser - ALPHA

PostPosted: Sat May 23, 2015 2:45 pm
by TechWhizZ199
An update:

So I have tried to see if it is possible to use other formats of files to parse and play the PLX files. It seems that M3U works.

So this is how this will work: I will make sure that the rtmp's are placed into a M3U playlist. Users will have to add the source manually (the playlist.groovy plugin will be used for this), though the plugin is a python script which will start automatically when the computer starts so it will fetch a new playlist every time. In case the computer is never turned off, it is possible for the script to fetch new links every 4-7 hours, or how many the user wants it to.

To simplify it, the parser is composed of these files (eventually):

• Navi-X PLX Parser.py - the python script to fetch and place the links into the M3U playlist
• Navi-X.m3u - an EXTM3U playlist which will hold the streaming rtmp links
• Playlist.groovy - playlist plugin which will allows the M3U to be seen and parsed by the Serviio server.

I expect this to run on both Windows and MacOSX when it is released. When it is released depends on when I have time, I am busy at the moment but I am just telling you that everyone will be able to use Navi-xtreme playlists or other PLX playlists to watch live streams and shows/movies. :)

Tech

Re: Navi-X PLX Parser - ALPHA

PostPosted: Sun May 24, 2015 7:26 pm
by tuareg64ve
TechWhizZ199 wrote:An update:

So I have tried to see if it is possible to use other formats of files to parse and play the PLX files. It seems that M3U works.

So this is how this will work: I will make sure that the rtmp's are placed into a M3U playlist. Users will have to add the source manually (the playlist.groovy plugin will be used for this), though the plugin is a python script which will start automatically when the computer starts so it will fetch a new playlist every time. In case the computer is never turned off, it is possible for the script to fetch new links every 4-7 hours, or how many the user wants it to.

To simplify it, the parser is composed of these files (eventually):

• Navi-X PLX Parser.py - the python script to fetch and place the links into the M3U playlist
• Navi-X.m3u - an EXTM3U playlist which will hold the streaming rtmp links
• Playlist.groovy - playlist plugin which will allows the M3U to be seen and parsed by the Serviio server.

I expect this to run on both Windows and MacOSX when it is released. When it is released depends on when I have time, I am busy at the moment but I am just telling you that everyone will be able to use Navi-xtreme playlists or other PLX playlists to watch live streams and shows/movies. :)

Tech


do you need a subscription to watch the streams?
because for the following:

  Code:
# 2456790
type=video
name=***Stolen Streams*** Various Sports Mix 3
date=2015-05-10
URL=rtmp://w10.vmnode.pw:1935/live playpath=elite50 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite50.php live=1 timeout=10
player=default
rating=-1.00


I still get the following:

  Code:
[root@nas serviio]# ffmpeg -analyzeduration 10000000 -v verbose -i rtmp://w10.vmnode.pw:1935/live playpath=elite50 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite50.php
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Parsing...
Parsed protocol: 0
Parsed host    : w10.vmnode.pw
Parsed app     : live
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer   : 03
HandShake: Server Uptime : 895927458
HandShake: FMS Version   : 5.0.1.1
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
Invoking connect
HandleServerBW: server BW = 2500000
HandleClientBW: client BW = 2500000 2
HandleChangeChunkSize, received: chunk size change to 4096
RTMP_ClientPacket, received: invoke 126 bytes
(object begin)
Property: <Name:           no-name., STRING:   _error>
Property: <Name:           no-name., NUMBER:   1.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING:   error>
Property: <Name:               code, STRING:   NetConnection.Connect.Rejected>
Property: <Name:        description, STRING:   Connection failed.>
Property: <Name:        application, BOOLEAN:   FALSE>
(object end)
(object end)
HandleInvoke, server invoking <_error>
rtmp server sent error
RTMP_ClientPacket, received: invoke 18 bytes
(object begin)
Property: <Name:           no-name., STRING:   close>
Property: <Name:           no-name., NUMBER:   0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <close>
rtmp server requested close
rtmp://w10.vmnode.pw:1935/live: Unknown error occurred
[root@nas serviio]#

Re: Navi-X PLX Parser - ALPHA

PostPosted: Mon May 25, 2015 5:48 pm
by TechWhizZ199
tuareg64ve wrote:
TechWhizZ199 wrote:An update:

So I have tried to see if it is possible to use other formats of files to parse and play the PLX files. It seems that M3U works.

So this is how this will work: I will make sure that the rtmp's are placed into a M3U playlist. Users will have to add the source manually (the playlist.groovy plugin will be used for this), though the plugin is a python script which will start automatically when the computer starts so it will fetch a new playlist every time. In case the computer is never turned off, it is possible for the script to fetch new links every 4-7 hours, or how many the user wants it to.

To simplify it, the parser is composed of these files (eventually):

• Navi-X PLX Parser.py - the python script to fetch and place the links into the M3U playlist
• Navi-X.m3u - an EXTM3U playlist which will hold the streaming rtmp links
• Playlist.groovy - playlist plugin which will allows the M3U to be seen and parsed by the Serviio server.

I expect this to run on both Windows and MacOSX when it is released. When it is released depends on when I have time, I am busy at the moment but I am just telling you that everyone will be able to use Navi-xtreme playlists or other PLX playlists to watch live streams and shows/movies. :)

Tech


do you need a subscription to watch the streams?
because for the following:

  Code:
# 2456790
type=video
name=***Stolen Streams*** Various Sports Mix 3
date=2015-05-10
URL=rtmp://w10.vmnode.pw:1935/live playpath=elite50 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite50.php live=1 timeout=10
player=default
rating=-1.00


I still get the following:

  Code:
[root@nas serviio]# ffmpeg -analyzeduration 10000000 -v verbose -i rtmp://w10.vmnode.pw:1935/live playpath=elite50 swfUrl=http://skyaccess.se/vb/jwplayer/player-licensed.swf pageUrl=http://nodetower.com/7-SFE-SZE-HOSTACCESS/media/elite50.php
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Parsing...
Parsed protocol: 0
Parsed host    : w10.vmnode.pw
Parsed app     : live
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer   : 03
HandShake: Server Uptime : 895927458
HandShake: FMS Version   : 5.0.1.1
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
Invoking connect
HandleServerBW: server BW = 2500000
HandleClientBW: client BW = 2500000 2
HandleChangeChunkSize, received: chunk size change to 4096
RTMP_ClientPacket, received: invoke 126 bytes
(object begin)
Property: <Name:           no-name., STRING:   _error>
Property: <Name:           no-name., NUMBER:   1.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING:   error>
Property: <Name:               code, STRING:   NetConnection.Connect.Rejected>
Property: <Name:        description, STRING:   Connection failed.>
Property: <Name:        application, BOOLEAN:   FALSE>
(object end)
(object end)
HandleInvoke, server invoking <_error>
rtmp server sent error
RTMP_ClientPacket, received: invoke 18 bytes
(object begin)
Property: <Name:           no-name., STRING:   close>
Property: <Name:           no-name., NUMBER:   0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <close>
rtmp server requested close
rtmp://w10.vmnode.pw:1935/live: Unknown error occurred
[root@nas serviio]#


A guess would be the fact that it is only parsing the first section of the stream not the playpath, swfurl or pageurl. Also no, you do not need a subscription to watch these streams, however just be aware that some of the streams do not play.

Re: Navi-X PLX Parser - BETA (Testing)

PostPosted: Tue May 26, 2015 3:00 pm
by TechWhizZ199
UPDATE:

The first version of this PLX parser is in testing. The script has been finished and currently the script will fetch the links for the playlist we specify, in the future I will add a refresh mode and a way to set more than one playlist so multiple playlist show as one when selecting the stream you want to show on your renderer.

The script is best used if it is set to start on boot up.

It will be released shortly on the available plugins thread.

Tech

Re: Navi-X PLX Parser - BETA (Testing)

PostPosted: Tue May 26, 2015 7:52 pm
by tuareg64ve
TechWhizZ199 wrote:UPDATE:

The first version of this PLX parser is in testing. The script has been finished and currently the script will etch the links for the playlist we specify, in the future I will add a refresh mode and a way to set more than one playlist so multiple playlist show as one when selecting the stream you want to show on your renderer.

The script is best used if it is set to start on boot up.

It will be released shortly on the available plugins thread.

Tech


nice!

Re: Navi-X PLX Parser - BETA (Testing)

PostPosted: Wed May 27, 2015 8:28 pm
by TechWhizZ199
A beta trial of the plugin has been released on the Available Plugins thread - this will be updated with plugin releases: viewtopic.php?f=20&t=19026

The development of the plugin will continue here as usual, the name of the plugin is 'Navi-X Plugin' though the developement will still be called 'Navi-X PLX Parser' since that is essentially what it is.