This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Simple build script for kdenlive + ffmpeg + mlt - use it!

Tags: None
(comma "," separated)
herrej01
Registered Member
Posts
48
Karma
0

espinosa_cz wrote:
jeevesbond wrote:


Now Kdenlive refuses to render at all, that's not too much bother though: can just go back to the old 0.4 version when that's required. It's probably not because of your script either. :)


There is (was?) an issue with kdenlive_render binary (part of kdenlive but external executable binary) not being found (or wrong version being found) when kdenlive builded to nonstandard directory, ie other than /usr. I reported it as a bug, check "kdenlive_render binary search path" it possible than with latest SVN it was fixed. The workaround is (was?) to include current directory to PATH variable before launching kdenlive:


export PATH=.:$PATH
kdenlive


Hi,



I've just compiled kdenlive from source using your script (V2) and still experiencing the problem with the renderer. So fully support your idea on fixing the path variable in the calling program.



Regards.

JM

olo
Registered Member
Posts
72
Karma
0

Hi!



I'm using the following script to launch KDEnlive built with espinosa_cz's script:




#!/bin/sh

build_dir=/home/olo/misc/soft/Graphics/KDEnlive/SVN/espinosa/build
export PATH="$build_dir/bin:$PATH"
export LD_LIBRARY_PATH=$build_dir/lib
export LD_DEBUG=libs
$build_dir/bin/kdenlive 2>&1 | tee -a $build_dir/$(date +%F_%H_%M_%S)_log.txt


Because in order for the ld to locate the libraries built by the script, LD_LIBRARY_PATH environment variable is needed.



Otherwise you'll end up using the system-wide libraries anyway (or get an error if there aren't any available).



BTW, Espinosa, is there a page where one can always get the latest version of your script?



Here's my modified version that I'm using currently:




#!/bin/bash
# Script for easy Kdenlive & ffmpeg & mlt & mlt++ build utilizing LD_RUN_PATH
# All subprojects are compiled and installed to specified directory.
# This sript ensures, that kdenlive will call
# You can verify this it by calling
# cd ~/build/kdenlive/bin && ldd ./kdenlive
# - or -
# cd ~/build/kdenlive/bin && LD_DEBUG=libs ./kdenlive
# You can safely have multiple kdenlive/ffmpeg versions.
# Set DEST_DIR in script, otherwise ~/build/kdenlive is used by default.
#
# Espinosa
# v1.2olo - 28.6.2007
#
# Usage:
# kdenlive_builder getsources - call svn to get sources for all subprojects
# kdenlive_builder clean - call make clean for all subprojects
# kdenlive_builder build - call configure and make and make install for all subprojects
#

# Modify the destination directory if you want
# Or you can copy it afterwars to /opt/kdenlive- or wherever you want.
# Caution: if you pick /usr here, you system kdenlive, ffmpeg and mlt will be overwritten!
export DEST_DIR=~/misc/soft/Graphics/KDEnlive/SVN/espinosa/build

case "$1" in

"getsources")
#cd ffmpeg
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
#cd ../mlt
svn co https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt mlt
#cd ../mlt++
svn co https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++ mlt++
#cd ../kdenlive
svn co https://svn.sourceforge.net/svnroot/kdenlive/trunk/kdenlive
;;

"clean")
cd ffmpeg
make clean
cd ../mlt
make clean
cd ../mlt++
make clean
cd ../kdenlive
make clean
;;

"build")
export PATH=$DEST_DIR/bin:$PATH
export LD_RUN_PATH=../lib

cd ffmpeg &&

# from kdenlive: wiki
#./configure --prefix=$DEST_DIR --enable-gpl --enable-shared --enable-libvorbis --enable-libogg --enable-pp --enable-swscaler &&

./configure --prefix=$DEST_DIR --enable-gpl --enable-shared --enable-swscaler \
--enable-libogg --enable-pp --enable-libtheora --enable-libmp3lame \
--enable-libvorbis --enable-liba52 \
--enable-vhook --enable-x11grab --enable-debug &&
perl -pe 's/\-O3/-O1/' -i config.mak &&
make &&
make install &&

cd ../mlt &&
./configure --prefix=$DEST_DIR --enable-gpl --avformat-swscale --enable-motion-est --disable-mmx --enable-debug &&
perl -pe 's/\-O4/-O0/' -i config.mak &&
make &&
make install &&


cd ../mlt++ &&
./configure --prefix=$DEST_DIR &&
make &&
make install &&


cd ../kdenlive &&
sh bootstrap &&
./configure --prefix=$DEST_DIR --enable-debug=full &&
unsermake &&
unsermake install
;;

*)
# print some help
echo 'Kdenlive & ffmpeg & mlt & mlt++ build script utilizing LD_RUN_PATH'
echo 'Set DEST_DIR in script, otherwise ~/build/kdenlive is used by default'
echo 'Usage: '
echo ' kdenlive_builder getsources'
echo ' kdenlive_builder clean'
echo ' kdenlive_builder build'
;;

esac



olo
Registered Member
Posts
72
Karma
0

Espinosa, how about creating a project "KDEnlive devel utilities" on http://code.google.com/hosting ?



We'd have our own SVN repository for all those scripts and avoid mess with getting the latest version and submitting improvements.



j-b-m
Registered Member
Posts
804
Karma
1

Looks like you miss the kdelibs-dev package. Please try to install it and tell me if it works. If it is already installed, can you tell me which distro you are using ?



regards

jb

olo
Registered Member
Posts
72
Karma
0

I've opened a project on Google Code project hosting for the tools by Espinosa and me:



http://code.google.com/p/kdenlive-dev-helpers/



I welcome suggestions and bug reports :)



nyme
Registered Member
Posts
131
Karma
0

Hello



On feisty, i have this error, with the last version of the script on google:



"cc -Wall -fPIC -DPIC -O4 -pipe -fomit-frame-pointer -ffast-math -DUSE_MMX -g -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -pthread `libst-config --cflags` -I../../ -c -o filter_sox.o filter_sox.c

cc -shared -o ../libmltsox.so factory.o filter_sox.o -lst `libst-config --libs` -L../../framework -lmlt

/usr/bin/ld: cannot find -lmad

collect2: ld a retourné 1 code d'état d'exécution

make[2]: *** [../libmltsox.so] Erreur 1

make[2]: quittant le répertoire « /home/cvts/Desktop/kdenlive/mlt/src/modules/sox »

make[1]: *** [all] Erreur 1

make[1]: quittant le répertoire « /home/cvts/Desktop/kdenlive/mlt/src/modules »

make: *** [all] Erreur 1"



i don't know what to do ?



nyme



michael_drupal
Registered Member
Posts
9
Karma
0

I think -lmad is from libmad. Do you have libmad installed?



nyme
Registered Member
Posts
131
Karma
0

hello



i had libmad0 installed, but not libmad0-dev ...



It's resolved



Thank you



nyme
Registered Member
Posts
131
Karma
0

hello



i can now launch the application but ...



- i can't save any project ... i click on save, it's like it's ok, but i haven't the file saved ...

- when i try to drag and drop a video clip to the timeline kdenlive crash very often ...



On my laptop, i install the deb svn from Trevino repository (also on a stock and fresh feisty) and all work good apart some crashs ....



nyme



olo
Registered Member
Posts
72
Karma
0

nyme wrote:
hello

- i can't save any project ... i click on save, it's like it's ok, but i haven't the file saved ...





Read the "Important" section over here: http://code.google.com/p/kdenlive-dev-h ... veLauncher



It might be a solution for you.



olo
Registered Member
Posts
72
Karma
0

leoon wrote:


...

but I got a new error

...
/tmp/ccEcwrdN.s: Assembler messages:
/tmp/ccEcwrdN.s:241408: Error: unknown pseudo-op: `.uleb12?'
/tmp/ccEcwrdN.s:241469: Error: bad expression




It's an error in FFMPEG code. Probably very temporary - try updating FFMPEG sources from SVN the next day and compiling again.



Versions from SVN are cutting edge, but serious errors and even problems in building from the source are common.



olo
Registered Member
Posts
72
Karma
0

nyme wrote:


- when i try to drag and drop a video clip to the timeline kdenlive crash very often ...



Nyme, you can try locating the cause of the crash using the GNU debugger.



Read the instructions here: http://code.google.com/p/kdenlive-dev-h ... ngKDEnlive



olo
Registered Member
Posts
72
Karma
0

leoon wrote:
Thanks, I've updated the sources...


...
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/vector.tcc:249: internal compiler error: in var_ann, at tree-flow-inline.h:127
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see .
The bug is not reproducible, so it is likely a hardware or OS problem.




Whoah, the compiler itself bombed out. That's a rare problem.



I suspect that you may have a hardware problem (most probably faulty memory) - to verify it, try building identical sources two times consecutively and see if the build crashes at different points - if it does, then you have to test your computer's memory (e.g. using memtest) and hard disks (e.g. using smartmontools) because it isn't reliable.



Just make sure that you start compiling under exactly identical circumstances - afer the SVN checkout of sources make a copy of all of them (ffmpeg, mlt, mlt++, kdenlive), and when the compilation crashes, note the errors somewhere, delete the sources, restore their copy and start compiling again.



It may also be a bug in GCC compiler itself - what distribution are you using? It might be good to report this problem to the distributors if it's indeed a bug in your distribution's version of GCC. But first test if your hardware is OK.



nyme
Registered Member
Posts
131
Karma
0

Hello



i re install my feisty so i recompile svn version...



First i can save and open project and i have no crash with drag and drop of clib but:

when i compile i had this error:



"rm -f ./po/hu.gmo

: -o ./po/hu.gmo /home/cvts/Desktop/kdenlive/kdenlive/po/hu.po

rm -f ./po/pt_BR.gmo

: -o ./po/pt_BR.gmo /home/cvts/Desktop/kdenlive/kdenlive/po/pt_BR.po

rm -f ./po/es.gmo

: -o ./po/es.gmo /home/cvts/Desktop/kdenlive/kdenlive/po/es.po

rm -f ./po/it.gmo

: -o ./po/it.gmo /home/cvts/Desktop/kdenlive/kdenlive/po/it.po

rm -f ./po/fr.gmo

: -o ./po/fr.gmo /home/cvts/Desktop/kdenlive/kdenlive/po/fr.po

rm -f ./po/tr.gmo

: -o ./po/tr.gmo /home/cvts/Desktop/kdenlive/kdenlive/po/tr.po

checking /home/cvts/Desktop/kdenlive/kdenlive/kdenlive/kdenliveui.rc

/usr/bin/install -c -p -m 644 ./po/ca.gmo /home/cvts/Desktop/kdenlive/share/locale/ca/LC_MESSAGES/kdenlive.mo

/usr/bin/install: ne peut évaluer `./po/ca.gmo': Aucun fichier ou répertoire de ce type

Error creating /home/cvts/Desktop/kdenlive/share/locale/ca/LC_MESSAGES/kdenlive.mo. Exit status 1.

make: *** [install] Erreur 1

"



kdenlive seem to be working ... i don't know if this error is important ?



thank



nyme



olo
Registered Member
Posts
72
Karma
0

nyme wrote:



checking /home/cvts/Desktop/kdenlive/kdenlive/kdenlive/kdenliveui.rc
/usr/bin/install -c -p -m 644 ./po/ca.gmo /home/cvts/Desktop/kdenlive/share/locale/ca/LC_MESSAGES/kdenlive.mo
/usr/bin/install: ne peut évaluer `./po/ca.gmo': Aucun fichier ou répertoire de ce type
Error creating /home/cvts/Desktop/kdenlive/share/locale/ca/LC_MESSAGES/kdenlive.mo. Exit status 1.
make: *** [install] Erreur 1


kdenlive seems to be working ... i don't know if this error is important ?



It seems like an error in installation of Catalan translation. Translations are usually installed at the end, so it seems that all critical files for KDEnlive operation have already been installed correctly.



KDEnlive will work fine, unless there was something important to be installed after the translations (because installation was interrupted by this error).



I don't speak French, what does the error message say?





Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot]