Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-07 Thread Gyan Doshi
On 07-08-2018 01:24 PM, Michael Koch wrote: That's correct, at the beginning there is only one image temp.jpg ffmpeg's image sequence demuxer, when not reading from a pipe, will probe for sequence size at initialization, so if an image doesn't exist at that stage, it won't be

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-07 Thread Michael Koch
Am 07.08.2018 um 09:54 schrieb Michael Koch: F:\xxx>c:/ffmpeg/ffmpeg -i temp%4d.jpg -vf lutyuv="y=0.9*val" -frames 10 -q:v 1 -start_number 1 temp%4d.jpg FFmpeg does not edit files in-place. Input and output have to be different. Let's assume I have a complex filter with several inputs.

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-07 Thread Michael Koch
F:\xxx>c:/ffmpeg/ffmpeg -i temp%4d.jpg -vf lutyuv="y=0.9*val" -frames 10 -q:v 1 -start_number 1 temp%4d.jpg FFmpeg does not edit files in-place. Input and output have to be different. Input and output are different. Input starts with number 0, and output starts with number 1.

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-06 Thread Gyan Doshi
On 07-08-2018 04:09 AM, Michael Koch wrote: F:\xxx>c:/ffmpeg/ffmpeg -i temp%4d.jpg -vf lutyuv="y=0.9*val" -frames 10 -q:v 1 -start_number 1 temp%4d.jpg FFmpeg does not edit files in-place. Input and output have to be different. Besides, > Input #0, image2, from 'temp%4d.jpg': >

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-06 Thread Michael Koch
luminance = 0.95 * luminance_in_last_frame;     // exponential decay I'm trying to do the following: Read image temp.jpg, set luminance to 90%, write as temp0001.jpg Read image temp0001.jpg, set luminance to 90%, write as temp0002.jpg and so on in an iterative process, until 10 images are

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-05 Thread Michael Koch
Every time when the input becomes brighter than the last output frame, the output is set to the input value. If input is below the last output value, then exponential decay. I have a timelapse video of the night sky with meteors. Each meteor is visible only in one frame. I'd like to make them

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-05 Thread Michael Koch
Every time when the input becomes brighter than the last output frame, the output is set to the input value. If input is below the last output value, then exponential decay. I have a timelapse video of the night sky with meteors. Each meteor is visible only in one frame. I'd like to make them

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-05 Thread Paul B Mahol
On 8/5/18, Michael Koch wrote: > Am 05.08.2018 um 15:42 schrieb Gyan Doshi: >> >> >> On 05-08-2018 06:41 PM, Michael Koch wrote: >>> I'd like to ask if it's possible to make an exponential decay effect >>> with FFmpeg. >>> Let's assume a pixel is fashing to luminance = 1 in just one frame. >>>

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-05 Thread Michael Koch
Am 05.08.2018 um 15:42 schrieb Gyan Doshi: On 05-08-2018 06:41 PM, Michael Koch wrote: I'd like to ask if it's possible to make an exponential decay effect with FFmpeg. Let's assume a pixel is fashing to luminance = 1 in just one frame. Then in the output video I'd like to have the pixel

Re: [FFmpeg-user] exponential decay, is it possible?

2018-08-05 Thread Gyan Doshi
On 05-08-2018 06:41 PM, Michael Koch wrote: I'd like to ask if it's possible to make an exponential decay effect with FFmpeg. Let's assume a pixel is fashing to luminance = 1 in just one frame. Then in the output video I'd like to have the pixel flashing to 1 immediately, followed by an

[FFmpeg-user] exponential decay, is it possible?

2018-08-05 Thread Michael Koch
I'd like to ask if it's possible to make an exponential decay effect with FFmpeg. Let's assume a pixel is fashing to luminance = 1 in just one frame. Then in the output video I'd like to have the pixel flashing to 1 immediately, followed by an exponential decay with a time constant of a few