Hello all, I made some small changes to the mplayer ebuild so that it uses the external ffmpeg once the USE flag 'ffmpeg' is set. And it just works. You already know why I tried: 1. Reduce code duplication 2. Reduce mplayer compile time (only reduced when you already have ffmpeg of course ;-)) The size of the mplayer binary went down from almost 6 MB to 1.7 MB. Right now I'm using 1.0_rc1 and ffmpeg-0.4.9_p20061016 without issues. What do you think? Regards Sebastian Reproducible: Always
Created attachment 107436 [details, diff] mplayer-1.0_rc1-r1-ebuild-USE-ffmpeg.diff This is a patch for the ebuild to allow compilation of mplayer with external ffpeg. Adds new USE flag 'ffmpeg' and acts on it with disabling the internal ffmpeg libs.
Created attachment 107459 [details, diff] mplayer-1.0_rc1-r1-ebuild-USE-ffmpeg.diff Fix: Added /usr/include/ffmpeg to header search path (extraincdir). Forgot about that, sorry. Sebastian
There are some issues with recent snapshot that will be solved and IF you don't have the need of ffmpeg you end up with a higher compile time overall. I'll try to look into this once those issue are solved upstream.