Skip to content

Instantly share code, notes, and snippets.

@yude
Created October 7, 2020 11:03
Show Gist options
  • Save yude/312c8fe2ca771b27e641712c94d198cd to your computer and use it in GitHub Desktop.
Save yude/312c8fe2ca771b27e641712c94d198cd to your computer and use it in GitHub Desktop.
rem パスは適宜変更してください。
chcp 65001
@ECHO OFF
:FILEDROP
:REPEAT
ffmpeg -i %1 -filter_complex reverse;areverse "C:\Users\yude\Desktop\%~n1_tmp.mp4"
ffmpeg -i %~n1_tmp.mp4 -vf hflip,vflip "C:\Users\yude\Desktop\%~n1_tmp2.mp4"
ffmpeg -i %~n1_tmp2.mp4 -af asetrate=44100*130/100,atempo=100/130 -vf colorlevels=rimax=0:gimax=0:bimax=0:rimin=1:gimin=1:bimin=1 "C:\Users\yude\Desktop\%~n1_output.mp4"
del "C:\Users\yude\Desktop\%~n1_tmp.mp4"
del "C:\Users\yude\Desktop\%~n1_tmp2.mp4"
if "%~2"=="" GOTO EXIT
shift
GOTO REPEAT
:EXIT
pause
@yude
Copy link
Author

yude commented Oct 7, 2020

ffmpeg.exe へのパスが通っている必要があります。通っていない場合は通すか、ffmpeg.exe までのパスに ffmpeg を置き換えてください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment