Advertisement
Frost1

ffmpeg fix script

Feb 19th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @ECHO OFF
  2. if "%~1"=="" (
  3. ECHO No file given
  4. pause
  5. exit
  6. )
  7.  
  8. SET path="%~f1"
  9.  
  10. SET partialpath="%~dp1"
  11. SET filename="%~n1"
  12. SET ext="%~x1"
  13.  
  14. REM replace .mp4 with %ext% to make it the same filetype
  15. SET outpath="%partialpath%%filename%_fixed.mp4"
  16. SET outpath=%outpath:"=%
  17.  
  18. ECHO %path%
  19.  
  20. SET /P start="Enter start time: "
  21.  
  22. cd /d "E:\Desktop\Stuff\ffmpeg\bin"
  23. ffmpeg.exe -ss %start% -i %path% -map 0:v -map 0:a -c:v copy -crf 17 -c:a aac -movflags +faststart "%outpath%"
  24. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement