daily pastebin goal
34%
SHARE
TWEET

ffmpeg fix script

Frost1 Feb 19th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top