Channel plugin (Updated 12-06-23)

Discuss third party additions, plugins and translations for PS3 Media Server

Re: Channel plugin (Updated 12-02-19)

Postby SharkHunter » Sun Feb 19, 2012 10:07 pm

If you are using SHB you should have more paths in there (I hope!?). Remove the PMS.conf file an reinstall (or just add these entries):
Code: Select all
pmsencoder.script.directory = extras\\scripts
dbgpack = extras\\channels\\channel.log,pmsencoder.log,plugins\\jumpy\\jumpy.log
youtube-dl.path = extras\\bin\\youtube-dl.exe
get-flash-videos.path = extras\\scripts\\get_flash_videos.pl
perl.path = extras\\perl\\bin\\perl.exe
python.path = extras\\Python27\\python
rtmpdump.path = extras\\bin\\rtmpdump.exe
curl.path = extras\\bin\\curl.exe
cookie.path = extras\\cookies
cred.path = C:\\ProgramData\\PMS-SHB\\PMS.cred
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Channel plugin (Updated 12-02-19)

Postby Cikkajesolo » Mon Feb 20, 2012 8:47 am

ok so i added the strings and put the right paths on some of them and it doesnt give me errors, but i get these and i dont know if they're a big problem:
Code: Select all
[main] TRACE 08:39:29.546 error killing old proc java.io.FileNotFoundException: pms.pid (Impossibile trovare il file specificato)

Code: Select all
[main] INFO  08:39:33.953 Transcoder profile AviSynth/FFmpeg will not be used because AviSynth was not found
[main] INFO  08:39:33.953 Registering transcoding engine: FFmpeg Audio
[main] INFO  08:39:33.953 Registering transcoding engine: MEncoder
[main] INFO  08:39:33.953 Transcoder profile Avisynth/MEncoder will not be used because AviSynth was not found[code]
[/code][main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "TV=SYFY:rtmp://live0.seeon.tv/edge/v3dpazsei7g6chj swfUrl=http://www.seeon.tv/jwplayer/player.swf pageUrl=http://www.seeon.tv/view/158/ tcUrl=rtmp://live0.seeon.tv/edge timeout=60"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"
[main] TRACE 08:39:46.078 Could not match any format to "null"

btw i didnt toggle the dbgpack because i didnt know what i was supposed to look for (jumpy.log?)
Cikkajesolo
 
Posts: 29
Joined: Sat Feb 18, 2012 3:07 pm

Re: Channel plugin (Updated 12-02-19)

Postby voguemaster » Mon Feb 20, 2012 2:13 pm

Hi SH,

Just wanted to drop in and recommend something. I found a very nice site (found it via its XBMC plugin :-)) that allows streaming of movies and TV shows, much like Icefilms.
I think it may be worth while to write a channel for it, if you can find the time.

www.1channel.ch

They have references to other file hosting / video hosting services. I believe many of the videos are flash-based (putlocker and others). There is an XBMC plugin to use as reference.
Just an FYI :-).
voguemaster
 
Posts: 78
Joined: Wed Jul 21, 2010 8:22 am

Error code 2 in rtmpdump in some channels

Postby pezur » Tue Feb 21, 2012 2:05 pm

Got everything running more and more smoothly with my ps3mediaserver and pmsencoder setup.

At first i was surprised that most of the channels was missing content, turned out i was just lacking patience. Seems that it takes about 5-15 seconds to load the content in each "folder". Still problem with some content that will stop playing after about 3-4 minutes returning error code 2 in rtmpdump, no idea what is causing this. Seems like this appears with the most hardware demanding, ffmpeg encoder, almost at the same playing time. What can be wrong?
pezur
 
Posts: 6
Joined: Thu Feb 16, 2012 9:14 pm

Re: Channel plugin (Updated 12-02-19)

Postby manwe » Wed Feb 22, 2012 11:13 am

At first, thanks for the wonderful work you do.

Trying to view some navix channels that work fine on XBMC and / or constructing the correct rtmpdump command.

I think that the problem has to do with the URL attribute coming from navix link which has the form of

URL=rtmp://some.host playpath=/some/path swfUrl="http://some/url/player.swf" pageUrl="http://some/url"

Checking logs the executed command is

rtmpdump.exe -r rtmp://some.host playpath=/some/path swfUrl="http://some/url/player.swf" pageUrl="http://some/url" (not working for obvious reasons)
instead of the expected
rtmpdump.exe -r rtmp://some.host --playpath=/some/path --swfUrl="http://some/url/player.swf" --pageUrl="http://some/url" (works fine)

After messing for hours with Channels rtmp.groovy script, removing it (thus relying on built in pmsencoder script I guess), making a new one, etc, etc I still have not managed to get it working.

Is that kind of input OK and I am missing out something or input should already / always be in a form that $RTMPDUMP -o $DOWNLOADER_OUT -r ${$URI} would work out of the box without any modifications ? (thus missing the -- prefix for playpath, swfUrl etc)

If that's the case, is there any chance to implement handling for that kind of input ?
If not, could you please provide me with some hints of how could I handle it in a custom, extra script ? Studying available scripts, groovy language site and ps3mediaserver message boards was not enough to get me going. Any pointers to documentation / examples regarding handling of $URI and applying a regular expression before executing $RTMPDUMP would be valuable. I guess that something simple as search/replace playpath with --playpath, swfURL with --swfUrl etc would do the trick. I did it indirectly using TheStreamDB Navix Channel that did not work. Locating the source xml and using yahoo pipes I constructed the URL attribute in the "expected" format and it worked fine (providing WEB.conf with the rss output of the yahoo pipe and slightly altering rtmp.groovy)

For most of the channels there is no "other" source of the NaviX URL's links to media and the plain text format of the lists makes something like the above impossible.

Scripts are written in groovy language or they use a custom, limited implementation of a groovy like language ? Is there any connection of scripts with Navix NIPL ?

You can check viewtopic.php?f=14&t=10854&start=430#p65326 and viewtopic.php?f=14&t=10854&start=430#p65362 for a more detailed description / specific examples

Does theStreamDB or cybernukelivetv Navix Channels works out of the box for other users ?

Thanks in advance
manwe
 
Posts: 6
Joined: Mon Feb 06, 2012 9:37 am

Re: Channel plugin (Updated 12-02-19)

Postby SharkHunter » Wed Feb 22, 2012 9:24 pm

@manwe
I'll have a look later.
@vougemaster
Maybe something like this?
Code: Select all
version=0.1

scriptdef ch1Subs {
   url=s_url
   regex='(.*?)\((\d+)\)!!!Season ([\d]+).*?!!!Episode ([\d]+)
   match url
   year=v2
   season=v3
   episode=v4
   if v1
      url=v1
      serie='1
      play
   endif
   regex='(.*?)(\(\d+\))
   match url
   url=v1
   year=v2
   play
}

macrodef tvMacro {
   folder {
      matcher=div class=\"index_item index_item_ie\"><a href=\"([^\"]+)\" title=\"Watch ([^\"]+)\"><img .*?\s*src=\"([^\"]+)\"
      order=url,name,thumb
      url=http://www.1channel.ch
      folder {
         #<h2><a href="/tv-6147-How-I-Met-Your-Mother/season-1">Season 1</a></h2>
         matcher=<h2><a href=\"([^\"]+)\">([^<]+)<
         order=url,name
         url=http://www.1channel.ch
         folder {
            #div class="tv_episode_item"> <a href="/tv-6147-How-I-Met-Your-Mother/season-1-episode-1">Episode 1                                <span class="tv_episode_name"> - Pilot</span>
            matcher=div class=\"[^\"]+\">\s*<a href=\"([^\"]+)\">(\S+ \d+)\s*<span [^>]+>([^<]+)
            order=url,name+
            url=http://www.1channel.ch
            folder {
               #<a href="/external.php?title=The+Walking+Dead&url=aHR0cDovL3d3dy5wdXRsb2NrZXIuY29tL2ZpbGUvMEY2RUY0NUIyRkE2MjI2MQ==&domain=cHV0bG9ja2VyLmNvbQ==&loggedin=0" onClick="return  addHit('1889616332', '1')" rel="nofollow" title="Watch Version 1 of The Walking Dead" target="_blank">Version 1</a>
               matcher=href=\"([^\"]+)\"[^>]+>(Version[^<]+)<
               order=url,name
               url=http://www.1channel.ch
               type=empty
               media {
                  script=lockerScript
                  subtitle=swesub,s4u,allSubs,podnapisiTV
                  prop=name_index=3+2+1,name_separator=!!!
               }
            }
         }
      }
   }
}

macrodef movieMacro {
   folder {
      #<div class="index_item index_item_ie"><a href="/watch-2280191-Hangover-2" title="Watch Hangover 2 (2011)"><img src="http://images.1channel.ch/thumbs/2280191_Hangover_2_2011.jpg"
      matcher=<div class=\"index_item index_item_ie\"><a href=\"([^\"]+)\" title=\"Watch ([^\"]+)\"[^>]*><img src=\"([^\"]+)\"
      order=url,name,thumb
      url=http://www.1channel.ch
      folder {
         #<a href="/external.php?title=The+Walking+Dead&url=aHR0cDovL3d3dy5wdXRsb2NrZXIuY29tL2ZpbGUvMEY2RUY0NUIyRkE2MjI2MQ==&domain=cHV0bG9ja2VyLmNvbQ==&loggedin=0" onClick="return  addHit('1889616332', '1')" rel="nofollow" title="Watch Version 1 of The Walking Dead" target="_blank">Version 1</a>
         matcher=href=\"([^\"]+)\"[^>]+>(Version[^<]+)<
         order=url,name
         url=http://www.1channel.ch
         type=empty
         media {
            script=lockerScript
            subtitle=swesub,s4u,allSubs,podnapisiTV
            prop=name_index=1
         }
      }
   }
}

channel 1Channel {
   subscript=ch1Subs,
   folder {
     name=TV Shows
     folder {
      #Popular
      name=Popular
      url=http://www.1channel.ch/?tv=&sort=views
      macro=tvMacro
     }
     folder {
      name=A-Z
      type=atzlink
      url=http://www.1channel.ch/?tv=&sort=alphabet&letter=
      prop=other_string=0
      macro=tvMacro
     }
     folder {
      #Rating
      name=Rating
      url=http://www.1channel.ch/?tv=&sort=ratings
      macro=tvMacro
     }
     folder {
      #Release
      name=Release
      url=http://www.1channel.ch/?tv=&sort=release
      macro=tvMacro
     }
   }
   
   folder {
     name=Movies
     folder {
      name=Popular
      url=http://www.1channel.ch/?sort=views
      macro=movieMacro
     }
     folder {
      name=A-Z
      type=atzlink
      url=http://www.1channel.ch/?sort=alphabet&letter=
      macro=movieMacro
     }
     folder {
      #Rating
      name=Rating
      url=http://www.1channel.ch/?&sort=ratings
      macro=movieMacro
     }
     folder {
      #Release
      name=Release
      url=http://www.1channel.ch/?&sort=release
      macro=movieMacro
     }
   }
}

New common script place holder needed too
Code: Select all
version=0.1

#############################################################
## This file contains some useful scripts used
## by variuos channels
##############################################################

#########################################################
## Simple trix script, just get the redirect
## URL which probably is just the locker URL
##########################################################

scriptdef trixScript {
   s_action='geturl
   scrape
   url=v1
   play
}

#############################
## Thumbnail scrape
## script using IMDB
#############################

scriptdef imdbThumb {
#<link rel='image_src' href='http://ia.media-imdb.com/images/M/MV5BNTUwODQyNjM0NF5BMl5BanBnXkFtZTcwNDMwMTU1Mw@@._V1._SX94_SY140_.jpg'
   regex='image_src' href='([^']+)'
   prepend s_url 'http://www.imdb.com/title/tt
   scrape
   url=v1
   play
}

#################################################
## Script to analyze the various
## cyberlockers around. Have a central one to
## make changes hit all over
#################################################

scriptdef lockerScript {
   s_action='geturl
   scrape
   url=v1
   regex='(movshare)
   match url
   if v1
      call 'http://navix.turner3d.net/proc/movshare
      url=v1
      play
   endif
   regex='(divxstage)
   match url
   if v1
      call 'http://justme4u2c.zymichost.com/DivxStage.php
      url=v1
      play
   endif
   regex='(novamov)
   match url
   if v1
     call 'http://boseman22.dyndns-server.com/static/novamov
     url=v1
     play
   endif
   regex='(videoweed)
   match url
   if v1
     call 'http://justme4u2c.zymichost.com/VideoWeed.es.php
     url=v1
     play
   endif
   regex='(vixden)
   match url
   if v1
     call 'http://navix.turner3d.net/proc/vidxden
     url=v1
     play
   endif
   regex='(megavideo)
   match url
   if v1
     call 'http://navix.turner3d.net/proc/megavideo
     url=v1
     play
   endif
   regex='(videobb)
   match url
   if v1
     call 'http://navix.turner3d.net/proc/videobb
     url=v1
     play
   endif
   regex='(putlocker)
   match url
   if v1
      call 'http://navix.turner3d.net/sproc/putlocker
      url=v1
      play
   endif
   regex='(sockshare)
   match url
   if v1
      call 'http://navix.turner3d.net/sproc/sockshare
      url=v1
      play
   endif
   play
}
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Channel plugin (Updated 12-02-19)

Postby SharkHunter » Wed Feb 22, 2012 9:47 pm

@manwe
If you use SHB you need the rtmpdump.groovy from the build (or have a look at my github) since in SHB we use a custom ffmpeg with built in rtmp support so the rat rtmpdump program shouldn't be used. It looks like you got the correct script but still use rtmpdump. How does your rtmpdujmp.xgroovy script look like? Also make sure no rtmp.groovy script exists...
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Channel plugin (Updated 12-02-19)

Postby Cikkajesolo » Thu Feb 23, 2012 7:07 pm

i found this site with a few channels
http://www.ilive.to/channels/
is it any good?
Cikkajesolo
 
Posts: 29
Joined: Sat Feb 18, 2012 3:07 pm

Re: Channel plugin (Updated 12-02-19)

Postby keros » Sat Feb 25, 2012 10:04 pm

I have a simple question... Where do I put Rapidshare username and password for icefilms?
keros
 
Posts: 1
Joined: Sat Feb 25, 2012 10:00 pm

Channel Plugin

Postby timeitniear » Tue Feb 28, 2012 2:06 am

Hey,
Anyone able to get this to work? I'm on [Mac OS] 10.6 and get the no input stream. Here is my config file. I have to believe that is where the issue lies, but I'm not a programmer. I'm wiling to work with anyone with more knowledge than me to work this out and write a good tutorial once I can get it going. I can stream music and internet radio without any issues.

Code: Select all
folders =
hostname =
port =
language =
thumbnails = true
thumbnail_seek_pos = 1
nbcores = 2
turbomode = false
minimized = false
hidevideosettings = false
usecache = false
charsetencoding = 850
engines = pmsencoder,mencoder,avsmencoder,tsmuxer,mplayeraudio,ffmpegaudio,tsmuxeraudio,vlcvideo,mencoderwebvideo,mplayervideodump,mplayerwebaudio,vlcaudio,ffmpegdvrmsremux
autoloadsrt = true
avisynth_convertfps = true
avisynth_script = #AviSynth script is now fully customisable !\u0001#You must use the following variables (\"clip\" being the avisynth variable of the movie):\u0001#<movie>: insert the complete DirectShowSource instruction [ clip=DirectShowSource(movie, convertfps) ]\u0001#<sub>: insert the complete TextSub/VobSub instruction if there's any detected srt/sub/idx/ass subtitle file\u0001#<moviefilename>: variable of the movie filename, if you want to do all this by yourself\u0001#Be careful, the custom script MUST return the clip object\u0001<movie>\u0001<sub>\u0001return clip
transcode_block_multiple_connections = false
tsmuxer_forcefps = true
tsmuxer_preremux_pcm = false
tsmuxer_preremux_ac3 = false
audiochannels = 6
audiobitrate = 448
maximumbitrate = 20
skiploopfilter = false
enable_archive_browsing = false
mencoder_fontconfig = false
mencoder_font =
mencoder_forcefps = false
mencoder_usepcm = false
mencoder_intelligent_sync = true
mencoder_decode =
mencoder_encode = keyint=25:vqmax=7:vqmin=2
mencoder_vobsub_subtitle_quality = 3
mencoder_overscan_compensation_width = 0
mencoder_overscan_compensation_height = 0
mencoder_nooutofsync = true
mencoder_audiolangs = fre,jpn,ger,eng
mencoder_sublangs = fre,eng
mencoder_audiosublangs =
mencoder_subfribidi = false
mencoder_ass_scale = 1.0
mencoder_ass_margin = 10
mencoder_ass_outline = 1
mencoder_ass_shadow = 1
mencoder_noass_scale = 3
mencoder_noass_subpos = 2
mencoder_noass_blur = 1
mencoder_noass_outline = 1
mencoder_subcp = cp1252
mencoder_disablesubs = false
mencoder_yadif = false
mencoder_scaler = false
mencoder_scalex = 0
mencoder_scaley = 0
ffmpeg = -g 1 -qscale 1 -qmin 2
image_thumbnails = true
mencoder_ass = true
uuid = 4dd9fd21-e579-352f-94f0-b75fe82332e2
ip_filter = 192.168.0.125
rtmpdump.path=/rtmpdump
channels.path = /Applications/PS3 Media Server.app/Contents/Resources/Java/channels
pmsencoder.script.directory = /Applications/PS3 Media Server.app/Contents/Resources/Java/scripts
cookie.path = /Applications/PS3 Media Server.app/Contents/Resources/Java/channels/data/cookies
channels.debug = true
channels.subtitles = true
channels.group_folder = false
channels.favorite = true
get-flash-videos.path = /Applications/PS3 Media Server.app/Contents/Resources/Java/scripts
youtube-dl.path = /Applications/PS3 Media Server.app/Contents/Resources/Java/scripts
channels.save = /Users/timmyd/Documents/Vuze Downloads
Get_flash_videos.path=usr/bin/get_flash_videos
Last edited by chocolateboy on Tue Feb 28, 2012 1:59 pm, edited 1 time in total.
Reason: add OS
MacBook Pro
2.2 Ghz Intel Core i7
4GB Ram
OSX 10.8.1
timeitniear
 
Posts: 17
Joined: Thu Feb 23, 2012 9:22 pm

PreviousNext

Return to Additions and Plugins

Who is online

Users browsing this forum: No registered users and 2 guests