Channel plugin (Updated 12-06-23)

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

Re: Chanel plugin

Postby Twosheds » Wed Feb 16, 2011 5:01 pm

I'm having trouble specifying a correct regexp to suit the plugin. I'm trying to extract 2 strings to concatenate as the name parameter, along with a url parameter. The problem appears to lie in the regexp used for the first part of the name. Whenever the first string contains a pair of square brackets e.g TVChannel [EN] then the name parameter is displayed as TVChannel and the second string appears to be ignored. If the first string doesn't contain a pair of square brackets then the first string is not truncated and the two strings are concatenated and displayed correctly.

I'm using the regexp >([^<]+)< to extract the first string. The '>' and '<' are the delimiters of the text string I want from the web page.

My parm line is parm,url,name to match the 3 regexp 'groups' in my 'matcher' spec.

Anyone tell me what I'm doing wrong ?

UPDATE
I've just had a look at the output on my Bravia TV and the Channel plugin is working perfectly. It appears that the problem lies with XBMC which I've been using to test it.
Twosheds
 
Posts: 37
Joined: Tue Apr 27, 2010 4:28 pm
Location: Lincolnshire, UK

Re: Chanel plugin

Postby Twosheds » Wed Feb 16, 2011 7:02 pm

Mistaken post deleted
Twosheds
 
Posts: 37
Joined: Tue Apr 27, 2010 4:28 pm
Location: Lincolnshire, UK

Re: Chanel plugin

Postby SharkHunter » Wed Feb 16, 2011 7:42 pm

Did it work for you or not?
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Chanel plugin

Postby Twosheds » Wed Feb 16, 2011 8:06 pm

Sharkhunter,
If you're talking to me then it's working in that I have now managed to add the kick-off times against each event and the station name to the protocol and bitrate. However the MyP2P web pages for a sport can be devided into more than one date so I'm trying to think of a way to adding the day/date to the kick-off time or using the day/date as a new folder level. I can't see a solution to either method. The simplest solution from my point of view might be if there was a way to tell the plugin not to sort the data so that it is presented in chronological order as per the website
Twosheds
 
Posts: 37
Joined: Tue Apr 27, 2010 4:28 pm
Location: Lincolnshire, UK

Re: Chanel plugin

Postby dushashi » Wed Feb 16, 2011 8:08 pm

2.3 doesn't do it either. This is so weird. When I run the rtmpdump separately in the shell it does work and downloads the SVT stuff correctly.

Damn, this sucks :(

Code: Select all
[rtmpdump] INFO  20:04:01.932 Starting rtmpdump -o /tmp/ps3mediaserver/pmsencoder_downloader_out_1297883040799_41 -r "rtmpe://fl11.c90909.cdn.qbrick.com/90909/_definst_/kluster/20110214/PG-1136348-001A-ABBYSFLYINGFA-01-mp4-e-v1.mp4"
[mencoder] INFO  20:04:01.933 Starting mencoder -o /tmp/ps3mediaserver/pmsencoder_transcoder_out_1297883040799_41 -msglevel all=2 -quiet -prefer-ipv4 -oac lavc -of lavf -lavfopts format=dvd -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=4096:threads=1:acodec=ac3:abitrate=128 -ofps 25 -cache 16384 -vf harddup /tmp/ps3mediaserver/pmsencoder_downloader_out_1297883040799_41
[Thread-22] DEBUG 20:04:01.966 RTMPDump v2.3
[Thread-22] DEBUG 20:04:01.967 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[mencoder] INFO  20:04:01.975 Reading pipe: /tmp/ps3mediaserver/pmsencoder_transcoder_out_1297883040799_41
[mencoder] DEBUG 20:04:01.975 Opening file /tmp/ps3mediaserver/pmsencoder_transcoder_out_1297883040799_41 for reading...
[Thread-22] DEBUG 20:04:01.987 WARNING: Unknown protocol!
[Thread-22] DEBUG 20:04:01.987
[Thread-22] DEBUG 20:04:01.993 Connecting ...
[Thread-22] DEBUG 20:04:02.040 WARNING: HandShake: client signature does not match!
[Thread-22] DEBUG 20:04:02.040 INFO: Connected...
[Thread-22] DEBUG 20:04:02.054 ERROR: rtmp server sent error
[Thread-22] DEBUG 20:04:02.054 ERROR: rtmp server requested close
[rtmpdump] TRACE 20:04:02.058 Process rtmpdump has a return code of 1! Maybe an error occured... check the log file
[New I/O server worker #1-2] DEBUG 20:04:02.133 Sleeping for 6000 milliseconds"


What is this?
Code: Select all
[Thread-22] DEBUG 20:04:02.040 WARNING: HandShake: client signature does not match!

this, doesnt appear when I run rtmpdump in the shell.
dushashi
 
Posts: 148
Joined: Sun Feb 13, 2011 11:11 pm

Re: Chanel plugin

Postby SharkHunter » Wed Feb 16, 2011 8:45 pm

Twosheds - cool :D. Pls share your result with the world (if you dare :) ).

dushashi - This is weird. Pls give some moer debug info. How you run etc.
This works for me but my -o arg is - and not /tmp/ps3mediaserver/pmsencoder_transcoder_out_1297883040799_41 but that shouldn't be an isue....
SharkHunter
 
Posts: 941
Joined: Tue Jun 01, 2010 8:39 pm

Re: Chanel plugin

Postby chocolateboy » Wed Feb 16, 2011 10:41 pm

dushashi wrote:
Code: Select all
[rtmpdump] INFO  20:04:01.932 Starting rtmpdump -o /tmp/ps3mediaserver/pmsencoder_downloader_out_1297883040799_41 -r "rtmpe://fl11.c90909.cdn.qbrick.com/90909/_definst_/kluster/20110214/PG-1136348-001A-ABBYSFLYINGFA-01-mp4-e-v1.mp4"


For now, try removing the quotes from the URI (in rtmp.groovy). On non-Windows platforms, the command is executed directly (i.e. no shell), so it looks like rtmpdump is receiving an invalid URI that begins with a double-quote.

rtmp.groovy

Code: Select all
// XXX: non-Windows only

script {
    def RTMPDUMP = '/path/to/rtmpdump' // or just 'rtmpdump' if it's in $PATH

    profile ('RTMP(E)') {
        pattern {
            protocol ([ 'rtmp', 'rtmpe' ])
        }

        action {
            def ystrings = $URI.split('!!!pms_ch_dash_y!!!')
            if (ystrings.length > 1)
                $URI = ystrings[0] + '" -y "' + ystrings[1]
            def wstrings = $URI.split('!!!pms_ch_dash_w!!!')
            if (wstrings.length > 1)
                $URI = wstrings[0] + '" -W "' + wstrings[1]
            $DOWNLOADER = "$RTMPDUMP -o $DOWNLOADER_OUT -r ${$URI}"
        }
    }
}
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Chanel plugin

Postby dushashi » Wed Feb 16, 2011 10:59 pm

Code: Select all
For now, try removing the quotes from the URI (in rtmp.groovy). On non-Windows platforms, the command is executed directly (i.e. no shell), so it looks like rtmpdump is receiving an invalid URI that begins with a double-quote.


That was it. Thanks. Now RTMPDUMP works.

In the rtmp.groovy script fron NON-Windows you have to add def to RTMPDUMP = '/path/to/rtmpdump'.

Code: Select all
script {
    RTMPDUMP = '/path/to/rtmpdump' // or just 'rtmpdump' if it's in $PATH


It still doesn't work for me. But this is a transcoding error I think

Code: Select all
[mencoder] TRACE 22:54:48.871 Process mencoder has a return code of 136! Maybe an error occured... check the log file


I will look into this.
dushashi
 
Posts: 148
Joined: Sun Feb 13, 2011 11:11 pm

Re: Chanel plugin

Postby chocolateboy » Wed Feb 16, 2011 11:12 pm

dushashi wrote:In the rtmp.groovy script from NON-Windows you have to add def to RTMPDUMP = '/path/to/rtmpdump'.


Yes, sorry. That will be fixed in the next version of PMSEncoder, along with a bunch of other related issues.

To quickly debug (or, at least, start debugging) MEncoder errors directly, try piping the output of rtmpdump through mplayer:

Code: Select all
rtmpdump --quiet -r rtmp://whatever -o - | mplayer -prefer-ipv4 -cache 8192 -


It's only a "start", because MPlayer plays almost any input stream, whereas, as you say, MEncoder, in this context, is required to transcode.
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: Chanel plugin

Postby dushashi » Wed Feb 16, 2011 11:30 pm

I am almost there. I dumped the rtmp stream to a file test.mp4 and saved in my shared folder.

Transcoding worked from the saved file perfect. Could stream it to my Bravia 5500.

On the fly transcoding still doesn't work. I still get the MEncoder error though.
Code: Select all
Process mencoder has a return code of 136! Maybe an error occured... check the log file


I will try your suggestion now chocolateboy
dushashi
 
Posts: 148
Joined: Sun Feb 13, 2011 11:11 pm

PreviousNext

Return to Additions and Plugins

Who is online

Users browsing this forum: Bing [Bot] and 3 guests