vid.stab

Website, builds, or other suggestions.
Thomedran
Posts: 2
Joined: Sun Feb 17, 2013 2:47 pm

vid.stab

Post by Thomedran » Sun Feb 17, 2013 3:29 pm

Hi Zeranoe,
I wanted to ask, if you could link the vid.stab video stabilizator filter. It seems to be a very good open-source stabilizator/deshaker.

It originally was intended for Transcode and is also included in the MLT framework, but the author is currently working on a port for libavfilter. It would be nice to have it available as an experimental filter. For Windows, there is only the closed source Deshaker plugin for VirtualDub. However, this is cumbersome:
  1. Not open-source ;)
  2. Cumbersome to script (avs2yuv + AviSynth + Plugin)
  3. Not portable (AviSynth is not able to decode many input formats. While AviSynth does not necessarily need to be installed, DirectShow filters are needed to allow more formats. (FFMS did not work for me)).
  4. This means that it is not possible to run the encoding process on a powerful machine without admin rights.
Greets,
Adi

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: vid.stab

Post by Zeranoe » Sun Feb 17, 2013 7:07 pm

Does FFmpeg support this library as an external library?

Thomedran
Posts: 2
Joined: Sun Feb 17, 2013 2:47 pm

Re: vid.stab

Post by Thomedran » Sun Feb 17, 2013 9:50 pm

Yes, see link:
Thomedran wrote:the author is currently working on a port for libavfilter

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: vid.stab

Post by rogerdpack » Mon Feb 18, 2013 4:33 pm

too bad ffmpeg doesn't allow for "dll loaded external filters" so you'd have to "mix" this code into your ffmpeg source to include it, today...which is possible I suppose...

hydra3333
Posts: 199
Joined: Sun Apr 28, 2013 1:03 pm
Contact:

Re: vid.stab

Post by hydra3333 » Sun Apr 28, 2013 1:08 pm

newbie question:
It seems that the official documentation now lists vstab
http://ffmpeg.org/ffmpeg-filters.html#vidstabdetect-1
http://ffmpeg.org/ffmpeg-filters.html#v ... ransform-1
"To enable compilation of this filter you need to configure FFmpeg with --enable-libvidstab"

Does that mean it's now able to be compiled in the Zeranoe FFmpeg nightlies ?
If so ... could this please be done ?

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: vid.stab

Post by rogerdpack » Tue Apr 30, 2013 2:14 pm

yeah it's a library now (I haven't tried cross compiling it yet tho...)

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: vid.stab

Post by Zeranoe » Wed May 01, 2013 3:24 am

This lib is pretty complicated to implement, see: https://raw.github.com/georgmartius/vid ... ter/README

Until this lib can be loaded as an external library and does not require modifying FFmpeg's code, I don't think I will be including it.

rogerdpack
Posts: 1877
Joined: Fri Aug 05, 2011 9:56 pm

Re: vid.stab

Post by rogerdpack » Thu May 02, 2013 2:02 pm

Zeranoe wrote:This lib is pretty complicated to implement, see: https://raw.github.com/georgmartius/vid ... ter/README

Until this lib can be loaded as an external library and does not require modifying FFmpeg's code, I don't think I will be including it.
Ok he updated the instructions, see https://raw.github.com/georgmartius/vid ... ter/README again.
(Haven't tried it myself).
Cheers!

User avatar
Zeranoe
Site Admin
Posts: 703
Joined: Sat May 07, 2011 7:12 pm
Contact:

Re: vid.stab

Post by Zeranoe » Tue May 07, 2013 5:09 am

FFmpeg fails to compile with vid.stab at configure because it is looking for a .pc file that doesn't exist.

Please let me know if anyone succeeds in compiling this library.

Ajaja
Posts: 69
Joined: Fri Mar 08, 2013 2:00 pm

Re: vid.stab

Post by Ajaja » Tue May 07, 2013 1:35 pm

Zeranoe wrote:FFmpeg fails to compile with vid.stab at configure because it is looking for a .pc file that doesn't exist.

Please let me know if anyone succeeds in compiling this library.
Latest git version of vid.stab creates .pc file after "make install" and ffmpeg with --enable-libvidstab builds normally. There were few problems: with strndub() not implemented in Mingw and disabled "add_library (vidstab STATIC ${SOURCES})" in CMakeLists.txt.

Code: Select all

$ ffmpeg.exe -filters | grep vidstab
ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers
  built on May  7 2013 16:31:39 with gcc 4.8.0 (rev1, Built by MinGW-builds project)
  configuration: --disable-shared --enable-static --pkg-config=pkg-config --prefix=/mingw/i686-w64-mingw32 --enable-nonfree --enable-libfdk-aac --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libopus --enable-bzlib --enable-zlib --enable-frei0r --enable-filter=frei0r --enable-libutvideo --enable-libgsm --enable-gpl --extra-cflags=-DPTW32_STATIC_LIB --extra-cflags=-DLIBTWOLAME_STATIC --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libvo-aacenc --enable-libspeex --enable-libschroedinger --enable-libbluray --enable-libxavs --enable-libsoxr --enable-libfaac --enable-libfreetype --enable-fontconfig --enable-libass --enable-libopenjpeg --enable-avisynth --enable-libtwolame --enable-libilbc --enable-libcaca --enable-libmodplug --enable-avresample --enable-libcdio --disable-w32threads --enable-openssl --enable-dxva2 --enable-libvidstab --disable-debug --extra-libs=-lstdc++ --enable-runtime-cp  libavutil      52. 30.100 / 52. 30.100
  libavcodec     55.  7.100 / 55.  7.100
  libavformat    55.  4.101 / 55.  4.101
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 63.101 /  3. 63.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Hyper fast Audio and Video encoder

vidstabdetect    V->V       Extract relative transformations, pass 1 of 2 for stabilization (see vidstabtransform for pass 2).
vidstabtransform V->V       Transform the frames, pass 2 of 2 for stabilization (see vidstabdetect for pass 1).

BTW. Looks like I run out of 1024 chars in ffmpeg's output string "configuration:" with --enable-libvidstab ;)

Post Reply
'