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)

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.


All times are GMT -6. The time now is 09:10 PM.