Created installation scripts for Windows and Unix to automatically set the ffmpeg PATH variables
This commit is contained in:
24
ffmpeg-install-scripts/ffmpeg-path-installer.bat
Normal file
24
ffmpeg-install-scripts/ffmpeg-path-installer.bat
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
ECHO OFF
|
||||||
|
|
||||||
|
IF NOT EXIST bin\ffmpeg.exe (
|
||||||
|
CLS
|
||||||
|
ECHO bin\ffmpeg.exe could not be found.
|
||||||
|
GOTO:error
|
||||||
|
)
|
||||||
|
|
||||||
|
CD bin || GOTO:error
|
||||||
|
PROMPT $G
|
||||||
|
CLS
|
||||||
|
SETX PATH "%CD%;%PATH%"
|
||||||
|
ECHO.
|
||||||
|
ECHO Successfully set ffmpeg's PATH variable.
|
||||||
|
ECHO If you move this folder, make sure to run this script again.
|
||||||
|
ECHO.
|
||||||
|
PAUSE
|
||||||
|
GOTO:EOF
|
||||||
|
|
||||||
|
:error
|
||||||
|
ECHO.
|
||||||
|
ECHO Press any key to exit.
|
||||||
|
PAUSE >nul
|
||||||
|
GOTO:EOF
|
||||||
11
ffmpeg-install-scripts/ffmpeg-path-installer.sh
Normal file
11
ffmpeg-install-scripts/ffmpeg-path-installer.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ ! -e "ffmpeg" ]
|
||||||
|
then
|
||||||
|
echo "ffmpeg couldn't be found. Make sure you are executing this script from the same folder."
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
mkdir -p /usr/local/bin
|
||||||
|
cp ffmpeg /usr/local/bin/
|
||||||
|
export PATH=$PATH:/usr/local/bin
|
||||||
|
|
||||||
|
echo "Successfully copied ffmpeg to /usr/local/bin and set the PATH variable."
|
||||||
Reference in New Issue
Block a user