Re: [FFmpeg-user] Question about random() expression

2023-12-28 Thread Michael Koch
Am 28.12.2023 um 03:25 schrieb Carl Zwanzig: On 12/27/2023 3:54 PM, Jim DeLaHunt wrote: The documentation says, "x is the index of the internal variable which will be used to save the seed/state." (https://ffmpeg.org/ffmpeg-all.html#Expression-Evaluation). I don't know what it means by "index

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Carl Zwanzig
On 12/27/2023 3:54 PM, Jim DeLaHunt wrote: The documentation says, "x is the index of the internal variable which will be used to save the seed/state." (https://ffmpeg.org/ffmpeg-all.html#Expression-Evaluation). I don't know what it means by "index of the internal variable", and I don't know

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Jim DeLaHunt
Michael: On 2023-12-27 15:20, Michael Koch wrote: Am 27.12.2023 um 23:59 schrieb Jim DeLaHunt: Michael: On 2023-12-27 13:51, Michael Koch wrote: ...I'm using this command line to print four consecutive random numbers: ... I do not have an answer to your question about the behaviour of the

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Michael Koch
Am 27.12.2023 um 23:59 schrieb Jim DeLaHunt: Michael: On 2023-12-27 13:51, Michael Koch wrote: ...I'm using this command line to print four consecutive random numbers: ... I do not have an answer to your question about the behaviour of the random() function. However, I cannot reproduce your

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Jim DeLaHunt
Michael: On 2023-12-27 13:51, Michael Koch wrote: ...I'm using this command line to print four consecutive random numbers: ... I do not have an answer to your question about the behaviour of the random() function. However, I cannot reproduce your results on my machine. I get an error

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Michael Koch
Am 27.12.2023 um 23:04 schrieb Devin Heitmueller: On Wed, Dec 27, 2023 at 4:51 PM Michael Koch wrote: Hi, I'm using this command line to print four consecutive random numbers: ffmpeg -loglevel repeat -f lavfi -i color=gray:size=1x1,format=gray -vf

Re: [FFmpeg-user] Question about random() expression

2023-12-27 Thread Devin Heitmueller
On Wed, Dec 27, 2023 at 4:51 PM Michael Koch wrote: > > Hi, > > I'm using this command line to print four consecutive random numbers: > > ffmpeg -loglevel repeat -f lavfi -i color=gray:size=1x1,format=gray -vf >

[FFmpeg-user] Question about random() expression

2023-12-27 Thread Michael Koch
Hi, I'm using this command line to print four consecutive random numbers: ffmpeg -loglevel repeat -f lavfi -i color=gray:size=1x1,format=gray -vf geq=lum='st(0,0.123);print(random(0));print(random(0));print(random(0));print(random(0));0' -frames 1 -y out.png The output is always the same