Making a 10-hour video using ffmpeg

So you want to make a 10-hour video from a short clip and upload it to YouTube? Well, you’re in luck, because it’s actually easier than you might think!

First, you’ll need to use video editing software to create your short video, I use something called Kdenlive. It’s super easy to find and install – you even can get the appimage from their website or on Github. Once you’ve got it installed, create your short video with Kdenlive. For this example, we’ll use a video meme from the 2021 movie Bigbull. We will save this file as bigbull.mp4

Now comes the fun part. We’re going to use a ffmpeg to create the loop. cd into your working directory and then, type in the following command:

ffmpeg -stream_loop -1 -i bigbull.mp4 -t 36000 -c copy 10_bigbull.mp4

Basically, what this command does is take your short video and turn it into a 10-hour loop. The -stream_loop -1 flag tells ffmpeg to loop the video indefinitely, while the "-t 36000" flag sets the duration of the loop to 10 hours. The "-c copy" flag tells ffmpeg to copy the video and audio streams without re-encoding them which makes the whole process much faster.

Once ffmpeg has finished creating the loop, you’re ready to upload it to YouTube. Make sure you’re signed in to your account, then click on the upload button and select the 10_bigbull.mp4 file. Fill in the title, description, and any other relevant information, and click “Publish”. And just like that, you’ve got a 10-hour loop on YouTube.

Now, you’re free to share your video with the world. Whether you’re making a relaxing background video or a funny meme, turning a short video into a 10-hour loop is easy. So go ahead, try it, and take a look at the video I made below; you can even set it as your alarm for the morning.

Leave a Reply

Scroll to Top