Kodi Community Forum

Full Version: App for testing RTMP URLs - good for (Flash) plugin development
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I found an interesting java applet to save RTMP streams. i thought it might be useful for people testing. I am going to email the guy and see if he can add swfurl and pageurl options to the application.

http://www.smaxe.com/juvapplet1.jsf
Thanks for the info!! Smile
I'm trying to figure out the correct way to play this rtmp stream on xbmc or any other player. While playing a rtmp stream from justin.tv, I found this xml file in the headers...

Code:
<nodes>
    <node>
        <play>[b]akamai3_100@6692[/b]</play>
        <name>live_user_rudyslv19</name>
        <node_name>dev2_proxy_r1938</node_name>
        <connect>[b]rtmp://live-cdn.justin.tv:1935/live[/b]</connect>
        <type>location</type>
        <location>live-cdn.justin.tv:1935</location>
    </node>
</nodes>

can I do anything with this?

I also found a website that had some php code to play this:
Code:
http://www.channelsurfing.net/watch-sports.php?w=[b]akamai3_100@6692[/b]&i=[b]rtmp://live-cdn.justin.tv:1935/live[/b]
ok you have all the info to be able to play the media.

in python you need to set the playpath for an item like this
playpath = "akamai3_100@6692"
rtmp_url = "rtmp://live-cdn.justin.tv:1935/live"
item.setProperty("PlayPath", playpath)
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(rtmp_url, item)

it seems it is streaming from justin.tv i thought i saw a plugin for this but seem to be missing it now. you might want to look around

this site is interesting though
http://www.channelsurfing.net/watch-spor...:1935/live

so w= playpath and i= tcurl

so you can modify that url to play most rtmp streams using their flash player. unless it checks the swfurl or pageurl when connecting to the rtmp server

example:
http://www.channelsurfing.net/watch-spor...dgefcs.net
Is this open source (C++/GPL) "RTMPDump" tool/library/code something that could be used by XBMC and/or python scripters?

http://sourceforge.net/projects/rtmpdump
Quote:RTMPDump

A small dumper for media content streamed over the RTMP protocol. Supplying an rtmp url will result in a dumped flv file, which can be played/transcoded using ffmpeg/mplayer, etc. Download scripts for BBC's iPlayer and hulu.com streams are included.
Download => https://sourceforge.net/project/showfile..._id=303903

Huh
Awesome thanks for the info Gamester17

I have been looking for something like this for a while.
Gamester17 Wrote:Is this open source (C++/GPL) "RTMPDump" tool/library/code something that could be used by XBMC and/or python scripters?

http://sourceforge.net/projects/rtmpdumpDownload => https://sourceforge.net/project/showfile..._id=303903

Huh
RTMPDump uses the sources of XBMC Laugh

sfaxman
sfaxman Wrote:RTMPDump uses the sources of XBMC :laugh
Really? I see no note crediting XBMC nor Boxee for the source code? Oo
Nor does it seem to include a GPL license file as required by the GPL No
well, all the code headers are in place atleast.

i sent him a mail and asked him to include a COPYING file as well as give some credits in the readme..
BlueCop Wrote:ok you have all the info to be able to play the media.

in python you need to set the playpath for an item like this
playpath = "akamai3_100@6692"
rtmp_url = "rtmp://live-cdn.justin.tv:1935/live"
item.setProperty("PlayPath", playpath)
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(rtmp_url, item)

it seems it is streaming from justin.tv i thought i saw a plugin for this but seem to be missing it now. you might want to look around

this site is interesting though
http://www.channelsurfing.net/watch-spor...:1935/live

so w= playpath and i= tcurl

so you can modify that url to play most rtmp streams using their flash player. unless it checks the swfurl or pageurl when connecting to the rtmp server

example:
http://www.channelsurfing.net/watch-spor...dgefcs.net

can u give us an example of the script?
i can't make it work
thank you
acun Wrote:can u give us an example of the script?
i can't make it work
thank you

Read this:
http://trac.xbmc.org/ticket/5659
@BlueCop, were you ever able to get rtmpdump working?
I keep getting perl errors.
First it was that I didn't have simple.pm, so I googled that and stuck it where perl is installed, then I get this :

Code:
rwparris2@rwparris2:~/rtmpdump$ ./get_hulu http://www.hulu.com/watch/48466/30-rock-christmas-special 1
Found CID: 12677984
Can't locate object method "new" via package "XML::Simple" (perhaps you forgot to load "XML::Simple"?) at ./get_hulu line 70.
Gamester17 Wrote:Really? I see no note crediting XBMC nor Boxee for the source code? Oo
Nor does it seem to include a GPL license file as required by the GPL No

It credits boxee in the readme
after me requesting it as i said further up. COPYING is also in place
rwparris,

Try adding perl modules like so:

Code:
sudo perl -MCPAN -e shell

once the shell does its autosetup stuff you'll be given a command prompt.

for XML::Simple, you do:

Code:
install XML::Simple

it'll download, compile, install for you... then exit shell and try again.. if it fails, it'll likely be something else... you just keep on until you meet the dependencies. Worked for me Smile
mr.b Wrote:rwparris,

Try adding perl modules like so:

Code:
sudo perl -MCPAN -e shell
once the shell does its autosetup stuff you'll be given a command prompt.

for XML::Simple, you do:

Code:
install XML::Simple
it'll download, compile, install for you... then exit shell and try again.. if it fails, it'll likely be something else... you just keep on until you meet the dependencies. Worked for me Smile

I got it earlier w/ help from BlueCop, thank you.