Bug 186935 - media-libs/mlt need --avformat-swscale if media-video/ffmpeg-0.4.9_p20070616-r1 is installed
Bug#: 186935 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: roberto.castagnola@gmail.com
Component: Ebuilds
URL: 
Summary: media-libs/mlt need --avformat-swscale if media-video/ffmpeg-0.4.9_p20070616-r1 is installed
Keywords:  
Status Whiteboard: 
Opened: 2007-07-28 21:50 0000
Description:   Opened: 2007-07-28 21:50 0000
kdenlive (0.5svn not in tree) fails to start with this error:
Failed to load plugin: /usr/share/mlt/modules/libmltavformat.so: undefined
symbol: img_convert
Same error importing video-files if using kdenlive-0.4

Checking http://forums.gentoo.org/viewtopic-t-553542.html I found out that
media-video/ffmpeg-0.4.9_p20070616-r1 is automatically configured with swscale
enabled, but mlt has it disabled.

proposed patch:
--- /usr/portage/media-libs/mlt/mlt-0.2.3.ebuild        2007-04-26
20:05:49.000000000 +0200
+++ mlt-0.2.3.ebuild    2007-07-28 22:59:22.000000000 +0200
@@ -65,6 +65,9 @@
                        $(use_enable xml westley)
                        $(use_enable xine)"

+       use ffmpeg && has_version ">=media-video/ffmpeg-0.4.9_p20070616-r1" &&
+               myconf="${myconf} --avformat-swscale"
+
        (use quicktime || use dv) ||  myconf="${myconf} --disable-kino"

        econf ${myconf} || die "econf failed"


with this patch applied I can start kdenlive-0.5svn (or open video-files with
kdenlive-0.4)

------- Comment #1 From Alexis Ballier 2007-08-21 08:59:25 0000 -------
fixed while bumping to 0.2.4, thanks