Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't import any video-files into kdenlive-0.4?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 774
Location: berlin

PostPosted: Mon Apr 16, 2007 10:24 am    Post subject: can't import any video-files into kdenlive-0.4? Reply with quote

nice gui, but everytime i try to import s.th. i get

Code:
The file xy.avi is not a valid video file for kdenlive


or the likes?
someone in the know?
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
dony
n00b
n00b


Joined: 01 Nov 2006
Posts: 70
Location: Germany

PostPosted: Wed Jul 04, 2007 9:59 am    Post subject: Reply with quote

Same Problem - also mpg mpeg .... are "not a valid video file" foe kdenlive
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 101

PostPosted: Wed Jul 04, 2007 5:18 pm    Post subject: Reply with quote

Same here... If kdenlive is run from a terminal, it gives the following message (in addition to the above mentioned message box) when trying to open a video clip:
Code:

Failed to load plugin: /usr/share/mlt/modules/libmltavformat.so: undefined symbol: img_convert


May be it has something to do with recent changes in ffmpeg ABI... don't know.

Edit: Browsing through the forum you can find a lot of people complaining about software that depends on ffmpeg (vlc, transcode, etc.). Similar symptoms, undefined symbols, etc.
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 101

PostPosted: Wed Jul 04, 2007 7:16 pm    Post subject: Reply with quote

OK, I just found a workaround: the problem is, that media-libs/mlt is configured without the --avformat-swscale flag. FFMPEG from portage is automatically configured with swscale enabled, but mlt has it disabled. There is no USE flag to enable this option. This is how I worked it around:

  • Copy the current mlt ebuild to your overlay
  • Copy the "files" directory next to the ebuild (patches etc.)
  • Edit the ebuild and add
    Code:

    myconf="${myconf} --avformat-swscale"

    somewhere around the line 68-69
  • Create the digest
  • Emerge mlt again


I thing this is a bug in the ebuild and that the configure option should be added automatically if the ffmpeg use flag is enabled.
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 774
Location: berlin

PostPosted: Thu Jul 05, 2007 8:38 pm    Post subject: Reply with quote

hi zidour,

did as you explained - but still can't add any clips
to the project...
which type of files do you actually succeed to load:
avi, mpeg, mov, dv etc...???

thanks again!
_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 101

PostPosted: Fri Jul 06, 2007 8:30 am    Post subject: Reply with quote

With avi, mpg and mov I have no problems at all. Unfortunately I don't have any dv file to try.
Lo-jay, did you rebuild mlt++ and kdenlive after rebuilding mlt?

Sad thing is that it seems like kdenlive is still not very usable - it crashes quite often...
Back to top
View user's profile Send private message
lo-jay
l33t
l33t


Joined: 27 Feb 2005
Posts: 774
Location: berlin

PostPosted: Fri Jul 06, 2007 8:04 pm    Post subject: Reply with quote

hi,

pls check the changes in my ebuild, did i put the line at the right place?

thanks again!


Code:
 GNU nano 2.0.4                                                  File: /usr/local/portage/media-libs/mlt/mlt-0.2.3.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/mlt/mlt-0.2.3.ebuild,v 1.2 2007/04/26 17:47:30 aballier Exp $

inherit eutils toolchain-funcs qt3

DESCRIPTION="MLT is an open source multimedia framework, designed and developed
for television broadcasting"
HOMEPAGE="http://mlt.sourceforge.net/"
SRC_URI="mirror://sourceforge/mlt/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="dv xml jack gtk sdl vorbis sox quicktime mmx lame xine lame ogg theora
xine ffmpeg libsamplerate qt3"

DEPEND="ffmpeg? ( media-video/ffmpeg )
        dv?     ( >=media-libs/libdv-0.104 )
        xml?    ( >=dev-libs/libxml2-2.5 )
        ogg?    ( >=media-libs/libogg-1.1.3 )
        vorbis? ( >=media-libs/libvorbis-1.1.2 )
        sdl?    ( >=media-libs/libsdl-1.2.10
                  >=media-libs/sdl-image-1.2.4 )
        libsamplerate? ( >=media-libs/libsamplerate-0.1.2 )
        jack?   ( media-sound/jack-audio-connection-kit
                          media-libs/ladspa-sdk
                          >=dev-libs/libxml2-2.5 )
        gtk?    ( >=x11-libs/gtk+-2.0
                  x11-libs/pango )
        sox?    ( media-sound/sox )
        quicktime? ( media-libs/libquicktime )
        xine? ( >=media-libs/xine-lib-1.1.2_pre20060328-r7 )
        lame? ( >=media-sound/lame-3.97_beta2 )
        qt3? ( $(qt_min_version 3) )
        theora? ( >=media-libs/libtheora-1.0_alpha5 )"
RDEPEND=${DEPEND}

src_unpack() {
        unpack ${A}
        cd "${S}"
        epatch "${FILESDIR}/mlt-0.2.2-motion-est-nonx86.patch"
        epatch "${FILESDIR}/${P}-nostrip.patch"
}

src_compile() {
        tc-export CC

        local myconf="  --enable-gpl --enable-shared
                        --enable-pp --enable-shared-pp
                        --enable-motion-est
                        $(use_enable dv)
                        $(use_enable mmx)
                        $(use_enable gtk gtk2)
                        $(use_enable vorbis)
                        $(use_enable ogg)
                        $(use_enable sdl)
                        $(use_enable jack jackrack)
                        $(use_enable sox)
                        $(use_enable theora)
                        $(use_enable lame mp3lame)
                        $(use_enable ffmpeg avformat)
                        $(use_enable libsamplerate resample)
                        $(use_enable qt3 qimage)
                        $(use_enable xml westley)
                        $(use_enable xine)"
myconf="${myconf} --avformat-swscale"
        (use quicktime || use dv) ||  myconf="${myconf} --disable-kino"

        econf ${myconf} || die "econf failed"
        sed -i -e s/^OPT/#OPT/ "${S}/config.mak"
        emake || die "emake failed"
}

src_install() {
        emake DESTDIR="${D}" install || die "emake install failed"

        dodoc docs/*.txt ChangeLog README docs/TODO

        dodir /usr/share/${PN}
        insinto /usr/share/${PN}
        doins -r demo
}


_________________
lo-jay

The mechanic "One of 'em Dodge Chargers - let him go by."
The driver "Not today!"

taken from "Two Lane Blacktop"
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 101

PostPosted: Sun Jul 08, 2007 6:21 pm    Post subject: Reply with quote

Well, I have put the line right under
Code:

    (use quicktime || use dv) ||  myconf="${myconf} --disable-kino"

but I don't think it makes any difference. I think your ebuild is OK.

Anyway, I am no ebuild guru and even though the ebuild worked for me I don't know if it is correct in every aspect.
There is at least one thing that needs to be polished: --avformat-swscale should only be added to $myconf if ffmpeg use flag is selected.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum