PDA

View Full Version : MP4Box successful on Ubuntu 8.10?


zackiv31
14th November 2008, 01:21
Anyone been able to get MP4Box to work on Ubuntu 8.10?

I keep getting the following segfault:


$ MP4Box -aviraw audio SOMEVIDEO.ts -out ../I1.raw
*** glibc detected *** MP4Box: double free or corruption (top): 0x000000000216a010 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f84b66cc938]
/lib/libc.so.6(cfree+0x76)[0x7f84b66cef86]
/usr/lib/libgpac-0.4.4.so(AVI_open_input_file+0x85)[0x7f84b6d55185]
/usr/lib/libgpac-0.4.4.so(gf_media_export_avi_track+0x35)[0x7f84b6d62b45]
MP4Box[0x4092a7]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f84b6671466]
MP4Box[0x406949]
======= Memory map: ========
00400000-00424000 r-xp 00000000 fe:01 860438 /usr/bin/MP4Box
00624000-00628000 r--p 00024000 fe:01 860438 /usr/bin/MP4Box
00628000-00629000 rw-p 00028000 fe:01 860438 /usr/bin/MP4Box
0216a000-0218b000 rw-p 0216a000 00:00 0 [heap]
7f84b0000000-7f84b0021000 rw-p 7f84b0000000 00:00 0
7f84b0021000-7f84b4000000 ---p 7f84b0021000 00:00 0
7f84b57be000-7f84b57d4000 r-xp 00000000 fe:01 2195471 /lib/libgcc_s.so.1
7f84b57d4000-7f84b59d4000 ---p 00016000 fe:01 2195471 /lib/libgcc_s.so.1
7f84b59d4000-7f84b59d5000 r--p 00016000 fe:01 2195471 /lib/libgcc_s.so.1
7f84b59d5000-7f84b59d6000 rw-p 00017000 fe:01 2195471 /lib/libgcc_s.so.1
7f84b59d6000-7f84b59d8000 r-xp 00000000 fe:01 2195481 /lib/libdl-2.8.90.so
7f84b59d8000-7f84b5bd8000 ---p 00002000 fe:01 2195481 /lib/libdl-2.8.90.so
7f84b5bd8000-7f84b5bd9000 r--p 00002000 fe:01 2195481 /lib/libdl-2.8.90.so
7f84b5bd9000-7f84b5bda000 rw-p 00003000 fe:01 2195481 /lib/libdl-2.8.90.so
7f84b5bda000-7f84b5bf1000 r-xp 00000000 fe:01 2195492 /lib/libpthread-2.8.90.so
7f84b5bf1000-7f84b5df0000 ---p 00017000 fe:01 2195492 /lib/libpthread-2.8.90.so
7f84b5df0000-7f84b5df1000 r--p 00016000 fe:01 2195492 /lib/libpthread-2.8.90.so
7f84b5df1000-7f84b5df2000 rw-p 00017000 fe:01 2195492 /lib/libpthread-2.8.90.so
7f84b5df2000-7f84b5df6000 rw-p 7f84b5df2000 00:00 0
7f84b5df6000-7f84b5f59000 r-xp 00000000 fe:01 2287989 /usr/lib/libcrypto.so.0.9.8
7f84b5f59000-7f84b6158000 ---p 00163000 fe:01 2287989 /usr/lib/libcrypto.so.0.9.8
7f84b6158000-7f84b6165000 r--p 00162000 fe:01 2287989 /usr/lib/libcrypto.so.0.9.8
7f84b6165000-7f84b617b000 rw-p 0016f000 fe:01 2287989 /usr/lib/libcrypto.so.0.9.8
7f84b617b000-7f84b617f000 rw-p 7f84b617b000 00:00 0
7f84b617f000-7f84b61c8000 r-xp 00000000 fe:01 2287990 /usr/lib/libssl.so.0.9.8
7f84b61c8000-7f84b63c8000 ---p 00049000 fe:01 2287990 /usr/lib/libssl.so.0.9.8
7f84b63c8000-7f84b63c9000 r--p 00049000 fe:01 2287990 /usr/lib/libssl.so.0.9.8
7f84b63c9000-7f84b63ce000 rw-p 0004a000 fe:01 2287990 /usr/lib/libssl.so.0.9.8
7f84b63ce000-7f84b6452000 r-xp 00000000 fe:01 2195482 /lib/libm-2.8.90.so
7f84b6452000-7f84b6651000 ---p 00084000 fe:01 2195482 /lib/libm-2.8.90.so
7f84b6651000-7f84b6652000 r--p 00083000 fe:01 2195482 /lib/libm-2.8.90.so
7f84b6652000-7f84b6653000 rw-p 00084000 fe:01 2195482 /lib/libm-2.8.90.so
7f84b6653000-7f84b67bc000 r-xp 00000000 fe:01 2195478 /lib/libc-2.8.90.so
7f84b67bc000-7f84b69bb000 ---p 00169000 fe:01 2195478 /lib/libc-2.8.90.so
7f84b69bb000-7f84b69bf000 r--p 00168000 fe:01 2195478 /lib/libc-2.8.90.so
7f84b69bf000-7f84b69c0000 rw-p 0016c000 fe:01 2195478 /lib/libc-2.8.90.so
7f84b69c0000-7f84b69c5000 rw-p 7f84b69c0000 00:00 0
7f84b69c5000-7f84b69dc000 r-xp 00000000 fe:01 2287470 /usr/lib/libz.so.1.2.3.3
7f84b69dc000-7f84b6bdb000 ---p 00017000 fe:01 2287470 /usr/lib/libz.so.1.2.3.3
7f84b6bdb000-7f84b6bdd000 rw-p 00016000 fe:01 2287470 /usr/lib/libz.so.1.2.3.3
7f84b6bdd000-7f84b6e5b000 r-xp 00000000 fe:01 884911 /usr/lib/libgpac-0.4.4.so
7f84b6e5b000-7f84b705b000 ---p 0027e000 fe:01 884911 /usr/lib/libgpac-0.4.4.so
7f84b705b000-7f84b705d000 r--p 0027e000 fe:01 884911 /usr/lib/libgpac-0.4.4.so
7f84b705d000-7f84b7065000 rw-p 00280000 fe:01 884911 /usr/lib/libgpac-0.4.4.so
7f84b7065000-7f84b7067000 rw-p 7f84b7065000 00:00 0
7f84b7067000-7f84b7086000 r-xp 00000000 fe:01 2195472 /lib/ld-2.8.90.so
7f84b726b000-7f84b726f000 rw-p 7f84b726b000 00:00 0
7f84b7282000-7f84b7285000 rw-p 7f84b7282000 00:00 0
7f84b7285000-7f84b7286000 r--p 0001e000 fe:01 2195472 /lib/ld-2.8.90.so
7f84b7286000-7f84b7287000 rw-p 0001f000 fe:01 2195472 /lib/ld-2.8.90.so
7fffbf25b000-7fffbf287000 rw-p 7ffffffd3000 00:00 0 [stack]
7fffbf3ff000-7fffbf400000 r-xp 7fffbf3ff000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted
zivester@zives:~/Desktop/$ MP4Box -version
MP4Box - GPAC version 0.4.4
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X

Henrikx
14th November 2008, 10:20
Try this....

wget http://internap.dl.sourceforge.net/sourceforge/gpac/gpac-0.4.4.tar.gz
wget http://internap.dl.sourceforge.net/sourceforg/gpac/gpac_extra_libs-0.4.4.tar.gz
tar -zxf gpac-0.4.4.tar.gz
tar -zxf gpac_extra_libs-0.4.4.tar.gz
cd gpac_extra_libs
cp -r * ../gpac/extra_lib
cd ../gpac
chmod +x configure
./configure
make lib
make apps
sudo make install lib
sudo make install
sudo cp bin/gcc/libgpac.so /usr/lib

zackiv31
14th November 2008, 17:59
me@me:~/gpac$ ./configure

malloc: ../bash/dispose_cmd.c:241: assertion botched
free: called with unallocated block argument
Aborting...Aborted

zackiv31
14th November 2008, 18:13
I tried to use the cvs version (of gpac) as well, this at least got me through install, but I get an unsupported video file:


me@me:~/Desktop$ MP4Box -aviraw video FILE.mkv -out testtttttttttt.avi
Unsupported avi file

Error: Requested URL is not valid or cannot be found
me@me:~/Desktop$ MP4Box -version
MP4Box - GPAC version 0.4.5-DEV (build 31)
GPAC Copyright: (c) Jean Le Feuvre 2000-2005
(c) ENST 2005-200X




During configure, it doesn't seem to link to teh Extra Libraries, they're all set to NO... is that my problem?


me@me:~/Desktop/gpac/gpac$ ./configure

** System Configuration
Install prefix: /usr/local
Source path: /home/zivester/Desktop/gpac/gpac
C compiler: gcc
make: make
CPU: x86_64
Big Endian: no

** GPAC 0.4.5-DEV Core Configuration **
debug version: no
GProf enabled: no
Memory tracking enabled: no
read-only version: no
fixed-point version: no
IPV6 Support: yes
IsoMedia MovieFragments support: yes
SVG Support disabled: no

** Detected libraries **
zlib: system
OSS Audio: yes
ALSA Audio: no
Jack Audio: no
PulseAudio Audio: no
X11 Shared Memory support: no (path: /usr/X11R6)
X11 XVideo support: no
SDL Support: no
OpenGL support: no
TinyGL support: no
OpenSSL support: no
Mozilla XUL/GECKO support: no
Joystick support: no
Renoir enabled: no
DVB Support: yes
XMLPRC Support: no
wxWidgets support: no

** Extra Libraries used **
SpiderMonkey: no
FreeType: no
JPEG: no
OpenJPEG: no
PNG: no
MAD: no
FAAD: no
XVID: no
FFMPEG: no
Xiph OGG: no



Creating config.mak
config.h is unchanged
Done - type 'make help' for make info, 'make' to build

mocham
14th November 2008, 23:43
There's a bug report about this on launchpad. Apparently no one can get it to work under Ubuntu 8.10 even with compiling your own.

zackiv31
15th November 2008, 02:20
Well, I did know this is the case, but I am able to run it on my file without it segfaulting... its just telling me that it is unsupported.. so I think I'm a step in the right direction.. (unless what dependencies I'm missing is causing the segfault).

So how do I configure/make/make install with support for my codecs.. I know my sample file is avc1 and m4a audio

froggy1
15th November 2008, 02:30
@ zackiv31

what are you trying to do? extract the video from the mkv file or from the avi file?

zackiv31
15th November 2008, 04:53
Extract from the mkv file and repackage into a PS3/Xbox 360 suitable file. (mp4)

froggy1
15th November 2008, 05:00
Extract from the mkv file and repackage into a PS3/Xbox 360 suitable file. (mp4)

Well, you cannot do this with the -aviraw option. This option is only for AVI files. If you want to extract the video from other containers like MKV, use the -raw option...

MP4Box -raw <track_id> file.mkv

where <track_id> is the number of the video or audio track - usually should be 1 for the first video track in an MKV

but if you deal with MKVs, why not use mkvextract ?

zackiv31
15th November 2008, 06:49
Hmmm... I'll check it out, never used it... I also have some *.ts files that I want to convert as well... what determines an "avi" The extension is just a container.. is *.ts file an avi or no?

I thought I've seen MP4Box -aviraw used for multiple file formats, but maybe I'm wrong..

zackiv31
15th November 2008, 07:13
@froggy1

Thanks for the tips... I followed the guide in some forum... unfortunately I got to the last step at MP4Box where it of course segfaults... but at least I was able to extract the files correctly using mkvextract.

I'll be looking through these forums to see if I can do these for my many different mp4 files/containers... I wish the internet would just pick one standard to make our lives easier...

froggy1
15th November 2008, 14:12
Hmmm... I'll check it out, never used it... I also have some *.ts files that I want to convert as well... what determines an "avi" The extension is just a container.. is *.ts file an avi or no?

I thought I've seen MP4Box -aviraw used for multiple file formats, but maybe I'm wrong..

No, AVI is a container in its own right, just like mkv, mp4, or ts

-aviraw is only used on avi's to extract tracks from them. You cannot use it on anything else