-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMP4Box-fix-atom
33 lines (22 loc) · 1.14 KB
/
MP4Box-fix-atom
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Install MP4Box (GPAC) in Ubuntu/Debian
-----------------------------------------------------------------------------------------------------
apt-get install subversion
Download the latest 'gpac' from svn repository.
# svn co https://svn.code.sf.net/p/gpac/code/trunk/gpac gpac
Configure the source package.
# cd gpac
# chmod +x configure
# ./configure --disable-opengl --use-js=no --use-ft=no --use-jpeg=no --use-png=no --use-faad=no --use-mad=no --use-xvid=no --use-ffmpeg=no --use-ogg=no --use-vorbis=no --use-theora=no --use-openjpeg=no
Install the gpack package.
# make
# make install
# cp bin/gcc/libgpac.so /usr/lib
Verify the installation
# which MP4Box
/usr/local/bin/MP4Box
# /usr/local/bin/MP4Box
-----------------------------------------------------------------------------------------------------
nano /usr/bin/atomfix
.....................................................................................................
#!/bin/sh
find /var/www/downloads -regextype posix-egrep -regex '.*\.(avi|m2ts|rar|RAR|3gp|AVI|MPG|mkv|MKV|ogv|wmv|WMV|mp4|mpg|divx|MPG|mpeg|jpg)$' -exec /usr/local/bin/MP4Box -tmp "/var/tmp" -add "{}" -fps X -new "{}" \;