Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 06-06-2010, 01:49 AM
Stream Recorder
 
Posts: n/a
Default

script for extracting Flash video (FLV format) from RTMP stream captured by tcpdump


This PERL script by John Zaitseff 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:
  1. Run as root:
    Code:
    tcpdump -i eth0 -p -s 0 -w file.tcpdump -v tcp src port 1935
  2. As an ordinary user, open the relevant video URL in your browser window and start playback,
  3. When the video finishes playing, quit the tcpdump program (using ^C),
  4. Run this script as an ordinary user:
    Code:
    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.
Reply With Quote
  #2  
Old 06-06-2010, 09:55 AM
lupin lupin is offline
Smooth Streaming addict
 
Join Date: Jun 2010
Posts: 6
lupin is on a distinguished road
Default

Re: script for extracting Flash video (FLV format) from RTMP stream captured by tcpdu


this script support rtmpe rtmps and rtmpt protocols?there is a version compiled in perl for windows?
Reply With Quote
  #3  
Old 06-18-2010, 12:54 AM
Stream Recorder
 
Posts: n/a
Default

Re: script for extracting Flash video (FLV format) from RTMP stream captured by tcpdu


WinDump is the Windows version of tcpdump, the command line network analyzer for UNIX. WinDump is fully compatible with tcpdump and can be used to watch, diagnose and save to disk network traffic according to various complex rules. It can run under Windows 95, 98, ME, NT, 2000, XP, 2003 and Vista.

WinDump captures using the WinPcap library and drivers, which are freely downloadable from the WinPcap.org website. WinDump supports 802.11b/g wireless capture and troubleshooting through the CACE Technologies AirPcap adapter.


So you can capture with WinDump in Windows and then extract RTMP stream with the above mentioned PERL script.
Reply With Quote
  #4  
Old 06-18-2010, 03:01 AM
hyc hyc is offline
RTMPdump team
 
Join Date: Dec 2009
Posts: 169
hyc will become famous soon enoughhyc will become famous soon enough
Default

Re: script for extracting Flash video (FLV format) from RTMP stream captured by tcpdu


You cannot use scripts like this to decode rtmpe or rtmps. Those streams are fully encrypted; without the keys you can't decrypt anything. That's why programs like rtmpsuck are necessary...

perl is an interpreted language, you don't compile it. The same script will run on any system with perl installed.
Reply With Quote
  #5  
Old 10-03-2010, 04:16 PM
overhill overhill is offline
Junior Member
 
Join Date: Oct 2010
Posts: 1
overhill is on a distinguished road
Default

Re: script for extracting Flash video (FLV format) from RTMP stream captured by tcpdu


When I try this, I see the following output at the command line:

$ extract-rtmp-flv file.tcpdump file.flv
Parsing tcpdump output for file.tcpdump

extract-rtmp-flv: Unexpected tcpdump header line, line 1:
15:04:37.148997 IP (tos 0x0, ttl 53, id 0, offset 0, flags [DF], proto TCP (6), length 60)

I'm using:
tcpdump --version
tcpdump version 4.0.0
libpcap version 1.0.0

Any suggestions?

Thanks.
Reply With Quote
Reply Post New Thread
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:31 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons