ffmpeg fix script
Frost1 Feb 19th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- @ECHO OFF
- if "%~1"=="" (
- ECHO No file given
- SET path="%~f1"
- SET partialpath="%~dp1"
- SET filename="%~n1"
- SET ext="%~x1"
- REM replace .mp4 with %ext% to make it the same filetype
- SET outpath="%partialpath%%filename%_fixed.mp4"
- SET outpath=%outpath:"=%
- ECHO %path%
- SET /P start="Enter start time: "
- cd /d "E:\Desktop\Stuff\ffmpeg\bin"
- ffmpeg.exe -ss %start% -i %path% -map 0:v -map 0:a -c:v copy -crf 17 -c:a aac -movflags +faststart "%outpath%"
RAW Paste Data