Hi! This is an ebuild for ffmpeg-0.4.8. I modified the 0.4.7-ebuild and added the postproc stuff. The src_install() function produced sandbox violations until I changed "einstall" into a somwhat long "make install" line. Cheers, Marc.
Created attachment 18568 [details] The ebuild
when i'm building i get a nice error gcc -Wl,--warn-common -rdynamic -g -o ffmpeg_g ffmpeg.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -ldl -logg -lvorbis -lvorbisenc /usr/lib/libpostproc.so.0: undefined reference to `fast_memcpy' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1
hmmm... What does "qpkg -nc -f -v /usr/lib/libpostproc.so" say?
qpkg -nc -f -v /usr/lib/libpostproc.so media-video/mplayer-1.0_pre1
I feared so. It works with my mplayer-0.92. I'll have a look at it.
Arrrg, on my laptop without mplayer it dies too (naturally). I'll fix the ebuild as soon as I have time.
Sorry, me again. First idea: How about a local flag postproc?
Ok, the problem is not libpostproc itself but the shared libpostproc from mplayer. Ffmpeg can't link against it with most of the mlayer versions it seems. Leaving each prog to its own libpostproc seems to neither harm the other nor is it a quality or performane loss. So I suggest the following: Change the according line in the ebuild: from myconf="${myconf} --enable-pp --enable-shared-pp" to myconf="${myconf} --disable-opts --enable-pp" I disabled optimization because we do this ourself. See an example of the configure process: ------------------------------------------------------------ mothership ffmpeg # emerge ffmpeg-0.4.8.ebuild -pv These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] media-video/ffmpeg-0.4.8 +mmx +encode +oggvorbis -doc +faad +dvd -static +sdl +imlib +truetype mothership ffmpeg # emerge ffmpeg-0.4.8.ebuild Calculating dependencies ...done! >>> emerge (1 of 1) media-video/ffmpeg-0.4.8 to / >>> md5 src_uri ;-) ffmpeg-0.4.8.tar.gz >>> Unpacking source... >>> Unpacking ffmpeg-0.4.8.tar.gz to /var/tmp/portage/ffmpeg-0.4.8/work >>> Source unpacked. Install prefix /usr Source path /var/tmp/portage/ffmpeg-0.4.8/work/ffmpeg-0.4.8 C compiler gcc make make CPU x86 (generic) Big Endian no MMX enabled yes Vector Builtins yes gprof enabled no zlib enabled yes mp3lame enabled yes vorbis enabled yes faad enabled yes faadbin enabled yes a52 support yes a52 dlopened yes pp support yes debug symbols no optimize no shared pp no Video hooking yes SDL support yes risky / patent encumbered codecs yes Imlib2 support yes freetype support yes Sun medialib support no AMR-NB float support no AMR-NB fixed support no Creating config.mak and config.h make -C libavcodec all make[1]: Entering directory `/var/tmp/portage/ffmpeg-0.4.8/work/ffmpeg-0.4.8/libavcodec' gcc -O3 -march=athlon-xp -mcpu=athlon-xp -pipe -mmmx -msse -m3dnow -mfpmath=sse,387 -falign-functions=4 -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c ------------------------------------------------------------------------------ Please test this. marc
I committed this with the change to use non-shared pp, and a small fix to remove an include of X11/Xlibs.h which is unnecessary.