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 11-04-2009, 08:55 PM
roystonlodge roystonlodge is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
roystonlodge is on a distinguished road
Default

Batch file for controlling rtmpdump


Here is a very basic batch file I threw together for using rtmpdump. The main benefit is that it makes it a little easier to resume an interrupted download. It also allows you to change the URL if you entered it in wrong, change the output filename, and open the output folder.

Clearly, it can be improved upon to take advantage of more of rtmpdump's features. I put it together really, really quickly just to solve a couple of specific issues I was having. Please feel free to improve upon it if you would like, and post your improvements.

Quote:
@ECHO OFF

:ADDRESS

ECHO Enter address of rtmp stream

SET /P ADDRESS=

:OUTPUT

ECHO Enter name of output file

SET /P OUTPUT=

:RUN
CALL rtmpdump.exe -r %ADDRESS% -o %OUTPUT% --resume

:MENU

ECHO 1. Resume Interrupted Download
ECHO 2. Enter A Different URL
ECHO 3. Enter A Different Output Filename
ECHO 4. Open Download Folder
ECHO 5. Quit
ECHO.
ECHO Make your selection:
SET /P SELECTION=
ECHO.
IF %SELECTION% == 1 GOTO RUN
IF %SELECTION% == 2 GOTO ADDRESS
IF %SELECTION% == 3 GOTO OUTPUT
IF %SELECTION% == 4 GOTO FOLDER
IF %SELECTION% == 5 GOTO QUIT

GOTO MENU

:FOLDER

%SystemRoot%\explorer.exe .
ECHO.
GOTO MENU

:QUIT

CLS
EXIT
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 10:54 PM.


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