Replace inefficient FFmpeg image loops with -loop 1 and -shortest to preserve framerate and audio synchronization without complex filter graphs.