installing dependency
1 |
[ me: ~ ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>yum install zlib*</SPAN> |
:: installing mp4box on linux
+[ download mp4box ]
1 2 |
[ me: ~ ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>wget http://sourceforge.net/projects/gpac/files/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz/download</SPAN> [ me: ~ ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>wget http://sourceforge.net/projects/gpac/files/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz/download</SPAN> |
+[ extract and installing mp4box ]
1 2 3 4 5 6 7 8 9 10 11 12 |
[ me: ~ ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>tar -xzf gpac-0.4.5.tar.gz </SPAN> [ me: ~ ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>tar -xzf gpac_extra_libs-0.4.5.tar.gz </SPAN> [ me: ~ ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>cd gpac_extra_libs</SPAN> [ me: gpac_extra_libs ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>cp -rf * ../gpac/extra_lib/</SPAN> [ me: gpac_extra_libs ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>cd ../gpac</SPAN> [ me: gpac ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>chmod +x configure </SPAN> [ me: gpac ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>./configure </SPAN> [ me: gpac ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>make lib</SPAN> [ me: gpac ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>make apps</SPAN> [ me: gpac ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>make install lib</SPAN> [ me: gpac ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>make install</SPAN> [ me: gpac ]# <SPAN style="COLOR: rgb(153,0,0)" class=code>cp bin/gcc/libgpac.so /usr/lib/</SPAN> |
:: testing mp4box on the web
1 2 3 4 5 6 |
[ me: htdocs ]$ <SPAN style="COLOR: rgb(153,0,0)" class=code>mkdir video</SPAN> [ me: htdocs ]$ <SPAN style="COLOR: rgb(153,0,0)" class=code>cd video/</SPAN> [ me: video ]$ <SPAN style="COLOR: rgb(153,0,0)" class=code>MP4Box -add video.mpg video.mp4</SPAN> MPEG-1 Video import - Resolution 352 x 240 @ 29.9700 FPS MPEG-1 Audio import - sample rate 44100 - 2 channels Saving to video.mp4: 0.500 secs Interleaving |