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
|