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

kdenlive_builder.sh - ffmpeg

Tags: None
(comma "," separated)
jarek
Registered Member
Posts
4
Karma
0

kdenlive_builder.sh - ffmpeg

Thu Nov 15, 2007 12:28 am

It seems ffmpeg configure does not support the option --enable-libogg anymore



eljefe
Registered Member
Posts
59
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Sun Nov 18, 2007 6:35 pm

I'm getting errors in that it doesn't support a whole lot of the options from the script, such as:

--enable-libogg

--enable-libmp3lame

--enable-pp

--enable-libtheora

--enable-libvorbis

--enable-liba52

--disable-strip



I'm not sure why this is; has support for these formats etc been hardcoded into the project? Or have they been dropped? (which would be a shame)



Anyone know why?

espinosa_cz
Registered Member
Posts
118
Karma
0
OS

Re: kdenlive_builder.sh - ffmpeg

Tue Nov 20, 2007 12:02 am

The only options not supported anymore is libogg, others remained, just run configure --help.

But anyway thing are constantly changing (hope for good). Seems to ffmpeg guys implementing more and more stuff directly in ffmpeg.

Using external libraries for vorbis and theora is discouraged now. Native implementation exists. Hmm. We should review the params really.

Now I have to check what happened to ogg support.

espinosa_cz
Registered Member
Posts
118
Karma
0
OS

Re: kdenlive_builder.sh - ffmpeg

Mon Nov 26, 2007 1:35 am

There is a possible bug in CMake script breaking build for kdenlive_builder.

See:

http://www.kdenlive.org/mantis/view.php?id=44



When this issue is solved, the core of kdenlive_builder is:


export PATH=$DEST_DIR/bin:$PATH
export LD_RUN_PATH=../lib

cd ffmpeg &&
./configure --prefix=$DEST_DIR \
--enable-gpl \
--enable-shared \
--enable-swscaler \
--enable-pp \
--enable-libtheora \
--enable-libmp3lame \
--enable-libvorbis \
--enable-liba52 \
--disable-strip \
--enable-debug &&
make &&
make install &&

cd ../mlt &&
./configure --prefix=$DEST_DIR --enable-gpl --avformat-swscale --enable-motion-est --enable-mmx --enable-debug --disable-gtk2 &&
make &&
make install &&

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

cd ../kdenlive &&
cmake -DCMAKE_INSTALL_PREFIX=$DEST_DIR -DCMAKE_BUILD_TYPE=debugfull . &&
make &&
make install


..so not much different from previous.

eljefe
Registered Member
Posts
59
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Thu Nov 29, 2007 2:56 pm

The script (on the wiki) still isn't fixed, I got compile errors for FFMPEG still with --enable-ogg and with --enable-pp. I didn't go farther than that, however, since it seems that the script hasn't been updated for the new cmake stuff either. And unfortunately i am not familiar enough to incorporate your code paste (above) into the script to make things function for me... maybe I'll try to do that again and spend more time trying to learn about it... but it would be great to have it fixed on the Wiki, where many users will start (I think).

espinosa_cz
Registered Member
Posts
118
Karma
0
OS

Re: kdenlive_builder.sh - ffmpeg

Sat Dec 01, 2007 12:07 am

There are still issues with Kdenlive compilation, see bug:

http://www.kdenlive.org/mantis/view.php?id=44

FFmpeg and MLT should compile however well.

After this issue will be resolved I can try to update script.

eljefe
Registered Member
Posts
59
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Sat Dec 01, 2007 5:50 pm

Thank you! :)

herrej01
Registered Member
Posts
48
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Wed Dec 05, 2007 7:16 pm

Hi,



just to keep you informed that issue between MLT and ffmpeg has been corrected in MLT svn and now is possible again to compile last versions for all programs together (ffmpeg, MLT, MLT++ and kdenlive).



To espinosa_cz



I imagine you are going to update the kdenlive_builder script. In the last days, I've been working with my "particular" version of the script and trying to improve. I've made some changes as i.e. the use of a menu to help users, automatic detection in order to get new sources or update them, error handling, possibility to update main kdenlive installation or alternatives and (obviously) use of cmake to compile kdenlive.



I'm sending this version just in case you want to add any feature to the standard ;)



Best regards.

JM



*** UPDATED: FILE DETTACHED AS THERE'S A NEW VERSION AVAILABLE LATER IN THIS POST ***

espinosa_cz
Registered Member
Posts
118
Karma
0
OS

Re: kdenlive_builder.sh - ffmpeg

Sun Dec 09, 2007 9:26 pm

Your script exceeds my humble knowledge of bash programming :) My script was basically a set of commands I was used to input to command line manually. Nothing less, nothing more.



Ask Aleksander Adamowski (Olo), he is the keeper of Kdenlive-dev-tools he has the access to repository. It is fine with me.



My 2cents: As the script tends to be more sophisticated and use friendly may be using Python + Qt/KDE or similar language is more reasonable. Or if you like to stick with bash what about using xdialog?

eljefe
Registered Member
Posts
59
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Mon Dec 10, 2007 4:48 pm

Very cool new script, I've yet to spend a lot of time reading it or using it, but I tried to test it and I liked the looks!



An issue that I have, however, is this -- when I was trying to run it, and it asked where I wanted it installed, it defaults to the /usr/ directory; later in the run it asks for the root password, which I am reluctant to give. I don't want my system's FFMPEG or any other applications or libraries over written, and that was one of the main benefits of the previous script:



Quote:
# Script for easy and SAFE Kdenlive & ffmpeg & mlt & mlt++ build utilizing LD_RUN_PATH

# All subprojects are compiled and installed to specified non-system directory.

# You can safely keep multiple kdenlive/ffmpeg versions.


Can this be changed back to allow for localized building of the files, in a user's home directory for example?



Thank you both, herrej01 and espinosa_cz, and also to the KDEnlive team. I love this application!

herrej01
Registered Member
Posts
48
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Sun Dec 23, 2007 12:24 am

Hi,



according to the suggestions in previous posts, I've changed my version of the builder and I'm attaching here just in case somebody likes it and want to use. I attach also a small "user guide" to help.



This version of the script works perfectly in Ubuntu 7.10, assuming you have necessary dependencies installed (see them in the wiki). I presume it should work in other distributions, but do not know :?:



Some changes:



Some bugs corrected !!

The script now uses xdialog as interface for menus & messages (thanks espinosa_cz. I didn't know this programme and it seems much easy than programming in PERL or PYTHON :) )

Default destination directory is now /home/build/kdenlive in order to prevent removing main kdenlive copy. Anyway, if you try to overwrite your copy in /usr, the program will give a warning.

It's not necessary to give root pwd if you install kdenlive in /home/xxx. Otherwise, you'll need to give the password in order to have necessary permissions.

...



Espinosa_cz, OLO,



if you want to use this version as a new base for future developments or corrections, please feel free. And if anybody can put the script in a better place than a message in the forum, I'll appreciate ;)



Best regards

JM



*** UPDATED: FILE DETTACHED AS THERE'S A NEW VERSION LATER IN THIS POST ***

cinemanna
Registered Member
Posts
19
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Sun Dec 23, 2007 3:03 am

everything proceeded well until this while building:



/usr/bin/ld: warning: libmiracle.so.0.2.5, needed by /home/maz/build/kdenlive/lib/libmlt++.so, not found (try using -rpath or -rpath-link)
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_get_error_code'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `miracle_server_fetch_unit'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_clone'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `miracle_server_execute'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `miracle_server_init'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_set_error'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_close'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `miracle_log_init'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `miracle_server_set_port'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_get_error_string'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `miracle_server_close'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_init'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `miracle_server_set_config'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_get_line'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_write'
/home/maz/build/kdenlive/lib/libmlt++.so: undefined reference to `valerie_response_count'
collect2: ld returned 1 exit status
make[2]: *** [kdenlive/CMakeFiles/CMakeRelink.dir/kdenlive] Error 1
make[2]: Leaving directory `/usr/src/kdenlive'
make[1]: *** [kdenlive/CMakeFiles/kdenlive.dir/preinstall] Error 2
make[1]: Leaving directory `/usr/src/kdenlive'
make: *** [preinstall] Error 2


all the required libs are built by the script in the /usr/src directory. then why this error??

My distro is ubuntu 7.10.


cinemanna
Registered Member
Posts
19
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Sun Dec 23, 2007 7:22 pm

Hi JM



why are the libraries not linking properly? it seems that inigo cannot find libmlt -- libraries are supposed to be linked statically by the script if i am not mistaken??



cinemanna
Registered Member
Posts
19
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Sun Dec 23, 2007 8:20 pm

building proceeds to 100%. problem occurs in the pre-install stage

Linking CXX executable CMakeFiles/CMakeRelink.dir/kdenlive


/usr/bin/ld: warning: libmiracle.so.0.2.5, needed by /home/build/kdenlive/lib/libmlt++.so, not found (try using -rpath or -rpath-link)


hopeful, since the building process completes without error...what could be going wrong in the linking phase?



herrej01
Registered Member
Posts
48
Karma
0

Re: kdenlive_builder.sh - ffmpeg

Mon Dec 24, 2007 12:04 am

Hi cinemanna,



I've checked the script and detected some bugs (I've edited previous message with a corrected file). Hope it works now.



Regards.

JM



Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]