-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeshake.bat
20 lines (15 loc) · 921 Bytes
/
deshake.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
@echo off
REM requires VirtualDub 64, Avisynth 64 and Deshaker plugin
REM create a folder in your VirtualDub install folder, copy this script + *.vcf files + videos as avi containers over, and run script
deshaker_conf.py --deshaker=1 --ds-motion-smoothness=100,100,100,100 --ds-zoom-factor=1.1 --ds-edge-compensation=3 --ds-rolling-shutter=88.89 > deshake1.vcf
deshaker_conf.py --deshaker=2 --ds-motion-smoothness=100,100,100,100 --ds-zoom-factor=1.1 --ds-edge-compensation=3 --ds-rolling-shutter=88.89 --convert-fps=30 --acompress --vcompress=h264 --smoother > deshake2.vcf
for /r %%a in (*.avi) do (
echo directshowSource^("%%~fa"^) > "%%~na.avs"
)
for /F %%a in ('dir /B/D *.avs') do (
echo Processing "%%~fa" pass 1...
..\vdub.exe /s deshake1.vcf /p "%%~fa" "%%~fa.deshaken.avi" /r /c /x
echo Processing "%%~fa" pass 2...
..\vdub.exe /s deshake2.vcf /p "%%~fa" "%%~fa.deshaken.avi" /r /c /x
)
del *.avs