First install ffpmeg.
Instructions taken from: https://github.com/gpac/gpac/wiki/GPAC-Build-Guide-for-Linux
Instructions for enabling GCC v8 (fixing compile crash: stdatomic.h: No such file or directory) taken from: https://programmerah.com/fatal-error-stdatomic-in-c-c-compilation-40871/
# yum group install "Development Tools" # yum install zlib zlib-devel python2-scons cmake yasm # yum install centos-release-scl # yum install devtoolset-8 # useradd mp4box # su mp4box $ cd $ git clone https://github.com/gpac/gpac.git $ cd gpac $ scl enable devtoolset-8 bash $ ./configure $ make $ <Ctrl + D> $ <Ctrl + D> # cd /home/mp4box/gpac # make install # echo "/usr/local/lib/" > /etc/ld.so.conf.d/usr-local-lib.conf # ldconfig
Test:
$ MP4Box