Brendan Dawes
The Art of Form and Code

Convert an image to a MOV with 6 channel sound

This is very niche, but I'm making note of this even if it's just for myself.

The other day I had need to create a .mov from a .png, but I also needed said .mov to have six channels of sound for 5.1 usage. As ever, FFmpeg was my tool of choice rather than fire-up Premiere or something similar. The answer was of course found on Stackoverflow

ffmpeg -loop 1 -i img002.png -f lavfi -i anullsrc=channel_layout=5.1:sample_rate=48000 -t 10 -c:v libx264 -t 10 -pix_fmt yuv420p -vf scale=480:320 -y output.mov

This takes a png – in this instance one named img002.png and adds 10 seconds of silence in 5.1 format then exports it to output.mov. Worked perfectly.

Yes, super-niche, but may be handy for others.