Le mercredi 8 septembre 2010 04:28:15, Jean-Francois Mauguit a écrit :
> Hello,
Hi !
> Concerning the 0.9.3, here is my ./configure output
(...)
> * Additional libraries
> - magic : no (requires ocaml-magic)
Concerning ocaml-magic: this dependency is highly recommended on linux, at
least for 0.9.x releases.
In 1.0.0-beta1, we have finally decided to assume that files named .mp3 are
detected as mp3 files and also to try to keep file extensions when downloading
distant files. Therefore, libmagic should not be as crutial.
However, in 0.9.x, we still only rely on file's content to detect them and for
this reason, ocaml-magic is highly recommended because otherwise the mp3
decoder may accept non-mp3 files, like jpeg pictures.. (!)
> But I've an error on the make stage
>
> OCAMLC -c sources/http_aac.ml
> File "sources/http_aac.ml", line 34, characters 12-23:
> Error: Unbound value Faad.create
(...)
> I'm trying to compile on Ubuntu 10.04.
I can see several reasons for that. Either you do not have faad installed or
it did not compile.
Are you compiling with the -full tarball ? If so, could you also post the part
of the build logs that concern ocaml-faad ?
Also, there is an issue with faad and mp4 files for now. Short story: we were
using an unofficial library from faad, named mp4ff which was removed from
Debian.
Long story:
Mp4ff was initially an internal library in faad to read mp4 files which the
debian packagers had turned into a shared library (and other distro too, like
gentoo I think). However, faad's upstream explained that he did not want to
maintain the library/API and that he was not sure the code was correct.
For these reasons, the debian packagers later removed the mp4ff library from
the archive and we no longer can build on this library.
The situation now is quite lame. On the one hand, there are no simple library
for reading mp4 files in the Debian archive. There are two alternatives:
* ffmpeg, which is way too big for a dependency only used for reading mp4 files
* libmp4v2 which has a licence incompatible with the GPL license and is not
even packaged in Debian.
Even worse, some projects decided to include a static copy of mp4ff in their
sources which causes many problems, in particular is there is a security issue
in the code, we would need to update all the packages that contain a static
copy of the code (and remember upstream said it was not necessarily properly
written).
I do not know what to do about this. I do not want to include a static copy of
the code for security reasons -- imagine a user of radionomy uploading a mp4
file that would execute a shell using an issue in the code.. and also because I
do not want to maintain the code myself -- I have no time to dig through the
mp4 file format for now..
Ideally, we should either rewrite some routines to read mp4 files ourself or
find an appropriate external library, i.e. some library that is light,
practical and maintained and allow to read data inside a mp4 container.
Until then, mp4 files and ocaml-faad can only be compiled with libmp4ff-dev
installed, which is the case for the current Debian stable and some ubuntu
release, though I do not know exactly which one..
Romain
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users