Hi,
The launchProcess API command can be used to run the avconv script that you prepared (with some minor modifications, such as adding a backslash before each space) as a separate process. Alternatively, the transcode API command could also be used (with some modifications to config.lua, such as modifying the srcUriPrefix) but is more limited compared to the launchProcess API command.
Cheers,
Don