View Single Post
  #1  
Old 09-25-2014, 02:35 PM
fcvideos fcvideos is offline
Junior Member
 
Join Date: Sep 2014
Posts: 2
fcvideos is on a distinguished road
Default

howto download fcgov.com pegcentral videos with rtmpdump


http://www.fcgov.com/cable14/video-archive.php

A few months ago fcgov.com changed to pegcentral format. I have not been able to figure out how to download. From reading various posting here and elsewhere, looks like rtmpdump should work (Umbuntu 13.10). However, I have never used rtmpdump before and I cannot figure out the command line.

I want to be able to download anyvideo from the above site, but this is the one I tried in the tests below.
http://cable14.pegcentral.com/player...46552b3b9ba5c6

Thank you.

TERSE:
rtmpdump -r "rtmp://sampi-rtmp.pegcentral.com/peg_c_stream/?doConnect=12345&doPublish=54321" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -T "mytestpassword" -y "mp4:cable14/831-Medium.mp4" --live -o z.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: RTMP_ReadPacket, failed to read RTMP packet header

VERBOSE:
rtmpdump -V -r "rtmp://sampi-rtmp.pegcentral.com/peg_c_stream/?doConnect=12345&doPublish=54321" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -T "mytestpassword" -y "mp4:cable14/831-Medium.mp4" --live -o z.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 0
DEBUG: Parsed host : sampi-rtmp.pegcentral.com
DEBUG: Parsed app : peg_c_stream
DEBUG: Protocol : RTMP
DEBUG: Hostname : sampi-rtmp.pegcentral.com
DEBUG: Port : 1935
DEBUG: Playpath : mp4:cable14/831-Medium.mp4
DEBUG: tcUrl : rtmp://sampi-rtmp.pegcentral.com:1935/peg_c_stream/?doConnect=12345&doPublish=54321
DEBUG: app : peg_c_stream/?doConnect=12345&doPublish=54321
DEBUG: live : yes
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 96850052
DEBUG: HandShake: FMS Version : 3.0.1.1
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 2500000
DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 349 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,5,7,7009>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: Property: <Name: mode, NUMBER: 1.00>
DEBUG: (object end)
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Success>
DEBUG: Property: <Name: description, STRING: Connection succeeded.>
DEBUG: Property: <Name: data, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: version, STRING: 3,5,7,7009>
DEBUG: (object end)
DEBUG: Property: <Name: clientid, NUMBER: 862120.00>
DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
DEBUG: Property: <Name: secureToken, STRING: 959a0241817e3cd7cbbd37a187211dbcda4232a9951b6e9611 417344de6832447a3c0110>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: Invoking secureTokenResponse
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking createStream
DEBUG: FCSubscribe: mp4:cable14/831-Medium.mp4
DEBUG: Invoking FCSubscribe
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:cable14/831-Medium.mp4
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.

OTHER ATTEMPTS -- ALL FAILED:
rtmpdump -V --live -r "rtmp://sampi-rtmp.pegcentral.com/peg_c_stream" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -p
rtmpdump -V --live -r "rtmp://sampi-rtmp.pegcentral.com/peg_c_stream" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -p "http://cable14.pegcentral.com/player.php?video=8b62877ccb7cfc621446552b3b9ba5c" -y "mp4:cable14/831-Medium.mp4" -T "mytestpassword" -o z.flv
rtmpdump -V -r "rtmp://sampi-rtmp.pegcentral.com/cable14/831-Medium.mp4" -live -o z.flv
rtmpdump -V -r "rtmp://sampi-rtmp.pegcentral.com/peg_c_stream/?doConnect=12345&doPublish=54321" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -T "mytestpassword" -y "mp4:cable14/831-Medium.mp4" --live -o z.flv
rtmpdump -V -r "rtmp://sampi-rtmp.pegcentral.com/peg_c_stream/?doConnect=12345&doPublish=54321" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -T "mytestpassword" -y "mp4:cable14/831-Medium.mp4" -o z.flv
rtmpdump -r "rtmp://beta-rtmp.pegcentral.com/peg_c_stream" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -p "http://cable14.pegcentral.com/player.php?video=8b62877ccb7cfc621446552b3b9ba5c6" -T "mytestpassword" --live -o Test.flv
rtmpdump -r "rtmp://beta-rtmp.pegcentral.com/peg_c_stream" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -p "http://cable14.pegcentral.com/player.php?video=8b62877ccb7cfc621446552b3b9ba5c6" -y mp4:z.mp4 -T "mytestpassword" --live -o Test.flv
rtmpdump -r "rtmp://sampi-rtmp.pegcentral.com/cable14/831-Medium.mp4"
rtmpdump -r "rtmp://sampi-rtmp.pegcentral.com/cable14/831-Medium.mp4" -o z.flv
rtmpdump -r "rtmp://sampi-rtmp.pegcentral.com/peg_c_stream/?doConnect=12345&doPublish=54321" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -T "mytestpassword" -y "mp4:cable14/831-Medium.mp4" -o z.flv
rtmpdump -r "rtmp://theta-rtmp.pegcentral.com/peg_c_stream/?doConnect=12345&doPublish=54321" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -T "mytestpassword" -y "mp4:cable14/831-Medium.mp4" -o z.flv
Reply With Quote