Skip to content
Posts

FFmpeg to prepare 4k video from single image

Posted on:March 29, 2023 at 04:44 PM

ffmpeg command

Here’s a quick FFmpeg command that creates a video file out.mp4 from a single image file input4k.png (3840x2160) and an audio file input.wav. The resulting video is optimized for publishing on YouTube.

ffmpeg \
  -loop 1 -i input4k.png \
  -i input.wav \
  -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p  \
  -shortest out.mp4

Resulting video

The resulting video, made from a 4K image source, is available on YouTube.