Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

[rtmpdump] Problem downloading from Justin.tv

(http://stream-recorder.com/forum/showthread.php?t=9611)

any ANONYMOUS forum user 07-20-2011 10:17 AM

[rtmpdump] Problem downloading from Justin.tv


 
http://lists.mplayerhq.hu/pipermail/...ly/001456.html


Can this patch really,really work?


Ksv Guru ,you are the man to test:)

KSV 07-20-2011 11:54 AM

Re: [rtmpdump] The Justin.tv problem


 
I have tested the patch and it wasn't working as is. i fixed a little bug and then successfully tested it on 720p stream.

Code:

RTMPDump v2.4 GIT-2011-07-11 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  duration              0.00
INFO:  width                1280.00
INFO:  height                720.00
INFO:  videodatarate        1464.84
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:  filesize              0.00
2190.062 kB / 33.58 sec


reumb 07-20-2011 01:45 PM

Re: [rtmpdump] The Justin.tv problem


 
Yes!


Thats great news,thank you KSV and Antoine :)

toine512 07-21-2011 09:08 AM

Re: [rtmpdump] The Justin.tv problem


 
Hello !

Quote:

Originally Posted by KSV (Post 31079)
I have tested the patch and it wasn't working as is. i fixed a little bug and then successfully tested it on 720p stream.

Which bug ? It works for me (under Ubuntu).

Anyway, multi-bitrate streams (240p, 360p, 720p, 1080p) use Akamai's regular FMS, UsherToken isn't needed.

Sample command that works :
Code:

toine512@toine512-VirtualBox:~/Bureau/rtmpdump-build$ ./rtmpdump -j "63b8de623d8060ca46535b1e18f627bc3e614181:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv__f21mA5gfzG_rqvm\", \"expiration\": 1311265516.8942881, \"server\": \"jfk01-video3-2\"}" -r rtmp://199.9.255.111/app/jtv__f21mA5gfzG_rqvm -s http://www-cdn.justin.tv/widgets/live_site_player.r8ae7cdf2fe5e11446646691ef54dff2195814fa1.swf -v -o out.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  author               
INFO:  copyright           
INFO:  description         
INFO:  keywords             
INFO:  rating               
INFO:  title               
INFO:  presetname            Custom
INFO:  creationdate          Thu Jul 21 23:01:08 2011
INFO:  videodevice          VHVideoCustom
INFO:  width                1088.00
INFO:  height                612.00
INFO:  videocodecid          avc1
INFO:  videodatarate        200.00
INFO:  avclevel              0.00
INFO:  avcprofile            0.00
INFO:  videokeyframe_frequency5.00
INFO:  audiodevice          VHAudioCustom
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO:  audioinputvolume      100.00
INFO:  audiocodecid          2.00
INFO:  audiodatarate        100.00
INFO:  bufferSize            1200k
INFO:  frameRate            333333
INFO:  maxBitrate            1200k
INFO:  videoDevice          XSplitBroadcaster
INFO:  xsplitBroadcasterVersion1.2.1.51
INFO:  xsplitCoreVersion    1.0.1106.2902 Public Beta 4 RC5
5399.334 kB / 72.95 sec^C
Caught signal: 2, cleaning up, just a second...
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 7146
5446.403 kB / 73.11 sec
Download may be incomplete (downloaded about 0.00%), try resuming


KSV 07-21-2011 10:53 AM

Re: [rtmpdump] The Justin.tv problem


 
Quote:

Originally Posted by toine512 (Post 31111)
Which bug ? It works for me (under Ubuntu).

Under windows it's stripping all the quotes from variables which makes token invalid. for testing purposes i hardcoded the token value in program and only then was able to successfully download the stream.

toine512 07-21-2011 11:15 AM

Re: [rtmpdump] The Justin.tv problem


 
So the problem is the command prompt, can you send me your Windows builds ? (I can't cross compile and I haven't a working Mingw/MSYS environment yet)

Thanks

KSV 07-21-2011 01:04 PM

Re: [rtmpdump] The Justin.tv problem


 
sure, i will post it tommorow morning.

toine512 07-21-2011 01:30 PM

Re: [rtmpdump] The Justin.tv problem


 
That's great. :cool:

toine512 07-21-2011 04:18 PM

Re: [rtmpdump] The Justin.tv problem


 
I succeeded to cross compile under Ubuntu (read the README twice before posting ! :rolleyes: ) !

Haha, Windows command prompt is so ugly ! I'll search tomorrow for the right escaping character or a solution with a batch script ...

KSV 07-22-2011 12:07 AM

Re: [rtmpdump] The Justin.tv problem


 
I have further tested it. escape character in windows cmd shell is caret (^) but it didn't solved the problem. however using the backslash as escape character (same as in linux) it passes the correct value of token. so we just need to replace " with \" in token value to get it working.

reumb 07-22-2011 06:05 AM

Re: [rtmpdump] The Justin.tv problem


 
Ksv guru finds solution to all

did you mean change " to \ in here.

Code:

  while ((opt =
          getopt_long(argc, argv,
                      "hVveqzr:s:t:p:a:b:f:o:u:C:n:c:l:y:Ym:k:d:A:B:T:w:x:W:X:S:#j:",
                      longopts, NULL)) != -1)
    {


windows users who want to compile i recommend svnpenns excellent guide

http://svnpenn.blogspot.com/2011/06/mingw-and-msys.html

before you use mingw you must set path (or do you?) http://www.mingw.org/wiki/Getting_Started
read carefully : Graphical User Interface Installer and Environment Settings
example of inserted path C:\MinGW\bin;C:\MinGW\msys\1.0\bin; before the oldtext in the box

http://svnpenn.blogspot.com/2011/06/rtmpdump-mingw.html


this way it only took half a day to understand and to compile a working rtmpdump

KSV 07-22-2011 06:32 AM

Re: [rtmpdump] The Justin.tv problem


 
Quote:

Originally Posted by reumb (Post 31146)
did you mean change " to \ in here.

no, you need to change it when you pass the token on windows command line.

Code:

rtmpdump.exe
-r "rtmp://199.9.255.137/app/jtv_XFt96w52uPeVHPeM"
-j "a97875b2579fcae4964157cb4cca8696dc5baa2e:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_XFt96w52uPeVHPeM\", \"expiration\": 1311335368.6078761, \"server\": \"lhr01-video5-1\"}"
-W "http://www-cdn.justin.tv/widgets/live_frontpage_player.r894a72efd2e4c274a47075a851f98064bc143954.swf"
-o Test.flv


chap 07-22-2011 09:47 AM

Problem downloading from Justin.tv with rtmpdump


 
Quote:

Originally Posted by KSV (Post 31145)
Changelog:
Code:

Added support for UsherToken Authentication used by justin.tv (thanx to Antoine)
Code:

http://www.mediafire.com/file/w8a69d8id4padac/rtmpdump-2.4.zip

Thanks.but for some reason does not work:(
Code:

RTMP Server v2.4 GIT-2011-07-21 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!

rtmpdump -r "rtmp://199.9.255.142/app" -a "app" -f "WIN 10,3,181,16" -W "http://
www-cdn.justin.tv/widgets/live_frontpage_player.r894a72efd2e4c274a47075a851f9806
4bc143954.swf" -p "http://ru.justin.tv/" -y "jtv_aN3Zuj9i_kuCWHyG" -o jtv_aN3Zuj
9i_kuCWHyG.flv

Closing connection... done!

RTMPDump v2.4 GIT-2011-07-21 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed
WARNING: Trying different position for client digest!
Duplicate request, skipping.
Closing connection... done!


KSV 07-22-2011 10:39 AM

Re: Problem downloading from Justin.tv with rtmpdump


 
you are not supplying the token. you have to use -j or --jtv switch to provide the token. currently there is no support in rtmpsrv or rtmpsuck to automatically detect the token. however i am thinking to implement it in next few days.

toine512 07-22-2011 11:18 AM

Re: [rtmpdump] The Justin.tv problem


 
I tried with Powershell and not cmd : the backslash works in cmd but not in Powershell, the escaping character for Powershell is a mystery ...

chap 07-22-2011 12:01 PM

Re: Problem downloading from Justin.tv with rtmpdump


 
Quote:

Originally Posted by KSV (Post 31154)
you are not supplying the token. you have to use -j or --jtv switch to provide the token. currently there is no support in rtmpsrv or rtmpsuck to automatically detect the token. however i am thinking to implement it in next few days.

yes,works(thanks for the help and explanations)
Code:

C:\Documents and Settings\Администратор\Мои документы\STREAM\rtmpdump-2.3-window
s\rtmpdump-2.3\rtmpexplorer\rtmpdump-2.4>rtmpdump -r "rtmp://199.9.255.138/app/j
tv_n8ByWNUQRhHSH0uB" -j "b314cedb3281d467b619cf1ae319e8ac4fe753ff:{\"swfDomains\
": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\",
 \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \
"streamName\": \"jtv_n8ByWNUQRhHSH0uB\", \"expiration\": 1311359065.579859, \"se
rver\": \"lhr01-video6-1\"}" -W "http://www-cdn.justin.tv/widgets/live_frontpage
_player.r894a72efd2e4c274a47075a851f98064bc143954.swf" -o jtv.flv
RTMPDump v2.4 GIT-2011-07-21 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
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:  filesize              0.00
4924.292 kB / 63.46 sec


kiko_aams 07-24-2011 08:41 PM

Re: [rtmpdump] The Justin.tv problem


 
my code to watch on VLC failed
Code:

rtmpdump -v -r "rtmp://199.9.252.37/app/jtv_H0wPOG869jkjE4Sw" -j "a97875b2579fcae4964157cb4cca8696dc5baa2e:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\": \"jtv_H0wPOG869jkjE4Sw\", \"expiration\": 1311335368.6078761, \"server\": \"lhr01-video5-1\"}"  -W "http://www-cdn.justin.tv/widgets/live_frontpage_player.r894a72efd2e4c274a47075a851f98064bc143954.swf" -p "http://pt-br.justin.tv/lisciota#/w/1520328416/2" | "C:\Users\USER\Documents\CD\VLC\vlc.exe" -

evol 07-27-2011 02:52 AM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Quote:

Originally Posted by chap (Post 31204)
:cool: :cool: Thanks.
Code:

RTMP Server v2.4 GIT-2011-07-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!

rtmpdump -r "rtmp://199.9.255.139/app" -a "app" -f "WIN 10,3,181,34" -W "http://
www-cdn.justin.tv/widgets/live_frontpage_player.r894a72efd2e4c274a47075a851f9806
4bc143954.swf" -p "http://ru.justin.tv/" --jtv "16c8c84fa8bded531e2b8bccb69a55d2
4119677c:{\"swfDomains\": [\"justin.tv\", \"jtvx.com\", \"xarth.com\", \"twitcht
v.com\", \"twitch.tv\", \"wdtinc.com\", \"imapweather.com\", \"facebook.com\", \
"starcrafting.com\"], \"streamName\": \"jtv_26Pf9251kSdKX_y5\", \"expiration\":
1311573403.575099, \"server\": \"lhr01-video7-1\"}" -y "jtv_26Pf9251kSdKX_y5" -o
 jtv_26Pf9251kSdKX_y5.flv

Closing connection... done!

RTMPDump v2.4 GIT-2011-07-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for client digest!
Duplicate request, skipping.
Closing connection... done!

INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:  author
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname            Custom
INFO:  creationdate          Sun Jul 24 15:15:15 2011
INFO:  videodevice          VT Video Device
INFO:  framerate            30.00
INFO:  width                480.00
INFO:  height                270.00
INFO:  videocodecid          avc1
INFO:  videodatarate        384.00
INFO:  avclevel              31.00
INFO:  avcprofile            66.00
INFO:  videokeyframe_frequency3.00
INFO:  audiodevice          VT Audio Device
INFO:  audiosamplerate      44100.00
INFO:  audiochannels        2.00
INFO:  audioinputvolume      98.00
INFO:  audiocodecid          .mp3
INFO:  audiodatarate        128.00
2834.164 kB / 45.09 sec


yes it works, checked (_http://www.bloomberg.com/tv)

If you dont mind me asking what method did you use in Windows to get rtmpsrv to work with justin.tv ? Ive tried the host trick with this with no joy. :(
Code:

127.0.0.1 199.9.255.139
Also ive used the dumping of the plugin-container.exe method using grep explained in this blog but all i get is
Code:

-uThe system cannot find the file specified.
grep: writing output: Invalid argument
grep: writing output: Invalid argument

Do you have any advice or suggestions im running xp sp3 with rtmpdump v2.4 GIT-2011-07-22 (Compiled by KSV).

Thanxs

KSV 07-27-2011 08:24 AM

Re: [rtmpdump] Problem downloading from Justin.tv


 
use RTMPexplorer to redirect traffic to rtmpsrv or rtmpsuck.

evol 07-28-2011 05:22 AM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Quote:

Originally Posted by KSV (Post 31260)
use RTMPexplorer to redirect traffic to rtmpsrv or rtmpsuck.

Thanks for the reply KSV, shame RTMPexplorer needs .Net Framework 4 its a real hog on my windows xp sp3 machine. Wish there was a console app that did the same thing as RtmpExplorer or the guy who made it released the code.

Also thanks KSV for you up to date builds.

Stream Recorder 07-28-2011 09:21 PM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Quote:

Originally Posted by evol (Post 31276)
shame RTMPexplorer needs .Net Framework 4 its a real hog on my windows xp sp3 machine. Wish there was a console app that did the same thing as RtmpExplorer or the guy who made it released the code.

Install Linux and use command line rtmpsrv, rtmpsuck.

evol 07-29-2011 02:10 AM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Quote:

Originally Posted by Stream Recorder (Post 31292)
Install Linux and use command line rtmpsrv, rtmpsuck.

lol yep been running linux for well over 3 or 4 years now and your right about rtmpsrv, rtmpsuck working straight out the box, but there is times when windows is only available to me. :(

Stream Recorder 07-29-2011 10:26 AM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Quote:

Originally Posted by evol (Post 31296)
lol yep been running linux for well over 3 or 4 years now and your right about rtmpsrv, rtmpsuck working straight out the box, but there is times when windows is only available to me. :(

A bootable flash drive or a virtual machine might help, especially if you use a terminal without any GUI.

jamba 09-23-2011 01:19 PM

justin.tv problem


 
I try to detect rtmp from hxxp://www.justin.tv/freddy49_lemans using rtmpsuck and RTMPexplorer but it seems nothing detected.
can't rtmpsuck detect justin.tv ?

chap 09-23-2011 01:45 PM

Re: justin.tv problem


 
Code:

RTMP Proxy Server v2.4 GIT-2011-07-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
Processing connect
      app : app
  flashVer : WIN 10,3,183,7
    swfUrl : http://www-cdn.justin.tv/widgets/live_site_player.rf62a7c464d81dc41
f1a9a77cc9b1abbb294e9485.swf
    tcUrl : rtmp://199.9.255.166/app
  pageUrl : http://ru.justin.tv/freddy49_lemans
usherToken : 450c454d219bdaa8bc92bd509d177a1cb9780a6f:{"swfDomains": ["justin.tv
", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "imapweat
her.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_2V2iKEdgTu9HZt
1R", "expiration": 1316810542.3201671, "geo_ip": "188.185.23.108", "server": "am
s01-video2-1"}
      live : no
  Playpath : jtv_2V2iKEdgTu9HZt1R
 Saving as : jtv_2V2iKEdgTu9HZt1R
INFO: Metadata:
INFO:  author
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname            Custom
INFO:  creationdate          Fri Sep 23 17:29:04 2011
INFO:  videodevice          VHVideoCustom
INFO:  width                640.00
INFO:  height                360.00
INFO:  videocodecid          avc1
INFO:  videodatarate        200.00
INFO:  avclevel              0.00
INFO:  avcprofile            0.00
INFO:  videokeyframe_frequency5.00
INFO:  audiodevice          VHAudioCustom
INFO:  audiosamplerate      22050.00
INFO:  audiochannels        2.00
INFO:  audioinputvolume      100.00
INFO:  audiocodecid          2.00
INFO:  audiodatarate        100.00
INFO:  bufferSize            700k
INFO:  frameRate            333333
INFO:  maxBitrate            700k
INFO:  videoDevice          XSplitBroadcaster
INFO:  xsplitBroadcasterVersion1.2.1.63
INFO:  xsplitCoreVersion    1.0.1109.1101 Public Beta 5
INFO:  xsplitGameSourceVersion1.1.0.7
INFO:  xsplitMediaLibVersion 2.0.0.59
WARNING: ignoring too small audio packet: size: 0


jamba 09-24-2011 08:40 AM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Thanks chap, what version of RTMPexplorer that you were using?

I try to load the link within rtmpexplorer but is seems the window are hang and not loading a flash video at all.
while if I try using on firefox it loaded, this link for example
hxxp://www.justin.tv/velliton_78
I'm really curious about this, can you send me the link of your rtmpexplorer. Thanks

chap 09-24-2011 09:47 AM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Quote:

Originally Posted by jamba (Post 32801)
what version of rtmpexplorer that you were using?

Download rtmpexplorer

jamba 09-24-2011 12:47 PM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Quote:

Originally Posted by chap (Post 32802)

Thank you so much chap, it works really great.
Thank you :)

buksnatata 11-20-2011 02:01 PM

Re: [rtmpdump] Problem downloading from Justin.tv


 
is there any tutorial what to do exactly i got all needed software, thanks in advance. This is link for example http://justin.tv/herotv001.

chap 11-20-2011 02:51 PM

Re: [rtmpdump] Problem downloading from Justin.tv


 

buksnatata 11-20-2011 07:48 PM

Re: [rtmpdump] Problem downloading from Justin.tv


 
Hello Chap, thanks for your answer
I had some issues with user agent in IE but i fixed it if anyone has a problem with internet explorer restore user agent on default because i had a problem to open justin.tv (always deploying error 440).
Here is fix for that kind of problem :

1. Open RegEdit: Click start >> run, type regedit, and click ok.
2. Locate Key: HKEY_LOCAL_MACHINE (and also HKEY_CURRENT_USER) >> SOFTWARE
>> Microsoft >> Windows >> CurrentVersion >> Internet Settings >> User Agent >> Post Platform
3. Remove Key: Right Click the key and click delete.
4. Shutdown Regedit: Close regit by x’ing it out.
5. Restart Browsers: You should only have to restart your browser for the changes to take affect.

Quote:

Originally Posted by chap (Post 34512)



All times are GMT -6. The time now is 08:37 AM.