edit Copy Return Up-pointing chevronRight-pointing chevronfacebooklinkedintwitter

Fast video transcoding with FFmpeg in the cloud

Video processing and especially transcoding are quite CPU-intensive tasks. That’s why doing it in the cloud is great. Not only can you easily use a large number of CPUs to make your conversions go faster and to run many side-by-side, you’ll also have your computer free to do other work. And by running it on the Nerdalize cloud you’ll be able to do so affordably, while heating someone’s shower and saving CO2 at the same time.

FFmpeg logo

FFmpeg is a great tool for video processing, but like many applications it’s usually quite a hassle to run it in the cloud. To make scaling to the cloud easy we’ve made it super-straightforward to run FFmpeg on Nerdalize. Using our FFmpeg Docker image and Nerd, our easy-to-use CLI, you can transcode any video file from your computer in the cloud using just two commands:

$ nerd job run \
	--input=~/my-video-files:/input \
	--output=ffmpeg-output:/output \
	--memory=3 --vcpu=2 \
	nerdalize/ffmpeg -i input.mp4 output.avi
$ nerd dataset download ffmpeg-output ~/my-transcoded-video-files
Submitted job: 'ffmpeg-run'
To see whats happening, use: 'nerd job list'

Downloading (Step 1/2): 972.80 KB / 972.80 KB [=======] 100.00% 0s
Unarchiving (Step 2/2): 972.80 KB / 972.80 KB [=======] 100.00% 0s
Downloaded 1 dataset

Of course it’s not just limited to converting MP4 files to a AVI. You can use the full FFmpeg featureset like creating optimized videos at different resolutions and bitrates, various other compression options for video and audio, creating thumbnails, etc. In fact, you can use FFmpeg just like you’re used to by passing any of the normal FFmpeg arguments. We had some fun with it in our example job.

A screenshot of our example image

Try FFmpeg yourself for free

We’ve created a short guide to get started with running your FFmpeg jobs on the Nerdalize cloud. By registering, you’ll get free cores so you can process your own videos right away, or try it out with our example video.

About our cloudsoftware
Alexander Weiss
posted this September 19