I see that x264-svn supports an --enable-mp4-output configure flag. The ebuild should support that via: $(use_enable gpac mp4-output) and the addition of gpac to IUSE. Gpac is in portage as media-video/gpac; the only version is keyworded '~ppc ~x86", but that is OK since x264-svn is keyworded '-* ~x86'.
BTW, I forget to mention, mp4 output is of course the primary distribution format for H.264 video, so allowing x264 to output to that format is important. Otherwise it can only output to a raw bitstream or to a matroska file.
Yes, I know. Have you managed to compile x264 against gpac?
Marc: x264 since svn revision 299 (2005-09-24) requires gpac >= 0.4.0. Earlier versions require gpac = 0.2.4. Hope that helps. I agree that adding gpac would be useful, but we need to get a newer version into portage first.
I was working on a reply to comment 2 when comment 3 came in. (Downloading gpac 0.4.0 and gpac_extra_libs 0.4.0 takes quite a while over a straw.) I looks like upgrading gpac to 0.4.0 and adding a make install-lib to its ebuild will be enough to make use of it in x264. I'll post another reply once I confirm, along with a proposed ebuild for gpac 0.4.0.
I just confirmed that x264-svn needs gpac-cvs rather than just gpac-0.4.0. At the very least the function gf_isom_open() from gpac had added a third argument since the 0.4.0 release and x264-svn expects that.
I made a tar of gpac's cvs tree and installed it via a modified ebuild. That done, x264-svn, configured with --enable-mp4-output, compiled and installed. So, to add $(use_enable gpac mp4-output) to x264-svn will require either an 'interm release' of gpac or creation of a gpac-cvs ebuild.
Well, I tried the same several times now and I always get the same error when compiling x264 afterwards: ------------------------------------------------- /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgpac_static collect2: ld returned 1 exit status make: *** [x264] Error 1 ------------------------------------------------- Both gpac and x264 are fresh checkouts. Any ideas? Cheers, Marc.
The reason why this error : ------------------------------------------------- /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lgpac_static collect2: ld returned 1 exit status make: *** [x264] Error 1 ------------------------------------------------- is that the library generated by gpac is actually lgpac. If you modify the configure to link against this library is works, I've been spending the last few hours trying to get the x264 encoder working with VLC, this was one of my road blocks.
Created attachment 71056 [details] ebuild for cvs drop of gpac With this ebuild and a cvs checkout of gpac I was able to get x264-svn to compile with --use-mp4-output.
I added a gpac-snapshot-ebuild and an ebuild that adds mp4-output to x264. Please check. Cheers, Marc