PDA

View Full Version : rtmpdump (Mac) Need Help with Compiling


mickymouse
11-26-2012, 08:41 PM
I have a mac version 10.8.2 mountain lion.
I downloaded the RTMPDump source tarball from http://rtmpdump.mplayerhq.hu/ and got the rtmpdump-2.3

I read the instrucitons on this website http://trick77.com/2010/07/31/capture-flash-flv-streams-rtmpdump-mac-os-x/
but I don't understand it since this is my first time using terminal.
What i did so far is cd desktop/ and then cd rtmpdump-2.3
...and i pretty much don't know what to do next since i don't understand.

Can anybody help me with the instruction that is written on that website? http://trick77.com/2010/07/31/capture-flash-flv-streams-rtmpdump-mac-os-x/
And What I should write on the terminal?

kikuyan
11-27-2012, 08:24 AM
Hi,
I'm not goot at English, but let me explain. I'm using 10.8.2, too.

Have you installed Xcode and Command Line Tools? If not, install Xcode from App Store, then launch Xcode, go to "Preferences... > Downloads" and install Command Line Tools first.

You should download the latest rtmpdump source code by following the instruction on the home page:
git clone ...

Then type, or copy and paste, these 2 lines:
cd rtmpdump
make SYS=darwin
You'll see a lot of warning messages with "make", but you don't need to care about them, I think.

Then type this line:
sudo make install SYS=darwin mandir='$(prefix)/share/man'
You may see some warning-like message with "sudo" and will see the "Password:" prompt, there you need to type the administrator password. The password you type can't be seen on the terminal, so please don't worry about that.

rtmpdump will be installed under the /usr/local directory.

As to how to use rtmpdump, read the README, manual page "man rtmpdump" or rtmpdump.1.html, and many threads on this forum.

mickymouse
11-27-2012, 08:39 PM
Thank you Kikuyan!
The RMTPDump is in my /usr/local directory.

But I still have a problem...when I opened the RMTPDump, it says this...

RTMPDump 2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname
logout

[Process completed]


I can't type or do anything with the RMTP Dump...is there anything that i can do to solve this?

kikuyan
11-27-2012, 10:08 PM
Hi,
How did you open rtmpdump? It looks like you double clicked the icon or used command-O in Finder.

You should run rtmpdump in Terminal, something like:
cd ~/Desktop
rtmpdump -r rtmp://hostname/app/playpath -o output.flv
or
rtmpdump -r rtmp://hostname/app/playpath -o ~/Desktop/output.flv

You may also need to add -W for swfurl, -p for pageurl, and other options depending on host and/or flv you want to download.

mickymouse
12-04-2012, 06:45 PM
I typed in the following two commands in terminal
cd ~/Desktop
rtmpdump -r rtmp://hostname/app/playpath -o output.flv

rtmpdump -r rtmp://hostname/app/playpath -o ~/Desktop/output.flv



I got an error and can't seem to do anything.Is there something I missed or made a mistake? I'm very confused

RTMPDump 2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
ERROR: Problem accessing the DNS. (addr: hostname)

svnpenn2
12-04-2012, 08:16 PM
I typed in the following two commands in terminal
cd ~/Desktop
rtmpdump -r rtmp://hostname/app/playpath -o output.flv

rtmpdump -r rtmp://hostname/app/playpath -o ~/Desktop/output.flv

I got an error and can't seem to do anything.Is there something I missed or made a mistake? I'm very confused

RTMPDump 2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
ERROR: Problem accessing the DNS. (addr: hostname)

Wow... just wow.

kikuyan
12-05-2012, 12:04 AM
Hi,

Those were just usage examples, minimal set of parameters to run rtmpdump. You have to replace "rtmp", "hostname", "app" and "playpath" with actual values according to the flvs you want to download. "Desktop" and "output" can be replaced with any directory and file names you prefer.

Please look around other threads in this forum to see working examples.

mickymouse
12-05-2012, 07:49 PM
I looked around the forum and saw the working examples...but it's a bit confusing.
Here is one of the examples i looked.
http://stream-recorder.com/forum/use-rtmpdump-rtmp-dump-tutorials-t8911.html

I got the following information of the video that i want to download by pressing Cmd U. How do i put these info into the rtmpdump and get the video download?

<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
<div id='mediaplayer'></div>
<script type='text/javascript'>
jwplayer('mediaplayer').setup({
'flashplayer': '/jwplayer/player.swf',
'autostart': 'true',
'file': 'Session1-opt.mp4',
'streamer': 'rtmp://s3t9g44q94vhqw.cloudfront.net/cfx/st',
'controlbar': 'bottom',
'width': '720',
'height': '432',
'skin': '/jwplayer/glows.zip'
});
</script>

svnpenn2
12-05-2012, 09:13 PM
rtmpdump -o a.flv -r rtmp://s3t9g44q94vhqw.cloudfront.net/cfx/st -a cfx/st -y
mp4:Session1-opt
RTMPDump v2.4-75-ge783798
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: HandShake: client signature does not match!
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO: duration 3053.03
INFO: moovPosition 36.00
INFO: width 480.00
INFO: height 272.00
INFO: videocodecid avc1
INFO: audiocodecid mp4a
INFO: avcprofile 77.00
INFO: avclevel 21.00
INFO: aacaot 2.00
INFO: videoframerate 23.98
INFO: audiosamplerate 44100.00
INFO: audiochannels 1.00
INFO: tags:
INFO: ©too HandBrake 0.9.6 2012022800
INFO: trackinfo:
INFO: length 274763238.00
INFO: timescale 90000.00
INFO: language und
INFO: sampledescription:
INFO: sampletype avc1
INFO: length 134638592.00
INFO: timescale 44100.00
INFO: language und
INFO: sampledescription:
INFO: sampletype mp4a
2830.569 kB / 40.79 sec (1.3%)

mickymouse
12-06-2012, 04:44 AM
svnpenn2
What is the code that you posted for?
I tried out the code
rtmpdump -o a.flv -r rtmp://s3t9g44q94vhqw.cloudfront.net/cfx/st -a cfx/st -y
mp4:Session1-opt


When I typed in this code i got the rtmpdump parameters
Code:
--help|-h Prints this help screen.
--rtmp|-r url URL (e.g. rtmp//hotname[:port]/path)
--host|-n hostname Overrides the hostname in the rtmp url
--port|-c port Overrides the port in the rtmp url
--protocol|-l Overrides the protocol in the rtmp url (0 - RTMP, 3 - RTMPE)
--playpath|-y Overrides the playpath parsed from rtmp url
--swfUrl|-s url URL to player swf file
--tcUrl|-t url URL to played stream (default: "rtmp://host[:port]/app")
--pageUrl|-p url Web URL of played programme
--app|-a app Name of player used
--swfhash|-w hexstring SHA256 hash of the decompressed SWF file (32 bytes)
--swfsize|-x num Size of the decompressed SWF file, required for SWFVerification
--auth|-u string Authentication string to be appended to the connect string
--flashVer|-f string Flash version string
--live|-v Save a live stream, no --resume (seeking) of live strems possible
--flv|-o string FLV output file name, if the file name is - print stream to stdout
--resume|-e Resume a partial RTMP download
--timeout|-m num Timeout connection num seconds
--buffer|-b Buffer time in milliseconds, this option makes only sense in stdout mode
--skip|-k num Skip num keyframes when looking for last keyframe to resume from. Useful if resume fails


What do i do next in order to download the online video that i want?

svnpenn2
12-06-2012, 08:27 AM
svnpenn2
What is the code that you posted for?
I tried out the code
rtmpdump -o a.flv -r rtmp://s3t9g44q94vhqw.cloudfront.net/cfx/st -a cfx/st -y
mp4:Session1-opt
What do i do next in order to download the online video that i want?

Previous post was a paste from command line output. As you can see the command wrapped to a second line, so you would need to join the two lines before running the command.

Please let it be very clear that I am not going more in to depth on this. You are asking about the very basics of the command line, something you should have learned long ago.