Skip to content

Instantly share code, notes, and snippets.

@hampelm
Last active December 1, 2016 23:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hampelm/320239f328157aa5c0a0 to your computer and use it in GitHub Desktop.
Save hampelm/320239f328157aa5c0a0 to your computer and use it in GitHub Desktop.

PEG Central video download

Attempting to download http://a2govtv.pegcentral.com/player.php?video=79c62860eeb69a02a1b0049040068d8d


RMTPDump attempt

Install

brew install rmtpdump

Command so far:

rtmpdump -r "rtmp://rho.pegcentral.com/" -a "a2govtv/?doConnect=12345&doPublish=54321" -p "http://a2govtv.pegcentral.com/player.php?video=79c62860eeb69a02a1b0049040068d8d" -y "mp4:PEGvault150806-185824.mp4" -T "mytestpassword" --live -o Test.flv -V

Currently fails at:

ERROR: WriteN, RTMP send error 32 (42 bytes)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header

Use wireshark to get those parameters

  1. Capture traffic when video loads
  2. Edit -> Find packet
  3. Search in "Packet details" for the string "swfurl"

Settings retrieved from wireshark:

?server=a2govtv.pegcentral.com&account=a2govtv&pointer=79c62860eeb69a02a1b0049040068d8d

rtmp://rho.pegcentral.com/a2govtv/?doConnect=12345&doPublish=54321

Still missing token(?)


Misc

http://a2govtv.pegcentral.com/flash/media_player_102908.swf?server=a2govtv.pegcentral.com&account=a2govtv&pointer=79c62860eeb69a02a1b0049040068d8d

http://a2govtv.pegcentral.com/player.php?video=79c62860eeb69a02a1b0049040068d8d

http://a2govtv.pegcentral.com/flash/media_player_102908.swf?server=a2govtv.pegcentral.com&account=a2govtv&pointer=79c62860eeb69a02a1b0049040068d8d


Fort Collins reference

Via http://stream-recorder.com/forum/help-recording-pegcentral-com-t9628.html

rtmpdump.exe -r "rtmp://beta-rtmp.pegcentral.com/peg_c_stream" -a "peg_c_stream/?doConnect=12345&doPublish=54321" -p "http://swoccstudios.pegcentral.com/player.php?video=1cb8dffbf0da798cc9a2eed64a7daec8" -y "mp4:swoccstudios/SE_OlympicEvent_NOVI.mp4" -T "mytestpassword" --live -o Test.flv

http://cable14.pegcentral.com/flash/media_player_102908.swf?server=cable14.pegcentral.com&account=cable14&pointer=8b62877ccb7cfc621446552b3b9ba5c6

http://cable14.pegcentral.com/flash/media_player_102908.swf?server=cable14.pegcentral.com&account=cable14&pointer=8b62877ccb7cfc621446552b3b9ba5c6

====

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment