mdg84
07-20-2016, 04:37 PM
Hey 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.
-D3n1s-
07-20-2016, 06:05 PM
Download.bat
FOR /F "tokens=1,2* delims=," %%G IN (Download.txt) DO %%G
Download.txt
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"
mdg84
07-20-2016, 06:19 PM
Thanks.. 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.
-D3n1s-
07-20-2016, 06:34 PM
Thanks.. 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.
Can we see a few command lines?
mdg84
07-20-2016, 08:56 PM
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"
Example of the command lines, obscured of course. Works perfect when I manually pasted into the command prompt.
-D3n1s-
07-21-2016, 04:46 AM
Does it work when you remove:
-f "WIN 22,0,0,209"
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"
mdg84
07-21-2016, 06:06 AM
Nope, 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.
-D3n1s-
07-21-2016, 06:27 AM
Nope, 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.
Do you even have rtmpdump.exe in the same folder?
Download:
http://www.mediafire.com/download/fx8t0xx97spvn0a/RTMPDump.rar
mdg84
07-21-2016, 06:49 AM
Sorry, 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. :)
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.