App for testing RTMP URLs - good for (Flash) plugin development

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
BlueCop Offline
Skilled Python Coder
Posts: 1,430
Joined: May 2004
Reputation: 71
Thumbs Up  App for testing RTMP URLs - good for (Flash) plugin development
Post: #1
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
find quote
Temhil Offline
Skilled Python Coder
Posts: 397
Joined: Apr 2008
Reputation: 1
Location: Canada
Post: #2
Thanks for the info!! Smile

[Image: passionxbmc_signature.png]
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

[Image: project_thin_badge.gif]
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #3
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]
find quote
BlueCop Offline
Skilled Python Coder
Posts: 1,430
Joined: May 2004
Reputation: 71
Post: #4
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
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 9
Location: Sweden
Question  RTMPDump
Post: #5
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

Confused
find quote
BlueCop Offline
Skilled Python Coder
Posts: 1,430
Joined: May 2004
Reputation: 71
Post: #6
Awesome thanks for the info Gamester17

I have been looking for something like this for a while.
find quote
sfaxman Offline
Skilled Python Coder
Posts: 155
Joined: Jul 2008
Reputation: 0
Location: Tunisia / Germany
Post: #7
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

Confused
RTMPDump uses the sources of XBMC Laugh

sfaxman
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 9
Location: Sweden
Post: #8
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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #9
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..
find quote
acun Offline
Junior Member
Posts: 6
Joined: Jan 2009
Reputation: 0
Post: #10
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
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #11
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
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,333
Joined: Jan 2008
Reputation: 2
Location: US
Post: #12
@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

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #13
after me requesting it as i said further up. COPYING is also in place
find quote
mr.b Offline
Senior Member
Posts: 165
Joined: May 2007
Reputation: 0
Post: #14
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
find quote
rwparris2 Offline
Team-XBMC Python Developer
Posts: 1,333
Joined: Jan 2008
Reputation: 2
Location: US
Post: #15
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.

Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
find quote