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.


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