PDA

View Full Version : How to download multiple rtmpdump urls (OSX or Windows)


key
01-27-2013, 10:57 AM
Hi Guys,

I have a question about downloading multiple rtmpdump url's. I've created a text file with rtmpdump links, see attachment.

I can download each file separately via terminal, that work flawless, but it takes much time. I'm talking about 100 url's.

Is there a way to download all urls automatically? I've tried rtmpdump GUI (Mac OSX) but I always get errors like "wrong protocol" and so on. Maybe there are alternative ways to do it.

edit: a solution for Windows would be great too.


thank you guys!
Alex

Stream Ripper
01-27-2013, 10:39 PM
I have the answer;

Stop, Steven - you've been banned repeatedly for breaking the rules.

If you STOP posting illegal crap, and OBEY our rules - you're welcome to stay - but I just don't see that happening with you.

svnpenn18
01-28-2013, 11:43 AM
I have the answer:
http://victorfont.com/files/2012/03/black-hat.jpg

placebo
01-28-2013, 12:15 PM
I can download each file separately via terminal, that work flawless, but it takes much time. I'm talking about 100 url's.
Is there a way to download all urls automatically? I've tried rtmpdump GUI (Mac OSX) but I always get errors like "wrong protocol" and so on. Maybe there are alternative ways to do it.

First of all replace in your text file '-s' to '-W'. Then add the following line at the top of file:
#!/bin/bash
and change permissions by running from terminal chmod o+x <filename>
Hope such article (http://stackoverflow.com/questions/3451086/mac-batchfile-script-solution) helps.

key
01-29-2013, 01:21 AM
thank you for your response. I added the line #!/bin/bash on top and below I listet the "Commands". It looks like this

#!/bin/bash
rtmpdump -r "rtmpe://sample.rtmphost.com/blog" -y "blog82a" -s "http://www.gregplitt.com/sample/membersvideos/workouts/mwplayer.swf" -o sample.flv

I tried to make it bootable and I think it worked but I dont get it how to run this file. I also dont know how to implement the start of the app it self. Basically the bash-file need to open the app "rtmpdump" which is located on my desktop, then it needs to execute the commands.

im sorry, but I never created batch files terminal. :confused:

placebo
01-29-2013, 04:31 AM
-s "http://www.gregplitt.com/sample/membersvideos/workouts/mwplayer.swf"

Use -W "http://www.gregplitt.com/sample/membersvideos/workouts/mwplayer.swf"
Regarding binaries folder please read (http://superuser.com/questions/7150/mac-osx-conventional-places-where-binary-files-should-live).
And please someone who has more skills in Mac OSX help here as well.

key
01-29-2013, 03:38 PM
why use -W instead of -s? If I use -W i receive an swf error.

AmazingMatze
01-29-2013, 04:01 PM
The parameter "-s" is kind of outdated because it doesn't calculate the hash and size automatically. You would have to use the "-w" and "-x" parameter as well. Therefore you would have to calculate these values manually. The parameter "-W" does all that.


--swfhash|-w hexstring SHA256 hash of the decompressed SWF file (32 bytes)
--swfsize|-x num Size of the decompressed SWF file, required for SWFVerification
--swfUrl|-s url URL to player swf file
--swfVfy|-W url URL to player swf file, compute hash/size automatically

Did you try a Windows Batchfile? If the commands don't work sequentially you could also use the "call" command to call up batch files which contain only one RTMPDump commandline.

So for Windows you can try 3 alternative ways of creating a batch download:

Alternative 1:

# BatchDL.bat
@echo off

rtmpdump -r [...]
cls
rtmpdump -r [...]
cls
rtmpdump -r [...]
cls
echo DOWNLOAD FINISHED
echo.

pause

Alternative 2:
Create one main batch and one batch for every single video you want to download.

#Main Batch (Main.bat)
@echo off

start /wait Video-001.bat
start /wait Video-002.bat
start /wait Video-003.bat

echo DOWNLOAD BATCH finished!
echo.

pause

#Called Batchfile (Video-001.bat)
@echo off

rtmpdump -r [...]

exit

Alternative 3:

#Main Batch (Main.bat)
@echo off

call Video-001.bat
cls
call Video-002.bat
cls
call Video-003.bat
cls
echo DOWNLOAD BATCH finished!
echo.

pause

#Called Batchfile (Video-001.bat)

@echo off

rtmpdump -r [...]

key
01-30-2013, 01:07 AM
when I use -W I receive an error, when I use -s everything works flawless, the dumped flv's are working perfect with VLC.
Just to make sure, I will post the exact error tonight when im back home.

The shell is working now, I did it like this:

#! /bin/sh
cd ~/Documents
./rtmpdump -r "rtmpe://beispiel.rtmphost.com/workouts" -y "neverb" -s "http://www.beispiel.com/workouts/mwplayer.swf" -o neverb.flv
./rtmpdump -r "rtmpe://beispiel.rtmphost.com/workouts" -y "abab" -s "http://www.beispiel.com/workouts/mwplayer.swf" -o abab.flv
./rtmpdump -r "rtmpe://beispiel.rtmphost.com/workouts" -y "nlola" -s "http://www.beispiel.com/workouts/mwplayer.swf" -o nlola.flv
./rtmpdump -r "rtmpe://beispiel.rtmphost.com/workouts" -y "kavar" -s "http://www.beispiel.com/workouts/mwplayer.swf" -o kavar.flv

placebo
01-30-2013, 08:46 AM
when I use -W I receive an error, when I use -s everything works flawless

Probably that URL doesnt point to swf file.