[{"data":1,"prerenderedAt":164},["ShallowReactive",2],{"blog-post-ffmpeg-add-intro-multiple-videos":3,"recent-posts":100},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":11,"slugs":12,"linked_documents":14,"lang":15,"alternate_languages":16,"data":17},"atSaDxEAACkARBVE","ffmpeg-add-intro-multiple-videos",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=auzrLRIAACcAt6BE&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22atSaDxEAACkARBVE%22%29+%5D%5D",[],"2026-10-18T21:45:38+0000","2026-10-28T18:37:48+0000",[13],"ffmpeg-how-to-add-an-intro-to-multiple-videos",[],"en-us",[],{"title":18,"date":24,"description":25,"image":30,"content":40},[19],{"type":20,"text":21,"spans":22,"direction":23},"heading1","FFmpeg: How to Add an Intro to Multiple Videos",[],"ltr","2026-10-18",[26],{"type":27,"text":28,"spans":29,"direction":23},"heading2","Learn how to automatically add an intro clip to multiple videos at once using FFmpeg.",[],{"dimensions":31,"alt":6,"copyright":6,"url":34,"id":35,"edit":36},{"width":32,"height":33},1376,768,"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FCZnI93Ey22AWRWwp_HowtoAddanintrotoMultipleVideosin1Command.jpeg?auto=format,compress","CZnI93Ey22AWRWwp",{"x":37,"y":37,"zoom":38,"background":39},0,1,"transparent",[41,45,48,52,55,59,62,65,68,71,74,77,80,97],{"type":42,"text":43,"spans":44,"direction":23},"paragraph","Before getting started, make sure you have FFmpeg installed on your system, your main video files saved in MP4 format, and your intro clip named \u003Ccode>intro.mp4\u003C\u002Fcode> inside the exact same folder.",[],{"type":42,"text":46,"spans":47,"direction":23},"Open your terminal or command line and navigate to the folder where your videos are located.",[],{"type":49,"text":50,"spans":51,"direction":23},"heading3","Method 1: Same Resolution \u002F Frame Rate",[],{"type":42,"text":53,"spans":54,"direction":23},"If your intro video and target videos already share the exact same resolution and frame rate, you can merge them instantly without re-encoding. Run this command:",[],{"type":56,"text":57,"spans":58,"direction":23},"preformatted","for f in *.mp4; do [ \"$f\" != \"intro.mp4\" ] && echo -e \"file 'intro.mp4'\\nfile '$f'\" > list.txt && ffmpeg -y -f concat -safe 0 -i list.txt -c copy \"intro_$f\" && rm list.txt; done",[],{"type":42,"text":60,"spans":61,"direction":23},"This loops through every MP4 file in your folder, creates a temporary file list, attaches \u003Ccode>intro.mp4\u003C\u002Fcode> to the beginning, and saves a new file with \u003Ccode>intro_\u003C\u002Fcode> prefixed to the original name.",[],{"type":49,"text":63,"spans":64,"direction":23},"Method 2: Different Resolution \u002F Frame Rate",[],{"type":42,"text":66,"spans":67,"direction":23},"If your intro video and main videos have different resolutions, re-encoding is necessary to prevent playback issues. You can scale both to 1920x1080 by running this command instead:",[],{"type":56,"text":69,"spans":70,"direction":23},"for f in *.mp4; do [ \"$f\" = \"intro.mp4\" ] && continue; ffmpeg -i intro.mp4 -i \"$f\" -filter_complex \"[0:v]scale=1920:1080,setsar=1[v0]; [1:v]scale=1920:1080,setsar=1[v1]; [v0][0:a][v1][1:a] concat=n=2:v=1:a=1 [v][a]\" -map \"[v]\" -map \"[a]\" \"processed_$f\"; done",[],{"type":42,"text":72,"spans":73,"direction":23},"Depending on how many videos you have and whether you are re-encoding, this process might take a few moments to finish processing, so let the command run until your terminal prompt returns.",[],{"type":42,"text":75,"spans":76,"direction":23},"Once it completes, open one of your newly generated files in a video player to confirm that the intro plays seamlessly before your main video begins.",[],{"type":42,"text":78,"spans":79,"direction":23},"As a quick tip: If your videos use a resolution other than 1080p, you can easily adjust the \u003Ccode>1920:1080\u003C\u002Fcode> numbers in the second command to match your target dimensions.",[],{"type":81,"oembed":82},"embed",{"embed_url":83,"type":84,"version":85,"title":86,"author_name":87,"author_url":88,"provider_name":89,"provider_url":90,"thumbnail_url":91,"thumbnail_width":92,"thumbnail_height":93,"html":94,"height":95,"width":96},"https:\u002F\u002Fyoutu.be\u002F9mUUpUcsaWQ","video","1.0","FFmpeg: How to Add an Intro to Multiple Videos in 1 Command","markster","https:\u002F\u002Fwww.youtube.com\u002F@markster1904","YouTube","https:\u002F\u002Fwww.youtube.com\u002F","https:\u002F\u002Fi.ytimg.com\u002Fvi\u002F9mUUpUcsaWQ\u002Fhqdefault.jpg",480,360,"\u003Ciframe width=\"200\" height=\"113\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F9mUUpUcsaWQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen title=\"FFmpeg: How to Add an Intro to Multiple Videos in 1 Command\">\u003C\u002Fiframe>",113,200,{"type":42,"text":98,"spans":99,"direction":23},"Thanks for watching :)",[],{"results":101,"page":38,"results_per_page":162,"results_size":162,"total_results_size":163,"total_pages":38},[102,122,142],{"id":103,"uid":104,"url":6,"type":7,"href":105,"tags":106,"first_publication_date":107,"last_publication_date":107,"slugs":108,"linked_documents":110,"lang":15,"alternate_languages":111,"data":112},"auzqGRIAACsAt55X","ubuntu-26-04-enable-fractional-scaling-on-wayland","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=auzrLRIAACcAt6BE&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22auzqGRIAACsAt55X%22%29+%5D%5D",[],"2026-11-05T20:46:37+0000",[109],"ubuntu-26.04-enable-fractional-scaling-on-wayland",[],[],{"image":113,"title":118},{"dimensions":114,"alt":6,"copyright":6,"url":115,"id":116,"edit":117},{"width":32,"height":33},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FpVI5y1ileUlGp0ax_ubuntu26_04EnableFractionalScalingonWayland.jpeg?auto=format,compress","pVI5y1ileUlGp0ax",{"x":37,"y":37,"zoom":38,"background":39},[119],{"type":20,"text":120,"spans":121,"direction":23},"Ubuntu 26.04: Enable Fractional Scaling on Wayland",[],{"id":123,"uid":124,"url":6,"type":7,"href":125,"tags":126,"first_publication_date":127,"last_publication_date":127,"slugs":128,"linked_documents":130,"lang":15,"alternate_languages":131,"data":132},"auzo2RIAAC0At5xZ","ubuntu-26.04-undo-apt-install-with-apt-history","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=auzrLRIAACcAt6BE&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22auzo2RIAAC0At5xZ%22%29+%5D%5D",[],"2026-11-05T20:40:46+0000",[129],"ubuntu-26.04-undo-an-apt-install-with-apt-history-undo",[],[],{"image":133,"title":138},{"dimensions":134,"alt":6,"copyright":6,"url":135,"id":136,"edit":137},{"width":32,"height":33},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FqOqSwrMP0cjwe-66_Ubuntu26.04-UndoanAPTInstallwith%2522apthistory-undo%2522.jpg?auto=format,compress","qOqSwrMP0cjwe-66",{"x":37,"y":37,"zoom":38,"background":39},[139],{"type":20,"text":140,"spans":141,"direction":23},"Ubuntu 26.04: Undo an APT Install with \"apt history-undo\"",[],{"id":143,"uid":144,"url":6,"type":7,"href":145,"tags":146,"first_publication_date":147,"last_publication_date":147,"slugs":148,"linked_documents":150,"lang":15,"alternate_languages":151,"data":152},"auznGhIAACoAt5mB","ubuntu-26-04-enable-screen-time-limits","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=auzrLRIAACcAt6BE&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22auznGhIAACoAt5mB%22%29+%5D%5D",[],"2026-11-05T20:35:03+0000",[149],"ubuntu-26.04-enable-screen-time-limits-in-gnome",[],[],{"image":153,"title":158},{"dimensions":154,"alt":6,"copyright":6,"url":155,"id":156,"edit":157},{"width":32,"height":33},"https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002F2p8DjpWKS20G9Wse_Ubuntu26.04-EnableScreenTimeLimitsinGNOME.jpeg?auto=format,compress","2p8DjpWKS20G9Wse",{"x":37,"y":37,"zoom":38,"background":39},[159],{"type":20,"text":160,"spans":161,"direction":23},"Ubuntu 26.04: Enable Screen Time Limits in GNOME",[],3,41,1793911620141]