Skip to content

Instantly share code, notes, and snippets.

@smndhm
Created February 16, 2015 21:43
Show Gist options
  • Save smndhm/cdac8d307826be5c7f3d to your computer and use it in GitHub Desktop.
Save smndhm/cdac8d307826be5c7f3d to your computer and use it in GitHub Desktop.
FFmpeg : 30s video with combined image and audio file
ffmpeg \
-loop 1 -i INPUT_IMAGE_FILE.jpg \
-i INPUT_AUDIO_FILE.mp3 \
-strict experimental -c:a aac -b:a 128k \
-c:v libx264 -tune stillimage -pix_fmt yuv420p -r 0.033 \
-shortest -t 30 -y \
OUTPUT_VIDEO_FILE.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment