[FFmpeg-user] lagfun misunderstanding?

Michael Koch astroelectronic at t-online.de
Sun Mar 29 19:19:56 EEST 2020


Am 29.03.2020 um 17:59 schrieb Paul B Mahol:
> On 3/29/20, Michael Koch <astroelectronic at t-online.de> wrote:
>> Am 29.03.2020 um 16:35 schrieb Paul B Mahol:
>>> On 3/29/20, Michael Koch <astroelectronic at t-online.de> wrote:
>>>> Am 29.03.2020 um 15:13 schrieb Zedsquared:
>>>>> I do apologise, the example I just posted omitted the planes 
>>>>> argument to
>>>>> lagfun, here's the command I was using and resulting output
>>>>>
>>>>>     ffmpeg -i IMG_1685.MOV -q:v 0 -vcodec h264 -acodec aac -strict -2
>>>>> -filter:v
>>>>> format=pix_fmts=rgb24,lagfun=decay=0.999:planes=1 greenlagtest2.mp4
>>>> I can confirm that it doesn't work as expected. Shouldn't green be
>>>> planes=2 ? But that doesn't work either.
>>> green is first plane.
>> But it doesn't work as expected with planes=1. I have added a green
>> rectangle that changes it's position after one second:
> It works as expected.
>
>> c:\ffmpeg\ffmpeg -i IMG_1685.MOV -vf "format=rgb24,sendcmd=c='1 drawbox
>> x
>> 200',drawbox=x=0:w=100:h=100:t=fill:color=green,lagfun=decay=0.99:planes=1" 
>>
>> -t 5 -y greenlagtest.mp4
>>
>> The decaying rectangle should be green, but it is white.
> Because your adjusted your filtergraph that way.
> Drawbox does not support rgb formats, and i do not care enough to fix 
> that.

Now I have used format=rgb24 after drawbox, but it's still the same 
problem. The green rectangle is decaying white--> gray--> black. I did 
remove the planes option from the lagfun filter.

c:\ffmpeg\ffmpeg -i IMG_1685.MOV -vf "sendcmd=c='1 drawbox x 
200',drawbox=x=0:w=100:h=100:t=fill:color=green,format=rgb24,lagfun=decay=0.999" 
-t 5 -y greenlagtest.mp4

Michael


More information about the ffmpeg-user mailing list