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

streamhq.tv - How to download rtmp:// stream with rtmpdump

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

matrixxx 08-06-2011 10:47 PM

streamhq.tv - How to download rtmp:// stream with rtmpdump


 
Im having an issue with the following

Code:

http://lankajustin.com/link2/
When I grab that stream and combine the code :

rtmpdump --live -r "rtmp://173.192.81.189/streamhq/100358" -p "http://streamhq.tv/player.php?channel_id=100358&width=600&height=430" -W "http://streamhq.tv/player/player.swf" -o "video.flv"

chap 08-07-2011 11:57 PM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
it seems,they are using SecureToken method.
ask for help decipher KSV

Ed999 08-09-2011 07:09 AM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
They are also concealling the true http address of the SWF file, by hiding it behind a http 302 redirect.

RTMPdump can't handle the necessary redirect, unlike a web browser, so it won't stream in RTMPDump but will in your browser.

nullacht 08-17-2011 09:51 AM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
Quote:

Originally Posted by matrixxx (Post 31472)

Code:

http://lankajustin.com/link2/

They are using SecureToken protection. The key is stored in the .swf file.

Code:

("secureTokenResponse", null, TEA.decrypt(event.info.secureToken, "%Xr8e(nKa@#."));
RTMPdump v2.4 command line:

Code:

rtmpdump -r "rtmp://173.192.81.189/streamhq/102569" -W "http://streamhq.tv/player/player.swf" -o 102569.flv --live -T "%Xr8e(nKa@#."
Code:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:  author
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname            Custom
INFO:  creationdate          Mon Aug 15 12:17:35 2011
INFO:  videodevice          Gadmei TV Belle CaptureC
INFO:  framerate            15.00
INFO:  width                320.00
INFO:  height                240.00
INFO:  videocodecid          avc1
INFO:  videodatarate        200.00
INFO:  avclevel              31.00
INFO:  avcprofile            66.00
INFO:  videokeyframe_frequency5.00
INFO:  audiodevice          Yamaha DS1x Native Audio
INFO:  audiosamplerate      22050.00
INFO:  audiochannels        1.00
INFO:  audioinputvolume      75.00
INFO:  audiocodecid          .mp3
INFO:  audiodatarate        32.00
3458.650 kB / 110.68 sec


matrixxx 08-17-2011 02:46 PM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
Thanks a lot nullacht !

MaxMustermann 09-14-2011 07:18 AM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
This approach doesn't work for me anymore. Did they change something? Does it still work for you?

chap 09-14-2011 10:04 AM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
Use rtmpsusk

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 : redirect
  flashVer : WIN 10,3,183,7
    swfUrl : http://hdcaster.net/player.swf
ERROR: RTMP_HashSWF: couldn't contact swfurl http://hdcaster.net/player.swf (HTT
P error 302)
    tcUrl : rtmp://188.138.121.99/redirect
  pageUrl : http://hdcaster.net/player.php?channel_id=101324&width=600&height=4
30
ERROR: WriteN, RTMP send error 10038 (16 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!

WARNING: Trying different position for client digest!
Processing connect
      app : hdcaster
  flashVer : WIN 10,3,183,7
    swfUrl : http://hdcaster.net/player.swf
ERROR: RTMP_HashSWF: couldn't contact swfurl http://hdcaster.net/player.swf (HTT
P error 302)
    tcUrl : rtmp://184.173.77.32/hdcaster
  pageUrl : http://hdcaster.net/player.php?channel_id=101324&width=600&height=4
30
      live : no
  Playpath : 101324
 Saving as : 101324
INFO: Metadata:
INFO:  author
INFO:  copyright
INFO:  description
INFO:  keywords
INFO:  rating
INFO:  title
INFO:  presetname            Custom
INFO:  creationdate          Tue Sep 13 10:57:56 2011
INFO:  videodevice          Gadmei TV Belle CaptureC
INFO:  framerate            15.00
INFO:  width                320.00
INFO:  height                240.00
INFO:  videocodecid          avc1
INFO:  videodatarate        200.00
INFO:  avclevel              31.00
INFO:  avcprofile            66.00
INFO:  videokeyframe_frequency5.00
INFO:  audiodevice          Yamaha DS1x Native Audio
INFO:  audiosamplerate      22050.00
INFO:  audiochannels        1.00
INFO:  audioinputvolume      75.00
INFO:  audiocodecid          .mp3
INFO:  audiodatarate        32.00
WARNING: ignoring too small audio packet: size: 0


MaxMustermann 09-14-2011 10:12 AM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
I did use rtmpsuck, but it stopped after a few seconds. You have some errors in your posted output, too. Does it work for you nevertheless?

chap 09-14-2011 11:11 AM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
Quote:

Originally Posted by MaxMustermann (Post 32484)
Does it work for you nevertheless?

Yes
Code:

General
Complete name                    : C:\Documents and Settings\Администратор\Мои документы\STREAM\rtmpdump-2.3-windows\rtmpdump-2.3\rtmpexplorer\101324
Format                          : Flash Video
File size                        : 5.66 MiB
Duration                        : 2mn 8s
Overall bit rate                : 370 Kbps
_presetname                      : Custom
_creationdate                    : Tue Sep 13 10:57:56 2011
_videodevice                    : Gadmei TV Belle CaptureC
_framerate                      : 15.000
_width                          : 320.000
_height                          : 240.000
_videocodecid                    : avc1
_videodatarate                  : 200.000
_avclevel                        : 31.000
_avcprofile                      : 66.000
_videokeyframe_frequency        : 5.000
_audiodevice                    : Yamaha DS1x Native Audio
_audiosamplerate                : 22050.000
_audiochannels                  : 1.000
_audioinputvolume                : 75.000
_audiocodecid                    : .mp3
_audiodatarate                  : 32.000

Video
Format                          : AVC
Format/Info                      : Advanced Video Codec
Format profile                  : Baseline@L3.1
Format settings, CABAC          : No
Format settings, ReFrames        : 1 frame
Codec ID                        : 7
Duration                        : 2mn 8s
Bit rate mode                    : Constant
Bit rate                        : 314 Kbps
Nominal bit rate                : 200 Kbps
Width                            : 320 pixels
Height                          : 240 pixels
Display aspect ratio            : 4:3
Frame rate mode                  : Variable
Frame rate                      : 15.000 fps
Standard                        : NTSC
Color space                      : YUV
Chroma subsampling              : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)              : 0.273
Stream size                      : 4.81 MiB (85%)

Audio
Format                          : MPEG Audio
Format version                  : Version 2
Format profile                  : Layer 3
Codec ID                        : 2
Codec ID/Hint                    : MP3
Duration                        : 2mn 8s
Bit rate mode                    : Constant
Bit rate                        : 32.0 Kbps
Channel(s)                      : 1 channel
Sampling rate                    : 22.05 KHz
Compression mode                : Lossy
Stream size                      : 502 KiB (9%)


MaxMustermann 09-16-2011 11:06 AM

Re: streamhq.tv - How to download rtmp:// stream with rtmpdump


 
Ok, it's working with rtmpsuck. But I try to play the stream in XBMC and it stops after a second. This is how I use it with XBMC:
Code:

rtmp://50.23.65.25/hdcaster playpath=101634 swfUrl=http://hdcaster.net/player.swf pageUrl=http://hdcaster.net/player.php?channel_id=101634&width=600&height=430


All times are GMT -6. The time now is 03:51 PM.