How to install Bento4 tools on ubuntu?
Sebastian Wright
have tried all the methods mentioned in the readme of
Some of the methods showed some installing/making processes and some other methods showed errors! (make/cmake shows an installing process...scons method doesn't seem to work.)
My goal is to being able to run mp4decrypt from any directory in my Ubuntu-20.04
But it doesn't seems to work when I enter the command mp4decrypt.( Any other tools doesn't work too!). It doesn't seem to recognize the commands!
I am a beginner and I am a little new to these things. So any help on this would be highly valuable to me and I would be really grateful if anyone can help me! Thank you.
2 Answers
Install Bento4 tools
git clone
cd Bento4/The file README.md, line 82, "Linux and other platforms, using CMake" :
mkdir cmakebuild
cd cmakebuild/
cmake -DCMAKE_BUILD_TYPE=Release ..
makeInstall the executable to /usr/local/bin/, i.e. a system PATH : sudo make install, which means you can use the 26 tools from any location in the OS.
In order to use mp4dash, mp4hls, mp4dashclone which are just bash wrappers to call python scripts like mp4-dash.py, you can move these directories as well.
cp -r ../Source/Python/utils /usr/local/bin
cp -r ../Source/Python/wrappers /usr/local/binThe binstubs depend on relative paths so it's a lot less painful to bring them over as well. Add the wrappers directory to your path to use them like the other compiled executables.
export PATH="/usr/local/bin/wrappers:$PATH"