Stream Recorder
06-06-2010, 12:49 AM
This PERL script by John Zaitseff (http://www.zap.org.au/software/utils/scripts/extract-rtmp-flv) extracts Flash video (FLV file format) from an RTMP stream captured by tcpdump. To capture the RTMP stream and extract it to an FLV video:
Run as root:
tcpdump -i eth0 -p -s 0 -w file.tcpdump -v tcp src port 1935
As an ordinary user, open the relevant video URL in your browser window and start playback,
When the video finishes playing, quit the tcpdump program (using ^C),
Run this script as an ordinary user:
extract-rtmp-flv file.tcpdump file.flv
This program is free software. You may distribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either Version 2 of the license, or (at your option) any later version.
Run as root:
tcpdump -i eth0 -p -s 0 -w file.tcpdump -v tcp src port 1935
As an ordinary user, open the relevant video URL in your browser window and start playback,
When the video finishes playing, quit the tcpdump program (using ^C),
Run this script as an ordinary user:
extract-rtmp-flv file.tcpdump file.flv
This program is free software. You may distribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either Version 2 of the license, or (at your option) any later version.