Web content will not stream

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Web content will not stream

Postby SharkHunter » Sat May 14, 2011 3:37 pm

I'm not in a hurry, badticket is :).
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Audio and Video streams

Postby saleopardi » Sun May 15, 2011 12:46 am

Hi,
I am trying to create proper links to be able to see all Zattoo tv channels (many international tv channels there).
In order for those links to work, I need to create a groovy script for pmsencoder, which I use to connect to the server, and do all the necessary step to get the final working rtmpe url.
I've already tested the links with PMS, and (just need to update the rtmpdump version) they work fine.

However, in my groovy I need to be able to scrape a local file in order to get the info I need.

can someone help me by just giving me the correct instruction that should be used in groovy to scrape a local .txt file?

I would really appreciate the help...and hopefully will be able to share those live tv channels with all of you very soon

tks
saleopardi
 
Posts: 94
Joined: Sat Mar 19, 2011 7:59 am

Re: Web content will not stream

Postby chocolateboy » Sun May 15, 2011 1:51 am

Code: Select all
def text = new File('/path/to.file').text
if (scrape '(?<alpha>[a-zA-Z]+) (?<num>\\d+)', [ source: text ]) {
    foo($alpha)
    bar($num)
}


or:

Code: Select all
if (scrape '(?<alpha>[a-zA-Z]+) (?<num>\\d+)', [ uri: 'file:///path/to.file' ]) {
    foo($alpha)
    bar($num)
}


http://rosettacode.org/wiki/File_IO#Groovy
https://github.com/chocolateboy/pmsenco ... es/scripts
chocolateboy
Project Member
 
Posts: 2579
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby Larkin » Wed May 18, 2011 7:42 pm

Can you please correct these profiles which worked with v1.1 but not with your latest releases. The downloadable ard_zdf.groovy is not working for ZDF Mediathek.

Code: Select all
config {

    profile ('ZDF Mediathek') {
        pattern {
            // 1) extract the base URI and (optionally) remove the trailing "#..."
            // (used on Flash pages)
            match uri: '(?<uri>http://www\\.zdf\\.de/[^#]+)'
        }

        action {
            // 2) append "?flash=off" to get the "HTML" version of the page
            let uri: '$uri?flash=off'

            // 3) extract the HQ .mov URI from the "HTML" version of the page
            scrape 'href="(?<uri>http://hstreaming\\.zdf\\.de/zdf/veryhigh/[^"]+)"'

            // 4) extract the RTSP URI from the .mov file
            scrape '(?<uri>rtsp://\\S+)'

            // MEncoder needs this to work with some (most?) routers
            set 'rtsp-stream-over-tcp'
        }
    }
      
    profile ('Gamestar') {
        pattern {
            match uri: '^http://www\\.gamestar\\.de/index\\.cfm\\?pid=\\d+&pk=\\d+'
        }

        action {
            // set the scrape URI to the URI of the XML file containing the video's metadata
            scrape '/jw4/player\\.swf\\?config=(?<uri>[^"]+)'

            // now extract the video URI from the XML's <file>...</file> element
            scrape '<file>(?<uri>[^<]+)</file>'
        }
    }

}
Larkin
 
Posts: 5
Joined: Fri Oct 08, 2010 11:21 pm

Re: Web content will not stream

Postby chocolateboy » Wed May 18, 2011 7:47 pm

chocolateboy
Project Member
 
Posts: 2579
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby Larkin » Wed May 18, 2011 8:14 pm

7. Persuade me to create a script for your site.


Do you mean this ? :D

Since I do not understand what to do with your links I will go back to your v1.1 which was working fine. Thanks.
Larkin
 
Posts: 5
Joined: Fri Oct 08, 2010 11:21 pm

Re: Web content will not stream

Postby chocolateboy » Wed May 18, 2011 8:19 pm

No, I mean use the Channel plugin, which, as the first link shows, supports ARD and ZDF.

If you can get ZDF Mediathek working with PMSEncoder 1.1.0 (and post (a link to) the script - the version above won't work), I'll take a look.
chocolateboy
Project Member
 
Posts: 2579
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby Larkin » Wed May 18, 2011 8:38 pm

Thanks. Gamestar also worked with v1.1 and the script I posted.

Btw I have to use your v1.4 to work with ard_zdf.groovy and 3sat feeds like

videofeed.Web,3sat=http://www.3sat.de/mediathek/rss/mediathek_scobel.xml

With v1.5.5 mencoder is crashing.

Will also check the channel plugin. Cheers

Here is the link to the working conf with v1.1.0, just checked.

http://www.viciousbyte.de/files/pmsencoder.conf
Larkin
 
Posts: 5
Joined: Fri Oct 08, 2010 11:21 pm

Re: Web content will not stream

Postby SharkHunter » Thu May 19, 2011 9:34 am

ZDF is currently broken in the latest build. Worked fine in SB23 but not in SB25. I have not looked to much on why. Note that it has nothing to do with Channels nor PMSEncoder which worked on SB23 with the same versions as now.
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

unable to listen to my preset audio and vide stations that h

Postby leonard » Fri May 20, 2011 10:29 pm

in the config file where you were able to insert strings to add tv /video / radio channels previosly with the new version im unable to view/listen to any.
help please :geek:
leonard
 
Posts: 1
Joined: Fri May 20, 2011 10:18 pm

PreviousNext

Return to General Help and Support

Who is online

Users browsing this forum: No registered users and 8 guests