-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path23FPS - fix_a_lot_of_stuff_#5_with_multi_argument.cmd
51 lines (47 loc) · 1.88 KB
/
23FPS - fix_a_lot_of_stuff_#5_with_multi_argument.cmd
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
43
44
45
46
47
48
49
50
51
@echo off
:LOOP
::has argument ?
if ["%~1"]==[""] (
echo done.
goto END;
)
::argument exist ?
if not exist %~s1 (
echo not exist
goto NEXT;
)
::file exist ?
echo exist
if exist %~s1\NUL (
echo is a directory
goto NEXT;
)
::OK
echo is a file
set FILE_INPUT="%~s1"
set FILE_OUTPUT="%~d1%~p1%~n1_fixed.mkv"
call ffmpeg.exe -y ^
-hide_banner -loglevel "info" -stats ^
-i %FILE_INPUT% ^
-threads 16 ^
-flags "-loop+naq+low_delay" ^
-flags2 "+fast+ignorecrop+showall+export_mvs" ^
-fflags "+genpts+discardcorrupt+fastseek" ^
-movflags "+faststart" ^
-tune "zerolatency" ^
-pix_fmt "yuv420p" ^
-profile:v "high" -level "5.0" ^
^
-x264opts "keyint=4" -g "2" -forced-idr "true" -refs "23" -rc-lookahead "23" ^
-preset "veryslow" -crf "23" -subq "9" -qcomp "0.60" ^
^
-ss "00:00:00.001" ^
-af "aresample=async=1:min_hard_comp=0.100000" -vsync "1" ^
-vf "yadif=0:-1:0,dejudder=cycle=20,mpdecimate,fps=fps=23,setpts=N/FRAME_RATE/TB-STARTPTS,format=pix_fmts=yuv420p" ^
-map_metadata "-1" ^
%FILE_OUTPUT%
:NEXT
shift
goto LOOP
:END
pause