[FFmpeg-user] ffmpeg no longer builds with latest libvidstab

Moritz Barsnick barsnick at gmx.net
Thu Jan 9 16:59:36 CET 2014

ffmpeg fails to build with "--enable-libvidstab" since a not-so-recent
change in upstream git vid.stab:

    commit 6b80410867fa78fb6113735de9b61d84edcb9696
    Author: Georg Martius <martius at mis.mpg.de>
    Date:   Fri Nov 8 11:02:34 2013 +0100

        fine-grain scan works yields better results. still with debug info

This commit removed the function vsLocalmotions2TransformsSimple(),
which is used in ffmpeg's libavfilter/vf_vidstabtransform.c. I replaced
the call with vsLocalmotions2Transforms(), and it builds and seems to
work for me (as a proper filter). The former function is just a wrapper
for the latter AFAICT, and the latter is also available in older
"versions" of vid.stab.

I'm using vid.stab from git, but this change seems to correspond to upstream
release 0.97. I didn't realize until a few minutes ago that vid.stab
has defined releases. :-)

Patch attached.

-------------- next part --------------
--- ffmpeg-build/libavfilter/vf_vidstabtransform.c.orig	2013-10-29 19:20:05.000000000 +0100
+++ ffmpeg-build/libavfilter/vf_vidstabtransform.c	2014-01-08 23:28:45.000000000 +0100
@@ -186,7 +186,7 @@
         VSManyLocalMotions mlms;
         if (vsReadLocalMotionsFile(f, &mlms) == VS_OK) {
             // calculate the actual transforms from the local motions
-            if (vsLocalmotions2TransformsSimple(td, &mlms, &tc->trans) != VS_OK) {
+            if (vsLocalmotions2Transforms(td, &mlms, &tc->trans) != VS_OK) {
                 av_log(ctx, AV_LOG_ERROR, "calculating transformations failed\n");
                 return AVERROR(EINVAL);

More information about the ffmpeg-user mailing list