Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162801 - media-video/mplayer: How about using external ffmpeg?
Summary: media-video/mplayer: How about using external ffmpeg?
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-19 14:07 UTC by Sebastian
Modified: 2007-01-21 21:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mplayer-1.0_rc1-r1-ebuild-USE-ffmpeg.diff (mplayer-1.0_rc1-r1-ebuild-USE-ffmpeg.diff,1.07 KB, patch)
2007-01-19 14:09 UTC, Sebastian
Details | Diff
mplayer-1.0_rc1-r1-ebuild-USE-ffmpeg.diff (mplayer-1.0_rc1-r1-ebuild-USE-ffmpeg.diff,1.11 KB, patch)
2007-01-19 15:42 UTC, Sebastian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2007-01-19 14:07:56 UTC
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
Comment 1 Sebastian 2007-01-19 14:09:46 UTC
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.
Comment 2 Sebastian 2007-01-19 15:42:35 UTC
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
Comment 3 Luca Barbato gentoo-dev 2007-01-21 21:43:45 UTC
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.