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

how to move a picture with a high precision ?

Tags: None
(comma "," separated)
MisterBark
Registered Member
Posts
20
Karma
0
Hi !

First, I really wanna thank all the kdenlive community that brings freedom and openness to the media world. The world (not only computer world) needs that.

So,
I wanna make a jingle for daily videos on mine.
That jingle is a "sliding puzzle" of a picture. The little squares move until we discover the picture (all squares at the right place)
The picture is different every day. So I programmed a little script to crop (with ImageMagick) my picture into border + 40 squares
Then, I import each 41 pictures into 41 tracks and have to move them in order to animate the puzzle.
Each day, I will run my script to crop the picture of the day. kdenlive will tell my the files changed and I'll tell it not to care.

NOW THE PROBLEM :
I wanted to use the transition composite to move all the squares.
But it's not precise at all: really impossible to do in that way !
I really need to be able to move it per pixel.

So: how could I resize and move a picture in the screen, with a great precision ?
Entering the coordinates of the position and size would be perfect !
doing it by moving a red square in a 142x80 area is impossible.

Thanks a lot in advance for your help !
MisterBark
Registered Member
Posts
20
Karma
0
ok, I had an idea... but it's a lil crazy...
I can continue my program to create a stop motion picture kit :
I define where I wanna move each square, and it creates 1 bmp file for each frame to move everything progressively...
After, I can use "import slide show" and define length for a pic = 1 frame.
But for 20s it's 600 files of 2.6MB each... does kdenlive can handle that ? ...
capslock
Registered Member
Posts
699
Karma
4
OS
Well, you can set the picture size and the exact position in the section below the red square. Check the drop down boxes, the leftmost one will allow you to set the coordinates and size for each keyframe.

Kdenlive should be able to handle 600 files as well. But loading will take a while - the more files the longer. I currently have a project with >400 files, all by far larger than 2.6MB and after loading Kdenlive works fluidly.
MisterBark
Registered Member
Posts
20
Karma
0
Hi,

I've got kdenlive 0.7.3 and there's nothing to enter the coordinates precisely. (just a resize per percentage)
What's your version ?
gab3d
Registered Member
Posts
66
Karma
0
please, use the latest version if possible!
version 0.7.8 is soooo much more stable, powerful and productive than yours!
MisterBark
Registered Member
Posts
20
Karma
0
ah... :)
thanks but I just fixed 4 or 5 compilations errors, now I'm exhausted at the 6th one ! ...
at 85% of the cmake and I can't find the answer...

[ 85%] Building CXX object src/cmake_bindir/CMakeFiles/kdenlive.dir/mainwindowadaptor.o
Linking CXX executable kdenlive
/usr/bin/ld: warning: libmlt.so.1, needed by /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libmlt++.so, may conflict with libmlt.so.2
/usr/bin/ld: warning: libmlt.so.1, needed by /usr/lib/gcc/i486-linux-gnu/4.3.3/../../../../lib/libmlt++.so, may conflict with libmlt.so.2
CMakeFiles/kdenlive.dir/renderer.o: In function `Render::mltPlantTransition(Mlt::Field*, Mlt::Transition&, int, int)':
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3409: undefined reference to `Mlt::Field::disconnect_service(Mlt::Service&)'
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3399: undefined reference to `Mlt::Transition::get_a_track()'
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3400: undefined reference to `Mlt::Transition::get_b_track()'
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3425: undefined reference to `Mlt::Transition::get_b_track()'
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3425: undefined reference to `Mlt::Transition::get_a_track()'
CMakeFiles/kdenlive.dir/renderer.o: In function `Render::mltMoveTransition(QString, int, int, int, GenTime, GenTime, GenTime, GenTime)':
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3355: undefined reference to `Mlt::Transition::get_b_track()'
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3356: undefined reference to `Mlt::Transition::get_in()'
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3357: undefined reference to `Mlt::Transition::get_out()'
/home/mrbark/src/kdenlive-0.7.8/src/renderer.cpp:3369: undefined reference to `Mlt::Field::disconnect_service(Mlt::Service&)'
collect2: ld returned 1 exit status
make[2]: *** [src/cmake_bindir/kdenlive] Error 1
make[1]: *** [src/cmake_bindir/CMakeFiles/kdenlive.dir/all] Error 2
make: *** [all] Error 2
MisterBark
Registered Member
Posts
20
Karma
0
it's ok I've created a program to make that !
-> http://img.misterbark.com/puzzle-jingle.avi

it makes everything frame by frame, calculating the movements, accelerations & decelerations etc.
So I'll just have to import the output video in kdenlive and compose with green screen :)

thanks again everyone !
ttill
Registered Member
Posts
372
Karma
0
Looks well done.
What is your script/program based on (libs)?
Your compile problem looks you have either multiple versions of MLT on your computer or an outdated one.


Bookmarks



Who is online

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