Advertisement
Guest User

Untitled

a guest
May 26th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. ECHO OFF
  2. REM FF Prompt 1.1
  3. REM Open a command prompt to run ffmpeg/ffplay/ffprobe
  4. REM Copyright (C) 2013 Kyle Schwarz
  5.  
  6. TITLE FF Prompt
  7.  
  8. IF NOT EXIST %~dp0\bin\ffmpeg.exe (
  9. CLS
  10. ECHO bin\ffmpeg.exe could not be found.
  11. GOTO:error
  12. )
  13.  
  14. CD %~dp0\bin || GOTO:error
  15. PROMPT $G
  16. CLS
  17. ffmpeg -version
  18. SET PATH=%CD%;%PATH%
  19. ECHO.
  20. ECHO For help run: ffmpeg -h
  21. ECHO For formats run: ffmpeg -formats ^| more
  22. ECHO For codecs run: ffmpeg -codecs ^| more
  23. ECHO.
  24. ECHO Current directory is now: "%CD%"
  25. ECHO The bin directory has been added to PATH
  26. ECHO.
  27. ffmpeg -i %1 -ss 00:00:10.000 -to 00:00:20.000 -c:v libvpx -crf 4 -b:v 1500K -vf scale=640:-1 %~dp0\output.webm
  28. CMD /F:ON /Q /K
  29. GOTO:EOF
  30.  
  31. :error
  32. ECHO.
  33. ECHO Press any key to exit.
  34. PAUSE >nul
  35. GOTO:EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement