Re: Verwackeltes Video stabilisieren?
Al Bogner <suse-multimedia-Wco+c2LKsy1DayIqkcHqbfyE8WyFmGdT@public.gmane.org>
| Newsgroups | gmane.linux.suse.multimedia.german |
|---|---|
| Message-ID | <[email protected]> |
Am Sonntag, 21. Februar 2010 21:51:06 schrieben Sie:
> Am Samstag, 13. Februar 2010 15:36:40 schrieben Sie:
> > Habe gerade gelesen, dass an Video-Stabilisierung gearbeitet wurde:
> >
> > http://lists.mplayerhq.hu/pipermail/mplayer-users/2007-March/066041.html
> >
> > Gibt es da mittlerweile was brauchbares? Speziell mit mencoder?
> >
> > Ich stelle immer mehr fest, dass es sich gelohnt hat mit der
> > Digitalisierung zu warten. Über die Jahre hat sich doch einiges getan.
> >
> > Welche Filter für VHS-Camcorder-Videos sollte ich mir ansehen?
>
> Beeindruckend:
>
> http://www.youtube.com/watch?v=HYE3KAl8RAQ&NR=1
>
> http://www.youtube.com/watch?v=c3CEm8bgVQ0
Nun bin ich endlich fündig geworden:
http://public.hronopik.de/vid.stab/features.php?lang=en
Für den Fall, dass die Seite mal verschwinden sollte:
default case:
transcode -J stabilize -i MOVIE -y null,null -o dummy
transcode -J transform -i MOVIE OUTPUTOPTIONS -o STABILE
The first line creates a file MOVIE.trf with the detected relative
transformations between subsequent frames. The second line uses this file to
convert your movie into a stabilised one. The maximal translation is limited
to 48 pixels and the time smoothing is 10 frames.
Extended transformation size and more smoothing:
transcode -J stabilize=maxshift=100 -i MOVIE -y null,null -o dummy
transcode -J transform=smoothing=20 -i MOVIE OUTPUTOPTIONS -o STABILE
you can also use
tcmodinfo -i stabilize
tcmodinfo -i transform
Stabilize plugin
[filter_stabilize.so] v0.61 (2009-10-25) extracts relative transformations of
subsequent frames (used for stabilization together with the
transform filter in a second pass)
[filter_stabilize.so] Overview:
Generates a file with relative transform information
(translation, rotation) about subsequent frames. See also transform.
Options
'result' path to the file used to write the transforms
(def:inputfile.stab)
'maxshift' maximal number of pixels to search for a translation
(def:height/12, preferably a multiple of stepsize)
'stepsize' stepsize of search process,
region around minimum is scanned with 1 pixel
resolution (def:2)
'allowmax' 0: maximal shift is not applied (prob. error)
1: maximal shift is allowed (def:1)
'algo' 0: brute force (translation only);
1: small measurement fields(def)
'fieldnum' number of measurement fields (def: 20)
'fieldsize' size of measurement field (def: height/15)
'mincontrast' below this contrast a field is discarded (def: 0.15)
'show' 0: do nothing (def); 1: show fields and transforms
'help' print this help message
Transform plugin
[filter_transform.so] v0.61 (2009-10-25) transforms each frame according to
transformations
given in an input file (e.g. translation, rotate) see also filter stabilize
Overview
Reads a file with transform information for each frame
and applies them. See also stabilize.
Options
'input' path to the file used to read the transforms
(def: inputfile.stab)
'smoothing' number of frames*2 + 1 used for lowpass filtering
used for stabilizing (def: 10)
'maxshift' maximal number of pixels to translate image
(def: -1 no limit)
'maxangle' maximal angle in rad to rotate image (def: -1 no limit)
'crop' 0: keep border (def), 1: black backgr
'invert' 1: invert transforms(def: 0)
'relative' consider transforms as 0: absolute, 1: relative (def)
'zoom' percentage to zoom >0: zoom in, <0 zoom out (def: 0)
'optzoom' 0: nothing, 1: determine optimal zoom (def)
i.e. no (or only little) border should be visible.
Note that the value given at 'zoom' is added to the
here calculated one
'sharpen' amount of sharpening: 0: no sharpening (def: 0.8)
uses filter unsharp with 5x5 matrix
'help' print this help message