[FFmpeg-devel] Scale, Rotate, Translate Matrix Op.

Joshua Grauman jnfo-c at grauman.com
Fri Jun 10 21:43:56 CEST 2011


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.
>
> [...]
>


More information about the ffmpeg-devel mailing list