Web content will not stream

For help and support with PS3 Media Server in general

Re: Web content will not stream

Postby DonVito » Sun Dec 26, 2010 4:33 pm

Thanks a lot all..

It works so far, all settings seem to be fine now.. (see traces)

Code: Select all
[main] TRACE 16:25:16.158 Detected plugin net.pms.movieinfo.MovieInfo
[main] TRACE 16:25:16.160 Detected plugin com.chocolatey.pmsencoder.Plugin
[main] TRACE 16:25:16.163 PMSEncoder: initializing PMSEncoder 1.2.4
[main] TRACE 16:25:16.306 PMSEncoder: script directory: C:\Program Files (x86)\PS3 Media Server\scripts
[main] TRACE 16:25:16.311 PMSEncoder: loading built-in log4j config file: jar:file:/C:/Program%20Files%20(x86)/PS3%20Media%20Server/plugins/pmsencoder-1.2.4.jar!/default_log4j.xml
[main] TRACE 16:25:16.332 PMSEncoder: loading built-in script: jar:file:/C:/Program%20Files%20(x86)/PS3%20Media%20Server/plugins/pmsencoder-1.2.4.jar!/pmsencoder.groovy
[main] TRACE 16:25:16.756 PMSEncoder: loading scripts from: C:\Program Files (x86)\PS3 Media Server\scripts
[main] TRACE 16:25:16.757 PMSEncoder: loading user script: C:\Program Files (x86)\PS3 Media Server\scripts\sopcast.groovy
[main] TRACE 16:25:16.793 Registering transcoding engine PMSEncoder
[main] TRACE 16:25:16.819 Using following UUID: 1b9b3e21-7746-34f8-9c70-dfe6795e5dea
[New I/O server worker #1-1] TRACE 16:25:19.184 Renderer Sony Bravia 5500 Series found on this address: /192.168.1.10
[New I/O server worker #1-1] TRACE 16:25:21.189 Renderer Sony Bravia 5500 Series have an estimated network speed of: 42 Mb/s
[main] TRACE 16:25:21.547 It's ready! You should see the server appears on XMB
[New I/O server worker #1-1] TRACE 16:25:22.015 Renderer Playstation 3 found on this address: /192.168.1.11
[New I/O server worker #1-1] TRACE 16:25:24.020 Renderer Playstation 3 have an estimated network speed of: 85 Mb/s


Only thing now, how to start watching a Sopcast broadcast? Perhaps anyone can share his/her WEB.conf file so I can test it?
DonVito
 
Posts: 6
Joined: Sun Dec 26, 2010 2:02 pm

Re: Web content will not stream

Postby hans_gregor » Sun Dec 26, 2010 4:57 pm

i'm not using 1.2.4
so my web conf is different.
you should just start sopcast manualy and put the loopback link to the sopcast stream in your WEB.conf

Code: Select all
videostream.Web,Sopcast=SOPCAST_LOOPBACK,http://127.0.0.1:8902/stream
hans_gregor
 
Posts: 11
Joined: Thu Dec 23, 2010 1:00 pm

Re: Web content will not stream

Postby DonVito » Sun Dec 26, 2010 5:00 pm

hans_gregor wrote:i'm not using 1.2.4
so my web conf is different.
you should just start sopcast manualy and put the loopback link to the sopcast stream in your WEB.conf

Code: Select all
videostream.Web,Sopcast=SOPCAST_LOOPBACK,http://127.0.0.1:8902/stream


Should I start Sopcast Manually on the PC? Or through the PS3? It keeps giving me 'there are no titles' on the PS3

And can you give me an example of a SOPCAST_LOOPBACK link?
DonVito
 
Posts: 6
Joined: Sun Dec 26, 2010 2:02 pm

Re: Web content will not stream

Postby chocolateboy » Sun Dec 26, 2010 5:52 pm

DonVito wrote:Where do I put the https://github.com/chocolateboy/pmsenco ... ast.groovy file?


https://github.com/chocolateboy/pmsenco ... .directory

How can I get a Sopcast channel to work on the ps3?


search.php?keywords=sopcast&t=8776&sf=msgonly

I know there's no documentation available yet


I didn't say that.
chocolateboy
Project Member
 
Posts: 2463
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby chocolateboy » Sun Dec 26, 2010 6:47 pm

Osiris X wrote:$DEFAULT_TRANSCODER_ARGS is a generic set of arguments that are appended to any defined transcoder - correct?


$DEFAULT_TRANSCODER_ARGS are arguments for the default transcoder (MEncoder) that are copied into a list ($ARGS) at the beginning of every web video request. Scripts modify the $ARGS list by calling methods that operate on it in action blocks e.g. set(), remove() &c.

The variable in which you define the transcoder executable is $TRANSCODER?


$DOWNLOADER sets the downloader command-line; $TRANSCODER sets the transcoder command-line. They're both lists of strings e.g.

Code: Select all
$DOWNLOADER = [ 'C:\\Python\\bin\\python.exe', 'C:\\Apps\\youtube-dl', '-o', $DOWNLOADER_OUT, $URI ]


or:

Code: Select all
$DOWNLOADER = [ '/usr/bin/python', '/usr/bin/youtube-dl', '-o', $DOWNLOADER_OUT, $URI ]


https://github.com/chocolateboy/pmsenco ... -dl.groovy

$DOWNLOADER and $TRANSCODER can be assigned strings if none of the parameters contain whitespace (the string is split on whitespace to form the list) e.g.:

Code: Select all
$DOWNLOADER = "C:\\Python\\bin\\python.exe C:\\Apps\\youtube-dl -o $DOWNLOADER_OUT ${$URI}"


or:

Code: Select all
$DOWNLOADER = "/usr/bin/python /usr/bin/youtube-dl -o $DOWNLOADER_OUT ${$URI}"


If the default transcoder (MEncoder) is used (i.e. $TRANSCODER isn't set), then PMSEncoder adds the executable (the mencoder ($MENCODER) and mencoder_mt ($MENCODER_MT) paths are both exposed as read-only values to scripts), the URI ($URI) and, if $DOWNLOADER is set, the option to read from $DOWNLOADER_OUT to the MEncoder command-line. If a script defines its own transcoder command-line, then these must be done manually.

How do I delete a parameter from the transcoder arguments list as part of a resultant action i.e. in a profile -> action [context]?


To remove a single option:

Code: Select all
action {
    remove '-foo'
}


To remove multiple options:

Code: Select all
action {
    remove([ '-foo', '-bar', '-baz' ])
}


In both cases, if the option name has a corresponding value, then the value is also removed e.g.

Code: Select all
remove '-nocache'


just removes '-nocache', whereas:

Code: Select all
remove '-cache'


removes (e.g.) '-cache 16384'.

Could such a technique be used in pmsencoder for pmsencoder.log? (It was not clear to me if you are using slf4j or indeed whether that is necessary to leverage mdc)


Patches welcome (it's using log4j)! Maybe write your own appender and add it to update.jar?
Last edited by chocolateboy on Sun Dec 26, 2010 11:09 pm, edited 5 times in total.
chocolateboy
Project Member
 
Posts: 2463
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby chocolateboy » Sun Dec 26, 2010 6:55 pm

hans_gregor wrote:what if ones server is in the basemenent,?


https://code.google.com/p/ps3mediaserve ... tail?id=89

Code: Select all
you said that the $DOWLOADER_OUT thing will work on linux.


Not for long. I'm going to remove the ability to set it as it's a hack. If there are insurmountable problems with SopCast that can only be solved by having PMSEncoder start a separate process, then I'll add that feature, but it looks like people have had it working without that elsewhere in the thread. General process management is outside the scope of this plugin.
Last edited by chocolateboy on Sun Dec 26, 2010 7:30 pm, edited 1 time in total.
chocolateboy
Project Member
 
Posts: 2463
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby chocolateboy » Sun Dec 26, 2010 7:27 pm

Osiris X wrote:Could such a technique be used in pmsencoder for pmsencoder.log? (It was not clear to me if you are using slf4j or indeed whether that is necessary to leverage mdc)


Found an easier way (only tested with log4j):

Code: Select all
<appender name="logfile" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="/path/to/pmsencoder-${user.name}.log"/>
        ...
</appender>
chocolateboy
Project Member
 
Posts: 2463
Joined: Wed Sep 16, 2009 10:05 am

Re: Web content will not stream

Postby chocolateboy » Sun Dec 26, 2010 11:17 pm

PMSEncoder 1.2.5 has been released.

This release adds a simpler Action.remove() method and reverts the option to modify $DOWNLOADER_OUT.
chocolateboy
Project Member
 
Posts: 2463
Joined: Wed Sep 16, 2009 10:05 am

get_flash_videos and rtmp

Postby infidel » Mon Dec 27, 2010 8:09 pm

My two bits on getting get_flash_videos to play nice when downloading rtmp streams:

  • Get $DOWNLOADER_OUT to take effect by fixing get_flash_videos so it doesn't ignore its own '--filename' option. The patch is here, but it's just a one-liner so you can paste the green text below into your installation of get_flash_videos' FlashVideo/Utils.pm (line 114) by hand:
    sub title_to_filename {
    my($title, $type) = @_;


    # no need to go any further if '--filename' option has been set
    if($App::get_flash_videos::opt{filename} ne '') {
    return $App::get_flash_videos::opt{filename};
    }


    # Extract the extension if we're passed a URL.
    if($title =~ s/(@{[EXTENSIONS]})$//) {

  • Tsmuxer seems to choke on h264 streams, so turn off h264 muxing with tsmuxer in your PMS.conf
    Code: Select all
    mencoder_mux_compatible = false

Here's an example 'pmsencoder/get_flash_videos.groovy' on linux:
Code: Select all
script {
    def GET_FLASH_VIDEOS = '/usr/bin/get_flash_videos'
    def PERL = '/usr/bin/perl'

    profile ('Get Flash Videos') {
        pattern {
            domain([
                'comedycentral.com',
                'thedailyshow.com',
                'colbertnation.com',
                'mtvnservices.com'
            ])
        }

        action {
            $DOWNLOADER = "$PERL $GET_FLASH_VIDEOS --quality high --yes --filename $DOWNLOADER_OUT ${$URI}"
        }
    }
}
and some example entries for WEB.conf:
Code: Select all
videofeed.Web,The Daily Show=http://www.comedycentral.com/rss/tdsvideos.jhtml
videofeed.Web,The Colbert Report=http://www.comedycentral.com/rss/colbertvideos.jhtml
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

Re: Web content will not stream

Postby infidel » Wed Dec 29, 2010 5:00 pm

I Noticed you're adding $HOOK in the git repo and tried a build today, but plugin resolution failed until I changed
Code: Select all
<url>${groovypp-repo}/plugins-releases</url>
to
Code: Select all
<url>${groovypp-repo}/libs-releases-local</url>
in pom.xml. I'm a total maven noob and therefore unsure if this is kosher, but thought I'd bring it to your attention.
infidel
 
Posts: 278
Joined: Sun Aug 15, 2010 4:56 pm

PreviousNext

Return to General Help and Support

Who is online

Users browsing this forum: Bing [Bot], XxRaVeNxX and 21 guests