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

rtmpdump for Justin.tv ?

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

thefallenghost 04-02-2013 05:31 PM

rtmpdump for Justin.tv ?


 
Hello,
I'm relatively new to rtmpdump, and I'm trying to use it manually on Justin.tv, but have not been able to as of yet.
I downloaded RTMPDumphelper and it works well on Justin.tv. So I tried to copy the parameters from the rtmpsuck window and use them with rtmpdump manually, but I get "server error".
Also, it's strange that, when I use Wireshark to get the parameters, I get all differents parameters than the rtmpsuck sindow.
I also found an application named jtv-downloader which can use rtmpdump to download streams from Justin.tv. An interesting thing is the usher token is always the same for this program for a specific stream quality, whereas the rtmpsuck (with rtmpdump helper) has a different one each time I load the stream.

Also I'm not really sure what the difference between -s and -w is as both of the aforementioned programs only provide one link for a swf player.

Many thanks!!

edit: when I try to paste the commands from the box in the Params tab of jtv-downloader I get "ERROR: Closing connection: NetStream.Play.StreamNotFound".

freez 04-03-2013 03:59 PM

Re: rtmpdump for Justin.tv ?


 
it keep changin 3 things always each ?? min " token , playpath &rtmp ip" so u will need an update for these so u can able to watch , it is headache:(

gorilla.maguila 04-03-2013 04:17 PM

Re: rtmpdump for Justin.tv ?


 
After 30 seconds rtmpdump stalls with this output:

Code:

DEBUG2:  0000:  03 00 00 00 00 00 74 14  00 00 00 00              ......t.....     
DEBUG2:  0000:  02 00 08 6f 6e 53 74 61  74 75 73 00 00 00 00 00  ...onStatus..... 
DEBUG2:  0010:  00 00 00 00 05 03 00 05  6c 65 76 65 6c 02 00 05  ........level... 
DEBUG2:  0020:  65 72 72 6f 72 00 04 63  6f 64 65 02 00 1b 4e 65  error..code...Ne 
DEBUG2:  0030:  74 53 74 72 65 61 6d 2e  56 69 65 77 65 72 43 6f  tStream.ViewerCo 
DEBUG2:  0040:  75 6e 74 2e 54 6f 74 61  6c 00 0b 64 65 73 63 72  unt.Total..descr 
DEBUG2:  0050:  69 70 74 69 6f 6e 02 00  05 38 39 35 34 34 00 08  iption...89544.. 
DEBUG2:  0060:  63 6c 69 65 6e 74 69 64  00 41 c7 f0 0d df 00 00  clientid.A...... 
DEBUG2:  0070:  00 00 00 09                                        ....             
DEBUG: RTMP_ClientPacket, received: invoke 116 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING: onStatus>
DEBUG: Property: <Name:            no-name, NUMBER: 0.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING: error>
DEBUG: Property: <Name:              code, STRING: NetStream.ViewerCount.Total>
DEBUG: Property: <Name:        description, STRING: 89544>
DEBUG: Property: <Name:          clientid, NUMBER: 803216318.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.ViewerCount.Total
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2:  0000:  03 00 00 00 00 00 74 14  00 00 00 00              ......t.....     
DEBUG2:  0000:  02 00 08 6f 6e 53 74 61  74 75 73 00 00 00 00 00  ...onStatus..... 
DEBUG2:  0010:  00 00 00 00 05 03 00 05  6c 65 76 65 6c 02 00 05  ........level... 
DEBUG2:  0020:  65 72 72 6f 72 00 04 63  6f 64 65 02 00 1b 4e 65  error..code...Ne 
DEBUG2:  0030:  74 53 74 72 65 61 6d 2e  56 69 65 77 65 72 43 6f  tStream.ViewerCo 
DEBUG2:  0040:  75 6e 74 2e 54 6f 74 61  6c 00 0b 64 65 73 63 72  unt.Total..descr 
DEBUG2:  0050:  69 70 74 69 6f 6e 02 00  05 38 33 33 37 38 00 08  iption...83378.. 
DEBUG2:  0060:  63 6c 69 65 6e 74 69 64  00 41 c7 f0 0d df 00 00  clientid.A...... 
DEBUG2:  0070:  00 00 00 09                                        ....             
DEBUG: RTMP_ClientPacket, received: invoke 116 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING: onStatus>
DEBUG: Property: <Name:            no-name, NUMBER: 0.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING: error>
DEBUG: Property: <Name:              code, STRING: NetStream.ViewerCount.Total>
DEBUG: Property: <Name:        description, STRING: 83378>
DEBUG: Property: <Name:          clientid, NUMBER: 803216318.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.ViewerCount.Total
DEBUG2: RTMP_ReadPacket: fd=3
DEBUG2:  0000:  02 00 00 00 00 00 06 04  00 00 00 00              ............     
DEBUG2:  0000:  00 06 00 01 2d 15                                  ....-.           
DEBUG: HandleCtrl, received ctrl, type: 6, len: 6
DEBUG: HandleCtrl, Ping 77077
DEBUG: sending ctrl, type: 0x0007
DEBUG2: RTMP_SendPacket: fd=3, size=6
DEBUG2:  0000:  42 00 00 00 00 00 06 04                            B.......         
DEBUG2:  0000:  00 07 00 01 2d 1

I think a patch is required, Maybe @KSV can help

karlo2105 04-04-2013 02:54 AM

Re: rtmpdump for Justin.tv ?


 
It's working fine to me. I got stream info with rtmpdumphelper.

Code:

rtmpdump -r "rtmp://199.9.255.172/app" -a "app" -f "WIN 11,6,602,180" -W "http://www-cdn.jtvnw.net/widgets/live_site_player.r37889147b85993632c055354534158a802e30b80.swf" -p "http://www.justin.tv/twit#/w/5272587344/73" -j "090d713c5cb4785c8c25abf597592d727e9e08f9:{\"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_r01_Eta3RPwfDCMO\", \"expiration\": 1365069162.823472, \"server\": \"video8-1.ams01\"}" -y "jtv_r01_Eta3RPwfDCMO" | vlc -

RTMPDump v2.4 GIT-2012-12-30 (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                  638.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:  videokeyframe_frequency 1
INFO:  audiochannels          2
INFO:  audiodevice            Elemental Technologies Live
INFO:  videodevice            Elemental Technologies Live
INFO:  encoder                Lavf54.59.106
INFO:  filesize                0.00
4685.763 kB / 62.82 sec
ERROR: Download: Failed writing, exiting!


gorilla.maguila 04-04-2013 03:04 AM

Re: rtmpdump for Justin.tv ?


 
Quote:

Originally Posted by karlo2105 (Post 61288)
It's working fine to me. I got stream info with rtmpdumphelper.


My mystake, I'm in one of those countries that justin.tv restricts bandwith at peak hours, so after 30 seconds rtmpdump stalls.

I wonder if is threre anyway to circumvent this without using a proxy. It looks like the server is waiting for a message from rtmpdump...

karlo2105 04-04-2013 03:33 AM

Re: rtmpdump for Justin.tv ?


 
Try with that proxies.


All times are GMT -6. The time now is 04:06 PM.