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 > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 01-27-2013, 11:57 AM
key key is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
key is on a distinguished road
Question

How to download multiple rtmpdump urls (OSX or Windows)


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
Attached Images
File Type: jpg gp2.jpg (65.3 KB, 0 views)

Last edited by key : 01-27-2013 at 01:32 PM.
Reply With Quote
  #2  
Old 01-27-2013, 11:39 PM
Stream Ripper Stream Ripper is offline
Super Moderator
 
Join Date: Feb 2007
Location: World
Posts: 886
Stream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond reputeStream Ripper has a reputation beyond repute
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


Quote:
Originally Posted by svnpenn16 View Post
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.
Reply With Quote
  #3  
Old 01-28-2013, 12:43 PM
svnpenn18 svnpenn18 is offline
Banned
 
Join Date: Jan 2013
Posts: 1
svnpenn18 is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


I have the answer:

Last edited by placebo : 01-28-2013 at 01:14 PM. Reason: Black SEO/spammer
Reply With Quote
  #4  
Old 01-28-2013, 01:15 PM
placebo placebo is offline
Moderator - exTerminator
 
Join Date: Aug 2010
Posts: 477
placebo is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


Quote:
Originally Posted by key View Post
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 helps.
Reply With Quote
  #5  
Old 01-29-2013, 02:21 AM
key key is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
key is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


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.
Reply With Quote
  #6  
Old 01-29-2013, 05:31 AM
placebo placebo is offline
Moderator - exTerminator
 
Join Date: Aug 2010
Posts: 477
placebo is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


Quote:
Originally Posted by key View Post
-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.
And please someone who has more skills in Mac OSX help here as well.
Reply With Quote
  #7  
Old 01-29-2013, 04:38 PM
key key is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
key is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


why use -W instead of -s? If I use -W i receive an swf error.
Reply With Quote
  #8  
Old 01-29-2013, 05:01 PM
AmazingMatze AmazingMatze is offline
Member
 
Join Date: Sep 2011
Posts: 52
AmazingMatze is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


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.

Code:
--swfhash|-w hexstring  SHA256 hash of the decompressed SWF file (32 bytes)
--swfsize|-x num        Size of the decompressed SWF file, required for SWFVerification
Code:
--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
Code:
@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)
Code:
@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)
Code:
@echo off

rtmpdump -r [...]

exit
Alternative 3:

#Main Batch (Main.bat)
Code:
@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)

Code:
@echo off

rtmpdump -r [...]

Last edited by AmazingMatze : 01-29-2013 at 09:47 PM.
Reply With Quote
  #9  
Old 01-30-2013, 02:07 AM
key key is offline
Junior Member
 
Join Date: Jan 2013
Posts: 4
key is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


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
Reply With Quote
  #10  
Old 01-30-2013, 09:46 AM
placebo placebo is offline
Moderator - exTerminator
 
Join Date: Aug 2010
Posts: 477
placebo is on a distinguished road
Default

Re: How to download multiple rtmpdump urls (OSX or Windows)


Quote:
Originally Posted by key View Post
when I use -W I receive an error, when I use -s everything works flawless
Probably that URL doesnt point to swf file.
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 11:35 PM.


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