I am using the following command to make a video from a single image;
ffmpeg -loop 1 -i MyInputImage.png -i MyInputSound.m4a ^
-c:v libx264 -pix_fmt yuv420p -c:a aac ^
-shortest MyOutputVideo.mp4
Note that I have used the -shortest option;
But I have noticed my resulting video IS ALWAYS 2 seconds longer than my AUDIO length. Why ?
For example, if audio=5 secs, output vid lenght is 7 secs; if audio=9 secs, output video is 11 seconds long.