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

Context menu entry for stabilization is missing

Tags: None
(comma "," separated)
larsend
Registered Member
Posts
25
Karma
0
Hi,

I am using Kdenlive 0.9.10 from Debian Jessie and want to deshake a video clip. According to https://userbase.kde.org/Kdenlive/Manual/Project_Menu/Stabilize:
"This menu item is available from right click on a clip in the project tree or under the project menu when a clip is selected in the project tree."

But I don´t have it there, see screenshot.

Image

Is there something else that needs to be installed? "melt" was mentioned, but that is installed:
Code: Select all
# dpkg -l melt
ii  melt           0.9.0-1+b1   i386         command line media player and vid


http://public.hronopik.de/vid.stab/features.php mentions that "You need a Linux with transcode >= 1.1.0 installed" but the menu entry is still missing after installing the package and restarting Kdenlive:
Code: Select all
# dpkg -l transcode
ii  transcode                           3:1.1.7-9+b3           i386                   Text console video-stream processing tool


What am I missing here?

Larsen
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
Have a look here... https://forum.kde.org/viewtopic.php?f=270&t=122831&hilit=vid.stab

You'll need to install the new vid.stab effect manually.

Here's the source: https://github.com/georgmartius/vid.stab
larsend
Registered Member
Posts
25
Karma
0
Thx!
I followed the instructions from https://github.com/georgmartius/vid.sta ... er/Install and had to solve some minor problems. Though, still no stabilize option =(

Code: Select all
# Install needed packages
apt-get install git cmake g++ dpkg-dev libz-dev

# Get source code of transcode
# Needs a deb-src entry in "/etc/apt/sources.list"
cd && \
apt-get source transcode

# Run configure to create config.h to prevent error when compiling vid.stab. Ends with error messages about failed options but this doesn´t bother the compilation afterwards.
cd transcode-1.1.7 && \
./configure

# Compile vid.stab
cd && \
git clone https://github.com/georgmartius/vid.stab.git && \
cd vid.stab && \
cmake . && \
make && \
make install

# Patch to prevent error "incompatible type for argument 1 of ‘vsSimpleMotionsToTransform’"
wget https://github.com/al42and/vid.stab/commit/3c09ff2ad205ec893eb73699954c694e2c488ee6.patch && \
git apply 3c09ff2ad205ec893eb73699954c694e2c488ee6.patch

# Compile vid.stab.transcode
cd transcode && \
sed -i "s:TRANSCODE_ROOT ../../transcode:TRANSCODE_ROOT ../../transcode-1.1.7:" CMakeLists.txt && \
cmake . && \
make && \
. cmake/install.sh


Files exist in "/usr/lib/transcode/"
-->
filter_deshake.so
filter_stabilize.so
filter_transform.so

and "/usr/local/lib/libvidstab.so.1.0"

Might this be a problem?
From https://github.com/georgmartius/vid.stab/issues/14:
"You don't have to compile ffmpeg, but you need to have the right version
installed (/in the LD_LIBRARY_PATH) with which transcode was compiled."
But the ffmpeg package is not available in Jessie, see https://packages.debian.org/search?keywords=ffmpeg
User avatar
ttguy
Moderator
Posts
1152
Karma
6
OS
As I understand it you need libvidstab installed to get the video stabilization.

Sunabs PPA has this
https://userbase.kde.org/Kdenlive/Manua ... erivatives
larsend
Registered Member
Posts
25
Karma
0
I am using Debian, not Ubuntu. Though, I have tried the following:

Code: Select all
add-apt-repository ppa:sunab/kdenlive-svn
apt-get update
-->
W: Failed to fetch http://ppa.launchpad.net/sunab/kdenlive-svn/ubuntu/dists/jessie/main/binary-i386/Packages  404  Not Found


Therefore, instead download and install the package manually:
Code: Select all
wget https://launchpad.net/~sunab/+archive/ubuntu/kdenlive-svn/+files/libvidstab1.0_0.98b-0ubuntu0~sunab~utopic1_i386.deb
dpkg -i libvidstab1.0_0.98b-0ubuntu0~sunab~utopic1_i386.deb

This only installs "/usr/lib/libvidstab.so.1.0", but I already have "/usr/local/lib/libvidstab.so.1.0" from before.
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
Try

'ldconfig -v'

As a root user. That may solve the library reference.

Also, can you try building from source using the build_kdenlive.sh script found at the MLT site?
larsend
Registered Member
Posts
25
Karma
0
I ran ldconfig, but that didn´t fix it.

Tried to build Kdenlive from source as documented in http://www.mltframework.org/bin/view/MLT/BuildScripts, but compilation failed:
Code: Select all
error: inlining failed in call to always_inline '_mm_loadu_ps': target specific option mismatch

See http://pastebin.com/ZHy7TrQP for full output.

Seems to be a problem with 32-bit machines (this is a 32-bit VM running on a 64-bit host). There is a patch, but I think with the build script it´s not possible to apply that patch: http://lists.linuxfromscratch.org/pipermail/blfs-dev/2014-April/027259.html
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
larsend wrote:this is a 32-bit VM running on a 64-bit host

I see....
Sounds like too many layers upon layers. If it were me, I'd simplify my life by ditching the 32b VM and just run (and build) straight as a 64b image/system.
larsend
Registered Member
Posts
25
Karma
0
Hmm, I think it should be possible to have the stabilize filter also work on a 32-bit machine, shouldn´t it?

How did you install vid.stab?
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
larsend wrote:Hmm, I think it should be possible to have the stabilize filter also work on a 32-bit machine, shouldn´t it?

How did you install vid.stab?

I wouldn't know if it works on a 32b machine. I do know that it works on a 64b Ubuntu 14.04 LTS installation when built from source using the build_kdenlive.sh script. I installed vid.stab first and then ran the build script.
larsend
Registered Member
Posts
25
Karma
0
Have installed new VM with Debian Jessie, 64-bit. Problem with VirtualBox shared folders (I need these for video editing). Updated VBox from 4.3.12 to 4.3.18 and now my VM won´t start anymore. Known problem: https://forums.virtualbox.org/viewtopic.php?f=6&t=64111

This might take some time... will report back.
vpinon
KDE Developer
Posts
708
Karma
6
OS
Hello,
Instead of installing all build dependencies and compiling yourself, you may use binaries from MLT:
http://builds.meltytech.com/kdenlive/latest.rss
You have 32b and 64b flavors, and unpacking archives based on old ubuntu 12.04 works on more recent distro.
In case you want to donate for that service, you may find a solution on http://www.mltframework.org/bin/view/Shotcut/Download ;)
larsend
Registered Member
Posts
25
Karma
0
Back to VBox 4.3.12. The hardening feature introduced in 4.3.14 seems to be more like a render-this-totally-unusable-feature.

I now got Kdenlive to compile with the script Steve told me about. Problem was indeed 32-bit only. Though, whenever I add a clip to Kdenlive, it crashes. Therefore, I cannot tell if the stabilize option would be there.

Seems like someone doesn´t want me to deshake my videos. I give up =(
Thanks for the support though, much appreciated!
User avatar
Steve Guilford
Registered Member
Posts
207
Karma
0
larsend wrote:Back to VBox 4.3.12. The hardening feature introduced in 4.3.14 seems to be more like a render-this-totally-unusable-feature.

I now got Kdenlive to compile with the script Steve told me about. Problem was indeed 32-bit only. Though, whenever I add a clip to Kdenlive, it crashes. Therefore, I cannot tell if the stabilize option would be there.

Seems like someone doesn´t want me to deshake my videos. I give up =(
Thanks for the support though, much appreciated!

Why give up when you may almost be there?

Crashes are my specialty. Run the program from the command line and let us know what it says...
vpinon
KDE Developer
Posts
708
Karma
6
OS
Hi,
Installing libvidstab is not sufficient, I believe MLT should also be rebuilt to detect it... I asked debian maintainer to integrate vidstab, but it will take few days if they accept.
It's simpler to download daily builds!
And why running Linux on Linux through a VM? (s)chroot/LXC/Docker are so much lighter (as long as your host kernel is not too old)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]