{"id":8,"date":"2025-09-12T14:25:08","date_gmt":"2025-09-12T14:25:08","guid":{"rendered":"https:\/\/tech.jenson.in\/?p=8"},"modified":"2025-09-13T16:50:55","modified_gmt":"2025-09-13T16:50:55","slug":"how-to-create-a-video-from-images-and-audio-using-ffmpeg-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/tech.jenson.in\/index.php\/2025\/09\/12\/how-to-create-a-video-from-images-and-audio-using-ffmpeg-step-by-step-guide\/","title":{"rendered":"How to Create a Video from Images and Audio using FFmpeg (Step-by-Step Guide)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Learn how to easily create a video from images and add audio using FFmpeg. This step-by-step tutorial covers the exact commands you need to combine multiple images with background audio, making it perfect for slideshows, presentations, and content creation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/tech.jenson.in\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-Sep-12-2025-07_53_59-PM-1024x683.png\" alt=\"\" class=\"wp-image-9\" srcset=\"https:\/\/tech.jenson.in\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-Sep-12-2025-07_53_59-PM-1024x683.png 1024w, https:\/\/tech.jenson.in\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-Sep-12-2025-07_53_59-PM-300x200.png 300w, https:\/\/tech.jenson.in\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-Sep-12-2025-07_53_59-PM-768x512.png 768w, https:\/\/tech.jenson.in\/wp-content\/uploads\/2025\/09\/ChatGPT-Image-Sep-12-2025-07_53_59-PM.png 1536w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">What You\u2019ll Need<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>FFmpeg installed<\/strong> on your system (Windows, macOS, or Linux).<\/li>\n\n\n\n<li>A set of <strong>images<\/strong> you want to turn into a video (e.g., <code>image1.jpg<\/code>, <code>image2.jpg<\/code> \u2026).<\/li>\n\n\n\n<li>An <strong>audio file<\/strong> (e.g., <code>music.mp3<\/code>) for background sound.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">FFmpeg Command to Create a Video from Images + Audio<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\nffmpeg -framerate 1\/5 -pattern_type glob -i &quot;*.png&quot; -i music.mp3 -c:v libx264 -vf &quot;fps=25,format=yuv420p&quot; -c:a aac -b:a 192k -movflags +faststart yourVideo.mp4\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Explanation:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-framerate 1\/5<\/code> \u2192 each image stays on screen for 5 seconds.<\/li>\n\n\n\n<li><code>-pattern_type glob -i \"*.png\"<\/code> \u2192 loads all <code>.png<\/code> images in the folder.<\/li>\n\n\n\n<li><code>-i music.mp3<\/code> \u2192 adds background audio.<\/li>\n\n\n\n<li><code>-c:v libx264<\/code> \u2192 uses H.264 video codec.<\/li>\n\n\n\n<li><code>-vf \"fps=25,format=yuv420p\"<\/code> \u2192 sets smooth playback at 25 fps and ensures compatibility with most players.<\/li>\n\n\n\n<li><code>-c:a aac -b:a 192k<\/code> \u2192 encodes audio in AAC with good quality.<\/li>\n\n\n\n<li><code>-movflags +faststart<\/code> \u2192 makes the video ready for fast web streaming.<\/li>\n\n\n\n<li><code>yourVideo.mp4<\/code> \u2192 final video file name.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Tips &amp; Variations<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change <code>1\/5<\/code> to <code>1\/<\/code>2 if you want each image to display for 2 seconds.<\/li>\n\n\n\n<li>Replace <code>\"*.png\"<\/code> with <code>\"*.jpg\"<\/code> if your images are JPEG.<\/li>\n\n\n\n<li>Swap <code>music.mp3<\/code> with <code>narration.wav<\/code> or any audio file you prefer.<\/li>\n\n\n\n<li>Export to other formats like <code>.mkv<\/code> or <code>.mov<\/code> if needed.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Final Thoughts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With just a single FFmpeg command, you can quickly transform a folder of images into a video and sync it with background music or narration. This method is lightweight, flexible, and works across all major operating systems.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Experiment with frame rates, audio tracks, and output settings to match your project needs \u2014 whether it\u2019s a slideshow, presentation, or content for social media. Once you get comfortable, FFmpeg can become your go-to tool for fast and powerful video creation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to easily create a video from images and add audio using FFmpeg. This step-by-step tutorial covers the exact commands you need to combine multiple images with background audio, making it perfect for slideshows, presentations, and content creation. What You\u2019ll Need FFmpeg Command to Create a Video from Images + Audio Explanation: Tips &amp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,7,8,4,9,11,3,6,10],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-ffmpeg","tag-add-audio-with-ffmpeg","tag-beginner-ffmpeg-guide","tag-convert-images-to-video","tag-create-video-from-images","tag-ffmpeg-commands","tag-ffmpeg-slideshow","tag-ffmpeg-tutorial","tag-slideshow-with-music","tag-video-editing-with-ffmpeg"],"_links":{"self":[{"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":4,"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/posts\/8\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.jenson.in\/index.php\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}