Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- if "%~1"=="" (
- ECHO No file given
- pause
- exit
- )
- 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%"
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement