[FFmpeg-devel] Scale, Rotate, Translate Matrix Op.
Joshua Grauman
jnfo-c at grauman.com
Fri Jun 10 22:06:56 CEST 2011
I also found a diff/patch to add matrix transformations directly written
by Daniel G. Taylor with input from some others. I was able to compile it
fine (into ffmpeg? The patch adds the code to the Makefile and I think it
gets linked in), but once again I can't figure out how to call it. When I
run ffmpeg with -vf transform I get 'No such filter:transform'... Thanks
again!
Josh
> Thanks! This should do what I want. I'll have to figure out how to convert a
> standard 3x3 transformation matrix to this, but should be fine. Any hints on
> how to convert from an SRT or 3x3 matrix to these parameters would save me
> some time figuring it out...
>
> However, I just downloaded the latest source from git and compiled, but I
> can't get the perspective filter included/compiled no matter what configure
> options I try. It isn't even listed when I run configure --list-filters even
> though when I look at the source, it is in
> libavfilter/libmpcodecs/vf_perspective.c as you state... Any reason why it
> wouldn't be compiled in? When I try to use the filter with -vf
> perspective=... I just get 'No such filter:perspective'...
> Thanks!
>
> Josh
>
>> On Fri, Jun 10, 2011 at 11:18:35AM -0700, Joshua Grauman wrote:
>>> Hello all,
>>>
>>> I've been looking for a way to do a matrix operation of Scale, Rotate,
>>> and Translate on a video (and then a crop). Each video only needs a
>>> single set of parameters (it is to correct for a slight rotational error
>>> a few degrees). Is there a video filter already written to do this? I
>>> couldn't find anything after much searching... Thanks!
>>
>> we have a perspective correction filter
>> libavfilter/libmpcodecs/vf_perspective.c
>>
>> Its maybe documented in mplayer/mencoder docs.
>>
>> [...]
>>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list