-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathVideo-ToBMP.bat
More file actions
42 lines (34 loc) · 829 Bytes
/
Copy pathVideo-ToBMP.bat
File metadata and controls
42 lines (34 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
REM USE "@setlocal EDE (EnableDelayedExpansion )" -
REM Because I cannot use "SET /p" - IN LOOP,
REM Cannot use & Ampersand symbol in URL (I need it for list)
@setlocal EnableDelayedExpansion
@echo off
echo %CD%
echo %~dp0
cd /d %~dp0
REM For first file
REM %1
REM For multiple files
echo %*
set COUNTER=0
for %%x in (%*) do (
echo %%x
set /A COUNTER+=1
)
echo COUNTER = %COUNTER%
if %COUNTER% GTR 0 (
if %COUNTER% EQU 1 (
echo _____GET ONE FILE_____
) else (
echo _____GET MULTI FILES: %COUNTER% files_____
)
for %%x in (%*) do (
REM //////////////////// MAIN \\\\\\\\\\\\\\\\\\\\\\\\\
SET /p time="Enter time of frame (like hh:mm:ss.mss - 00:00:00.000): "
ECHO time = !time!;
ffmpeg.exe -ss !time! -i %%x -r 1 -q:v 1 -vframes 1 "%%~nx_output.bmp"
)
) else (
echo _____GET NO ONE FILES_____
)
pause