Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
RTMPDump Batch Download ScriptHey Everyone,
My situation is I'm trying to grab a large number of video files from a server (250+) and don't want to have to do it manually. I have all of the commands including the unique video URL's stored in a text file ready to be paste into the Command Prompt to download the video. Would it be possible to create a script that will download 1-3 streams at the same time, wait for those to finish and continue down the list until complete? I know a little about batch scripts, but not enough to create and figure this out. Thanks. |
#2
|
|||
|
|||
Re: RTMPDump Batch Download ScriptDownload.bat
Code:
FOR /F "tokens=1,2* delims=," %%G IN (Download.txt) DO %%G Code:
rtmpdump -r "rtmp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov" -o "Video1.mp4" rtmpdump -r "rtmp://dev.wowza.longtailvideo.com/vod/_definst_/mp4:sintel/640.mp4" -o "Video2.mp4" rtmpdump -r "rtmp://s3b78u0kbtx79q.cloudfront.net/cfx/st/metacafe" -o "Video3.mp4" rtmpdump -r "rtmp://r.demo.flowplayer.netdna-cdn.com/play/mp4:vod/demo.flowplayer/buffalo_soldiers.mp4" -o "Video4.mp4" |
#3
|
|||
|
|||
Re: RTMPDump Batch Download ScriptThanks.. that was quick! I'm going to go try it out..
EDIT: unfortunately, it doesn't work. The command window appears for a fraction of a second and closes. |
#4
|
|||
|
|||
Re: RTMPDump Batch Download ScriptCan we see a few command lines?
|
#5
|
|||
|
|||
Re: RTMPDump Batch Download ScriptCode:
rtmpdump -r "rtmpe://website.com:1935/vod_paid" -a "vod_paid" -f "WIN 22,0,0,209" -W "http://website.com/flash/title_player.swf" -u "xxxxxxxxxxxxxxx" -p "http://website.com" -y "mp4:path/to/video1" -o "D:\video1" rtmpdump -r "rtmpe://website.com:1935/vod_paid" -a "vod_paid" -f "WIN 22,0,0,209" -W "http://website.com/flash/title_player.swf" -u "xxxxxxxxxxxxxxx" -p "http://website.com" -y "mp4:path/to/video2" -o "D:\video2" rtmpdump -r "rtmpe://website.com:1935/vod_paid" -a "vod_paid" -f "WIN 22,0,0,209" -W "http://website.com/flash/title_player.swf" -u "xxxxxxxxxxxxxxx" -p "http://website.com" -y "mp4:path/to/video2" -o "D:\video2" |
#6
|
|||
|
|||
Re: RTMPDump Batch Download ScriptDoes it work when you remove:
Code:
-f "WIN 22,0,0,209" Code:
rtmpdump -r "rtmpe://website.com:1935/vod_paid" -a "vod_paid" -W "http://website.com/flash/title_player.swf" -u "xxxxxxxxxxxxxxx" -p "http://website.com" -y "mp4:path/to/video1" -o "video1" rtmpdump -r "rtmpe://website.com:1935/vod_paid" -a "vod_paid" -W "http://website.com/flash/title_player.swf" -u "xxxxxxxxxxxxxxx" -p "http://website.com" -y "mp4:path/to/video2" -o "video2" rtmpdump -r "rtmpe://website.com:1935/vod_paid" -a "vod_paid" -W "http://website.com/flash/title_player.swf" -u "xxxxxxxxxxxxxxx" -p "http://website.com" -y "mp4:path/to/video3" -o "video3" |
#7
|
|||
|
|||
Re: RTMPDump Batch Download ScriptNope, removing that doesn't work either. I think it's probably something with the batch script itself, since the command windows flashes open for a fraction of a second and then closes.
|
#8
|
|||
|
|||
Re: RTMPDump Batch Download ScriptQuote:
Download: Code:
http://www.mediafire.com/download/fx8t0xx97spvn0a/RTMPDump.rar |
#9
|
|||
|
|||
Re: RTMPDump Batch Download ScriptSorry, I made a stupid mistake. I had the text file saved as "downloads.txt" not "download.txt"
I'm an idiot, haha. Thanks again, this is working perfectly! Much appreciated. |
Tags: automatic, batch, rtmpdump, script |
Thread Tools | |
Display Modes | |
|
|