have you tried without the single quotes? Mines are without quotes.
Alternatively if that doesn’t work, as a test you can create a bash file with your command and have the shell_command point to the bash file (with full path), that will help confirm whether the issue is the command itself or the code in your yaml file…
I was doing exactly this the last couple of days but I put that in a bash script on my RPi, not from HA.
What I found was, ffmpeg would just hang when running from script without the -nostdin option.
Hope that helps.
I’m not exactly sure what you are saying the problem is so I will answer based on what I THINK you are saying the problem is…
You won’t see an entity in your states table for a shell command. You should see a service exposed to allow you to run the shell command. you can try running the command from there to test if necessary.
Then you can use the id shown in the services section (i.e. shell_command.xx_xx…) in your automations.
sorry for not being clear enough,
i meant that the shell command doesnt work and i didnt know how to stop the shell command in mid exection but i think i solve the two problems.
now i save the images inside homeassistant dir and it works, probably was a permission problem,
for the 2nd problem i found out how to stop with the right ffmpeg command.