Am 01.02.2020 um 22:15 schrieb Paul B Mahol:
On 2/1/20, Michael Koch <[email protected]> wrote:
Am 01.02.2020 um 21:38 schrieb Paul B Mahol:
On 2/1/20, Michael Koch <[email protected]> wrote:
Am 01.02.2020 um 21:16 schrieb Paul B Mahol:
On 2/1/20, Michael Koch <[email protected]> wrote:
I want to use sendcmd to set the x,y coordinates of the overlay filter.
If I write sendcmd before overlay, I get this error message:
Too many inputs specified for the "sendcmd" filter.
But the two inputs are required for the overlay filter. How can this
problem be solved?
Simply put it before one of inputs.
I don't understand what you mean. At which place shall I put it?
One of inputs before overlay filter:
[a]sendcmd=...[a];[a][b]overlay....
ok, I did try this command, but now I got another error message. It
seems that the overlay filter doesn't receive the x value.
c:\ffmpeg\ffmpeg -i main.mov -i lp.mp4 -filter_complex
"[1]scale=100:100,sendcmd=f=test.cmd[2];[0][2]overlay=x='':y=''" -q:v 2
-t 4 -y out.mp4
This is my test.cmd file:
0.0-1.0 overlay x 'lerp(1000,2000,t)',
overlay y 'lerp(800,800,t)';
1.0-2.0 overlay x 'lerp(2000,1500,t-1)',
overlay y 'lerp(800,400,t-1)';
2.0-8.0 overlay x 'lerp(1500,1500,t-2)',
overlay y 'lerp(400,500,t-2)';
Console output:
F:\Test>c:\ffmpeg\ffmpeg -i main.mov -i lp.mp4 -filter_complex "[1
]scale=100:100,sendcmd=f=test.cmd[2];[0][2]overlay=x='':y=''" -q:v 2 -t
4 -y out
x="":y="" are invalid arguments. They must be valid, even if they not
gonna be used later.
now it works. Thank you!
Michael
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".