View Single Post
  #8  
Old 01-29-2013, 04: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 08:47 PM.
Reply With Quote