[FFmpeg-user] Calculating offset of shifted line
Ulf Zibis
Ulf.Zibis at gmx.de
Fri Jan 11 11:11:47 EET 2019
Hi,
a polite ping ...
-Ulf
Am 09.01.19 um 01:22 schrieb Ulf Zibis:
> Hi,
>
> I would like to calculate how much a special line in the video is
> irregularly shifted to right or left. For this I want to compare the
> line with the adjacent line above by calculating the minimum of the
> quadratic mean for each shift.
>
> I'm first looking for something like:
> x:=0; y:=123; diff:= 0; while(x++ < in_w, diff += (luma(x,y) - luma(x,y
> - 1))²);
>
> So the first question is: how to get the luma value of a pixel?
>
> Thanks
>
> -Ulf
>
More information about the ffmpeg-user
mailing list