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 07-20-2016, 05:37 PM
mdg84 mdg84 is offline
Junior Member
 
Join Date: Jul 2016
Posts: 5
mdg84 is on a distinguished road
Exclamation

RTMPDump Batch Download Script


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.
Reply With Quote
  #2  
Old 07-20-2016, 07:05 PM
-D3n1s- -D3n1s- is offline
Member
 
Join Date: Feb 2015
Location: http://futur3design3r.wixsite.com/d3n1s
Posts: 74
-D3n1s- is on a distinguished road
Default

Re: RTMPDump Batch Download Script


Download.bat

Code:
FOR /F "tokens=1,2* delims=," %%G IN (Download.txt) DO %%G
Download.txt

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"
Reply With Quote
  #3  
Old 07-20-2016, 07:19 PM
mdg84 mdg84 is offline
Junior Member
 
Join Date: Jul 2016
Posts: 5
mdg84 is on a distinguished road
Default

Re: RTMPDump Batch Download Script


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.
Reply With Quote
  #4  
Old 07-20-2016, 07:34 PM
-D3n1s- -D3n1s- is offline
Member
 
Join Date: Feb 2015
Location: http://futur3design3r.wixsite.com/d3n1s
Posts: 74
-D3n1s- is on a distinguished road
Default

Re: RTMPDump Batch Download Script


Quote:
Originally Posted by mdg84 View Post
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?
Reply With Quote
  #5  
Old 07-20-2016, 09:56 PM
mdg84 mdg84 is offline
Junior Member
 
Join Date: Jul 2016
Posts: 5
mdg84 is on a distinguished road
Default

Re: RTMPDump Batch Download Script


Code:
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.
Reply With Quote
  #6  
Old 07-21-2016, 05:46 AM
-D3n1s- -D3n1s- is offline
Member
 
Join Date: Feb 2015
Location: http://futur3design3r.wixsite.com/d3n1s
Posts: 74
-D3n1s- is on a distinguished road
Default

Re: RTMPDump Batch Download Script


Does 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"
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:15 PM.


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