Might be the AI harness or the setup?
Almost all my AI use nowadays is Qwen 3.8 27B running through my own AI agent harness 99.9% of the code for which (C++/JavaScript/HTML/CSS) was written using Qwen 3.8 27B via Pi (nowadays i mainly use Pi for the agent's development and the rest using the agent itself).
The agent lives inside a Docker container running Debian Sid and uses a web UI (or terminal for Pi) for me to interact with (the agent uses libmicrohttpd to run an HTTP server which is proxied via Apache2). It gets simple read/write/edit tools as well as a bash tool to run stuff inside the container.
TBH not being able to get ffmpeg commands right sounds way below what i had Qwen 3.8 27B do - in fact the first thing i'd expect it to do would be to run `ffmpeg` and `ffmpeg --help` to see the commands :-P and if it fumbles them it'd try to read the docs.
In fact one of the tasks i gave it some time ago was to write a comprehensive GUI frontend for llama-server using C++/Qt with presets - and it read the server's CLI code to figure out all the parameters to expose (via an XML file that describe them).
Early when i first started using Qwen 3.8 27B i noticed that it was trying to "recall" the source code or documentation of stuff i asked it to use and since then i often just make that stuff available before starting the task (or tell it to download it using `apt source`).