The simplest way would be very similar to what you have written, since ffmpeg will read the file extensions of the input and output and automatically determine the file types and appropriate codecs that you are working with.
The following example shows 2 ways of passing the parameters to your ffmpeg executable. One way is setting the args directly in node-red-ffmpeg and the other way is injecting them in case you need to be more dynamic on how your are naming the files. Be warned, I ran some tests converting mp4 to avi and it seems that the conversion process needs to also re-encode the internal video causing a high cpu load and long conversion time. A 5 second mp4 took 10 seconds to make. Perhaps your system is more powerful and the conversion will be faster.
[{"id":"518d8f555b827832","type":"inject","z":"0483439031be1cb6","name":"","props":[{"p":"action","v":"{\"command\":\"start\"}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":150,"y":1040,"wires":[["a06f5f0687130a73"]]},{"id":"a06f5f0687130a73","type":"ffmpeg","z":"0483439031be1cb6","name":"","outputs":1,"cmdPath":"","cmdArgs":"[\"-i\",\"input.mp4\",\"output.avi\"]","cmdOutputs":0,"killSignal":"SIGTERM","credentials":{},"x":380,"y":1040,"wires":[[]]},{"id":"77d5d43a83709db4","type":"inject","z":"0483439031be1cb6","name":"","props":[{"p":"action","v":"{\"command\":\"start\",\"args\":[\"-i\",\"input.mp4\",\"output.avi\"]}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":150,"y":1140,"wires":[["b482625a4cbfe2da"]]},{"id":"b482625a4cbfe2da","type":"ffmpeg","z":"0483439031be1cb6","name":"","outputs":1,"cmdPath":"","cmdArgs":"[]","cmdOutputs":0,"killSignal":"SIGTERM","x":380,"y":1140,"wires":[[]]}]