Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)This is very simple in any scripting language. if you are using simple batch file in Windows then use:
Code:
for /f "tokens=1-6 delims=/:." %%a in ("%date%.%time%") do set FileName="MyShow - %%a-%%b-%%c - %%d-%%e-%%f.flv" |
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Quote:
Could you please explain how it works? Specifically: 1. Where do the variables %%b, %%c, %%d, %%e, %%f come from? 2. What is "tokens=1-6 delims=/:."? |
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Quote:
Code:
C:\Documents and Settings\Администратор\Мои документы\rtmpdump-2.3>for /F "token |
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Quote:
PS: when using outside the batch file use single % eg: %a instead of %%a |
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Any chance I could get you to write that same script but for a linux machine instead of a windows one? Thanks. :D
|
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Quote:
Code:
#! /bin/bash |
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Quote:
Hi i have a problem with this script. the output flv file is always MyShow with no date and when restart the script the previous flv file is overwritten. |
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Quote:
This should work: Code:
#! /bin/bash |
Re: Renaming rtmpdump downloads automatically based on date and time (Windows, Linux)Quote:
|
All times are GMT -6. The time now is 09:17 PM. |