PDA

View Full Version : twitch.tv NetStream.Authenticate.UsherToken


wral
01-11-2013, 05:15 AM
Hi,

i have a problem with watching twitch.tv streams using rtmpdump.

my command line:
rtmpdump -r "rtmp://199.9.255.135/app/jtv_qJJzRT___TOJ0zOE"--swfVfy "http://www-cdn.jtvnw.net/widgets/live_embed_player.r4fa4a6b0df617f1cff79b6f6fbd7c6f a01047d9e.swf?channel=OnGameNet&referer=&userAgent=&channel=OnGameNet" -v -V | vlc -

it retrun:
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed

in debug mode i can see:
...
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetStream.Play.Failed>
DEBUG: Property: <Name: description, STRING: ERR001: You must supply
a valid token via NetStream.Authenticate.UsherToken>
DEBUG: Property: <Name: clientid, NUMBER: 667232623.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Failed
ERROR: Closing connection: NetStream.Play.Failed
DEBUG: Closing connection.

You must supply
a valid token via NetStream.Authenticate.UsherToken>

packet which i sniffed (wireshark) when played stream via browser : http://pastebin.com/1b6kdM2E

the intresting part of this :

!NetStream.Authenticate.UsherToken............>eae5cabba60a1ac4c3b8523cfa92b9d007f98ae8:{"swfDomains": ["justin.tv", "jtvx.com.", "xarth.com", "twitchtv.com", "twitch.tv", "newjtv.com", "jtvnw.net", "wdtinc.com", "imapweather.com", "facebook.com", "starcr.afting.com"], "streamName": "jtv_qJJzRT___TOJ0zOE", "expiration": 1357907539.68525, "server": "video3-1.lhr01"}

any ideas how can i send the NetStream.Authenticate.UsherToken using rtmpdump?

i am begginer so i would be grateful if someone would find a time to help me.

Greetings,
wral

karlo2105
01-11-2013, 06:00 AM
You should provide whole address otherwise we can't help you.

wral
01-11-2013, 06:32 AM
do u mean http://pl.twitch.tv/ongamenet ?

but i have this problem on all twitch streams(if it will go offline u can take probably any other stream).

karlo2105
01-11-2013, 08:06 AM
As your channel is currently offline I found out other channel on the same platform and it should work like this.


rtmpdump -r "rtmp://199.9.255.203/app" -a "app" -f
"WIN 11,5,502,146" -W "http://www-cdn.jtvnw.net/widgets/live_frontpage_player.r
0e1d62d0a743f647535f85603a89f6bac74583bd.swf" -p "http://pl.twitch.tv/" -j "49d9
1f2ab765d06892be522c0879252355e73832:{\"swfDomains\": [\"justin.tv\", \"jtvx.com
\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"newjtv.com\", \"jtvnw.net\
", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"],
\"streamName\": \"jtv_fM7H8SJbnhK1C2y_\", \"expiration\": 1357920276.312999, \"
server\": \"video15-1.ams01\"}" -y "jtv_fM7H8SJbnhK1C2y_" | vlc -
RTMPDump v2.4 GIT-2012-11-09 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 0.00
INFO: width 640.00
INFO: height 360.00
INFO: videodatarate 500.00
INFO: framerate 30.00
INFO: videocodecid 7.00
INFO: audiodatarate 92.77
INFO: audiosamplerate 44100.00
INFO: audiosamplesize 16.00
INFO: stereo TRUE
INFO: audiocodecid 10.00
INFO: author
INFO: copyright
INFO: description
INFO: keywords
INFO: rating
INFO: title
INFO: presetname Custom
INFO: creationdate Thu Jan 10 18:35:59 2013
INFO: videodevice XSplitBroadcaster
INFO: avclevel 32
INFO: avcprofile 100
INFO: videokeyframe_frequency 0
INFO: audiodevice VHAudioCustom
INFO: audiochannels 1
INFO: audioinputvolume 100
INFO: bufferSize 2048k
INFO: maxBitrate 2048k
INFO: xsplitBroadcasterVersion1.3.0.51
INFO: xsplitCoreVersion 1.1.1210.3101 Version 1.1
INFO: xsplitGameSourceVersion 1.1.1.16
INFO: xsplitMediaLibVersion 2.0.0.149
INFO: encoder Lavf54.6.100
INFO: filesize 0.00
268.048 kB / 3.48 sec
ERROR: Download: Failed writing, exiting!