Hi. i am installing packages but there is a problem. i used following commands but when i wrote "ffmpeg -version" -bash: ffmpeg: command not found
i added these codes in install-ffmpeg.sh via "nano install-ffmpeg.sh"
sudo apt-get install build-essential git-core checkinstall yasm texi2html libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev pkg-config
LIBVPX_VERSION=1.2.0
FFMPEG_VERSION=2.0.1
if [ ! -d "/usr/local/src/libvpx-${LIBVPX_VERSION}" ]; then
cd /usr/local/src
sudo git clone http://git.chromium.org/webm/libvpx.git "libvpx-${LIBVPX_VERSION}"
cd "libvpx-${LIBVPX_VERSION}"
sudo git checkout "v${LIBVPX_VERSION}"
sudo ./configure
sudo make
sudo checkinstall --pkgname=libvpx --pkgversion="${LIBVPX_VERSION}" --backup=no --deldoc=yes --default
fi
if [ ! -d "/usr/local/src/ffmpeg-${FFMPEG_VERSION}" ]; then
cd /usr/local/src
sudo wget "http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2"
sudo tar -xjf "ffmpeg-${FFMPEG_VERSION}.tar.bz2"
cd "ffmpeg-${FFMPEG_VERSION}"
sudo ./configure --enable-version3 --enable-postproc --enable-libvorbis --enable-libvpx
sudo make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:${FFMPEG_VERSION}" --backup=no --deldoc=yes --default
fi
root@bigbluebuttonvps:~# nano install-ffmpeg.sh
root@bigbluebuttonvps:~# chmod +x install-ffmpeg.sh
root@bigbluebuttonvps:~# ./install-ffmpeg.sh
./install-ffmpeg.sh: line 1: bash:: command not found
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
git-core is already the newest version.
checkinstall is already the newest version.
yasm is already the newest version.
texi2html is already the newest version.
libvorbis-dev is already the newest version.
libx11-dev is already the newest version.
libxfixes-dev is already the newest version.
zlib1g-dev is already the newest version.
pkg-config is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@bigbluebuttonvps:~# ffmpeg -version
-bash: ffmpeg: command not found