USTREAM.tv RTMP - HandShake, client signiture does not match

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #1
I'm trying to make a plugin for USTREAM.tv, but I'm running into problems with rtmp again. Some streams work (when using this server: ustream.flash.internapcdn.net) and some streams end after 60s (when using flash*.ustream.tv).

Download the plugin here and you'll see what I mean:
http://plugin.googlecode.com/files/USTREAM.tv_DEBUG.zip

I made it so that when you click on a channel, a dialog pops up telling you what server the stream is on.

Here is the debug log:
http://pastebin.com/m7ce15afc

I noticed that every time I connect to the flash*.ustream.tv server, I get this error:
Code:
WARNING: RTMP_LIB::CRTMP::HandShake, client signiture does not match!

and the video plays for about 60s before ending. I also tried using rtmpdump/flvstreamer and I get the same results.
find quote
spiff Offline
Retired Developer
Posts: 12,386
Joined: Nov 2003
Post: #2
not surprised since both apps use librtmp Wink
find quote
frosty Offline
Member
Posts: 61
Joined: Aug 2008
Reputation: 0
Location: England
Post: #3
Check out this thread related to problems playing RTMP streams: http://www.xbmc.org/forum/showthread.php?t=53156

In particular, are the failing streams using SWF Verification, which isn't supported? http://trac.xbmc.org/ticket/6403 (and I'd guess isn't likely to be added, due to potential legal dodgyness)

If you have a problem, first search to see if it's already been addressed.
Then, read this. Include exactly which version of XBMC and plugin/script you're using. 'latest' means nothing and may lead to rage and/or a lack of helpful replies.
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #4
frosty Wrote:In particular, are the failing streams using SWF Verification, which isn't supported? http://trac.xbmc.org/ticket/6403 (and I'd guess isn't likely to be added, due to potential legal dodgyness)

I'm not sure. I don't see those verification errors in the debug log.

I ran wireshark one one channel while playing in Firefox and XBMC. Everything is the same, but this one section.

Firefox
Quote:connect?appustreamVideo/1560303flashVerWIN 9,0,124,0swfUrl/http://cdn1.ustream.tv/swf/4/viewer.rsl.210.swftcUrl3rtmp://flash29.ustream.tv:1935/ustreamVideo/1560303fpadcapabilities@.audioCodecs@videoCodecs@ovideoFunction?pageUrl(http://www.ustream.tv/channel/rsa-vs-engobjectEncodingrpinrpin.0.07533168207542734shimHost3http://cdn1.ustream.tv/swf/4/videofeedwidget.42.swfautoPlay

XBMC
Quote:connect?appustreamVideo/1560303flashVerLNX 9,0,115,0swfUrl/http://cdn1.ustream.tv/swf/4/viewer.rsl.210.swftcUrl3rtmp://flash29.ustream.tv:1935/ustreamVideo/1560303fpadcapabilities@.audioCodecs@videoCodecs@ovideoFunction?pageUrl(http://www.ustream.tv/channel/rsa-vs-eng

You think this rpin code is some type of verification? The rpin code is unique for every channel.

btw, I also tried playing the stream using jw_player (flash player) and I get the same results. The video stops playing after 40-60s. At this point, I'm guessing that there is some kind of verification stopping the videos from playing.

Using jw_player.swf
*You can add the rtmp and playpath and it will play.
(This post was last modified: 2009-09-27 20:35 by stacked.)
find quote
canesfan1 Offline
Junior Member
Posts: 2
Joined: Sep 2009
Reputation: 0
Post: #5
how did u get the jw player to play a ustream rtmp? ive been trying for days and i cant figure out the code ,
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #6
canesfan1 Wrote:how did u get the jw player to play a ustream rtmp? ive been trying for days and i cant figure out the code ,

use that link above...

file = rtmp url
id = playpath
find quote
canesfan1 Offline
Junior Member
Posts: 2
Joined: Sep 2009
Reputation: 0
Post: #7
k i figured it out , i see it stops playing after 45 seconds or so , ive seen videos on atdhe.net and channelsurfing.net that work for alot longer w. o this problem

strange
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #8
canesfan1 Wrote:k i figured it out , i see it stops playing after 45 seconds or so , ive seen videos on atdhe.net and channelsurfing.net that work for alot longer w. o this problem

strange

can you be a little more descriptive? Rolleyes

what type of steam, servers, xbmc or flash player?
find quote
adambasord Offline
Junior Member
Posts: 23
Joined: Jul 2009
Reputation: 0
Post: #9
is there any way i can use this script to get the code for my own channel and other channels not listed in the top 40? it works great and some channels do load in xbmc but others do crash the program alltogether
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #10
adambasord Wrote:is there any way i can use this script to get the code for my own channel and other channels not listed in the top 40? it works great and some channels do load in xbmc but others do crash the program alltogether

you can use this function to play (try to play Laugh) any ustream link. The url must be the link to the channel you want to play. The other two variables can be anything.
Code:
url='http://www.ustream.tv/chrispirillo'
name=''
user=''
showList(url, name, user)
(This post was last modified: 2009-10-01 21:41 by stacked.)
find quote
adambasord Offline
Junior Member
Posts: 23
Joined: Jul 2009
Reputation: 0
Post: #11
where abouts do i do this please?
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #12
adambasord Wrote:where abouts do i do this please?

Rolleyes.....using a script.

edit the last few lines.
find quote
adambasord Offline
Junior Member
Posts: 23
Joined: Jul 2009
Reputation: 0
Post: #13
thank you now i understand much apprciated
find quote
moofoo3 Offline
Junior Member
Posts: 3
Joined: Oct 2009
Reputation: 0
Post: #14
Was curious what you finally found for this. The link you've posted above appears to have expired. I've also noticed that it plays for roughly 20 seconds. When looking through some source for one of their players I noticed this in the output.

http://cgw.ustream.tv/Viewer/playStream/...d=17398344 it seems that the rpin is something related to an authentication token. However I've not found a way to prove this, thus my interest in your findings.
find quote
stacked Offline
Skilled Python Coder
Posts: 802
Joined: Jun 2007
Reputation: 18
Post: #15
moofoo3 Wrote:Was curious what you finally found for this. The link you've posted above appears to have expired. I've also noticed that it plays for roughly 20 seconds. When looking through some source for one of their players I noticed this in the output.

http://cgw.ustream.tv/Viewer/playStream/...d=17398344 it seems that the rpin is something related to an authentication token. However I've not found a way to prove this, thus my interest in your findings.

I know about the rpin. I agree with you that it's most likely some sort of authentication. I'm not sure if this is related to the streams stopping. If it is, how do you use it? Just run that url above before you start the stream?
find quote
Post Reply