PDA

View Full Version : c-span


chanc
10-13-2012, 12:33 AM
I tried to download from http://www.c-span.org/Debates/ with rtmp-host.sh

And I got :
Administrator@pc ~
$ rtmp-host.sh
Killed flash player for clean dump. Hosts file reset.
Restart video then press enter here.

127.0.0.1 s1g3v4ljhhuslz.cloudfront.net
Press enter to start RtmpSrv, then restart video.

RTMP Server v2.4 GIT-2012-07-26 (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!
Closing connection... done!

RTMPDump v2.4 GIT-2012-07-26 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
Closing connection... done!

RTMPDump v2.4 GIT-2012-07-26 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
INFO: Connected...
ERROR: WriteN, RTMP send error 10053 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Connecting ...
Closing connection... done!

INFO: Connected...
ERROR: WriteN, RTMP send error 10053 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
ERROR: Handshake failed
Closing connection... done!


Can it be done ?

svnpenn
10-13-2012, 08:28 AM
It is working now. Please note some big changes have been made to both my build of RtmpSrv and the rtmp-host.sh script as well. I will be updating the script with warning to reflect this, but for now you need to be using the RtmpSrv version as shown below.

$ rtmp-host.sh
Killed flash player for clean dump. Hosts file reset.
Restart video then press enter here.

127.0.0.1 s1g3v4ljhhuslz.cloudfront.net
Press enter to start RtmpSrv, then restart video.

RTMP Server v2.4-46-gaa28ba7
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
- Playback Failed:
secureTokenResponse

rtmpdump -r "rtmp://s1g3v4ljhhuslz.cloudfront.net:1935/cfx/st" -a "cfx/st" -f "W
IN 11,4,402,278" -W "http://d1k4es7bw1lvxt.cloudfront.net/cspanPlayer.php?progra
mid=289244" -p "http://imagebalancer-1946738455.us-east-1.elb.amazonaws.com/embe
dCloud.php?id=308539-1&width=[W]&height=[H]&autoplay=true" -y "mp4:2012/10/11/20
121011205922001_hd.mp4" -o 20121011205922001_hd.flv -T '- Playback Failed: '
RTMPDump v2.4-46-gaa28ba7
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 3608.68
INFO: moovPosition 181524604.00
INFO: width 640.00
INFO: height 480.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 77.00
INFO: avclevel 30.00
INFO: aacaot 2.00
INFO: videoframerate 22.48
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: tags:
INFO: ©too Lavf53.6.0
INFO: trackinfo:
INFO: length 3244202.00
INFO: timescale 899.00
INFO: language und
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 159111168.00
INFO: timescale 44100.00
INFO: language und
INFO: sampledescription:
INFO: sampletype mp4a
4465.516 kB / 88.45 sec (2.4%)

Samizdat
11-15-2012, 03:23 PM
'rtmpdump -r "rtmp://s1g3v4ljhhuslz.cloudfront.net:1935/cfx/st" -a "cfx/st" -f "W
IN 11,4,402,278" -W "http://d1k4es7bw1lvxt.cloudfront.net/cspanPlayer.php?progra
mid=289244" -p "http://imagebalancer-1946738455.us-east-1.elb.amazonaws.com/embe
dCloud.php?id=308539-1&width=[W]&height=[H]&autoplay=true" -y "mp4:2012/10/11/20
121011205922001_hd.mp4"' - are you serious? Have the copyright wars really deteriorated to the point that such a ridiculous amount of horseshit must go into a command line to play some crummy stream?

svnpenn
11-15-2012, 03:33 PM
'rtmpdump -r "rtmp://s1g3v4ljhhuslz.cloudfront.net:1935/cfx/st" -a "cfx/st" -f "W
IN 11,4,402,278" -W "http://d1k4es7bw1lvxt.cloudfront.net/cspanPlayer.php?progra
mid=289244" -p "http://imagebalancer-1946738455.us-east-1.elb.amazonaws.com/embe
dCloud.php?id=308539-1&width=[W]&height=[H]&autoplay=true" -y "mp4:2012/10/11/20
121011205922001_hd.mp4"' - are you serious? Have the copyright wars really deteriorated to the point that such a ridiculous amount of horseshit must go into a command line to play some crummy stream?

Better

rtmpdump -o a.flv -r rtmp://video.c-spanarchives.org/fastplay -y mp4:full/201
2/10/22/20121022205949001_hd
RTMPDump v2.4-72-g64c96bf
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
825.451 kB / 5.11 sec

Samizdat
11-20-2012, 02:28 PM
Thanks, svnpenn, you cats at S-R are the best. Your streamlined command line worked like a charm for me!

I'm not quite up to speed on writing my own Adobe encryption reversal code yet, but maybe I'll get there in a few years! Speaking of which, could reversal be achieved more simply by Wiresharking one's DVR, for instance?

Samizdat
11-21-2012, 04:57 PM
could reversal be achieved more simply by Wiresharking one's DVR, for instance?

guess not

Samizdat
03-08-2013, 05:30 PM
Better

Better yet (as it seems to produce a cleaner capture)

rtmpdump -r "rtmp://s1g3v4ljhhuslz.cloudfront.net:443/cfx/st/mp4:2013/03/06/20130306105954002_hd.mp4" -o a.mp4


(in this case, the opening hour of United States Senator Rand Paul's filibuster, beginning at minute 48 of hour 11 [ file 20130306105954002_hd.mp4 ] of 2013-03-06 C-Span Senate proceedings and continuing with hours 12 through 24 [ files 20130306115954002_hd.mp4 through 20130306235954002_hd.mp4 )