Advertisement
janter13

FF Prompt

Mar 16th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.74 KB | None | 0 0
  1. @ECHO OFF
  2. REM FF Prompt 1.2
  3. REM Open a command prompt to run ffmpeg/ffplay/ffprobe
  4. REM Copyright (C) 2013-2015  Kyle Schwarz
  5.  
  6. TITLE FF Prompt
  7.  
  8. IF NOT EXIST bin\ffmpeg.exe (
  9.   CLS
  10.   ECHO bin\ffmpeg.exe could not be found.
  11.   GOTO:error
  12. )
  13.  
  14. CD bin || GOTO:error
  15. PROMPT $P$_$G
  16. SET PATH=%CD%;%PATH%
  17. SET FC_CONFIG_DIR=G:\ffmpeg\bin\fonts
  18. SET FONTCONFIG_FILE=fonts.conf
  19. SET FONTCONFIG_PATH=G:\ffmpeg\bin\fonts
  20. CLS
  21. ffmpeg -version
  22. ECHO.
  23. ECHO For help run: ffmpeg -h
  24. ECHO For formats run: ffmpeg -formats ^| more
  25. ECHO For codecs run: ffmpeg -codecs ^| more
  26. ECHO.
  27. ECHO Current directory is now: "%CD%"
  28. ECHO The bin directory has been added to PATH
  29. ECHO.
  30.  
  31. CMD /Q /K
  32. GOTO:EOF
  33.  
  34. :error
  35. ECHO.
  36. ECHO Press any key to exit.
  37. PAUSE >nul
  38. GOTO:EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement