Ariane Robineau
Head of 3D
In charge of 3D
HPC platform
Launch compute tasks in a few lines of code or a few clicks on Tasq, our HPC platform.

FFmpeg on Qarnot Cloud - documentation

October 28, 2021 - 3D, Documentation

Introduction

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

Versions

FFmpeg versions adapted on Qarnot:

Release yearFFmpeg version
20214.4

If you are interested in another version, you can select the one that you need on the Docker hub right here.

Test Case

In this test case, a mp4 file will be converted into an avi file. To download the demo file, create an input folder and navigate in it. There, use the following command: wget https://computing.qarnot.com/qarnot_computing.mp4 -O ./qarnot_computing.mp4

Launching the case

Before starting a calculation with the Python SDK, a few steps are required:

  • Please ensure that you have created a Qarnot account here.
  • Retrieve the authentication token here.
  • Install Qarnot’s Python SDK here.

Note: in addition to the Python SDK, Qarnot provides C# and Node.js SDKs and a Command Line. Once everything is set up, the following script needs to be used to start the calculation. Be sure you have copied your authentication token in the script (instead of <<<MY_SECRET_TOKEN>>>) to be able to launch the task on Qarnot. ffmpeg.py To use this script, simply copy the preceding code in a Python script, put it at the same level as the input folder. Your tree view should look like this:

  • input
    • qarnot_computing.mp4
  • ffmpeg.py

 To launch this script, execute python3 ffmpeg.py & in your terminal.

Results

At any given time, you can monitor the status of your task on Tasq.

 

Successful FFmpeg execution on Qarnot’s Tasq

You should now have an output folder in your working directory on your computer and a ffmpeg-out bucket on Qarnot’s Tasq containing the output avi video.

Wrapping up

That’s it! If you have any questions, please contact qlab@qarnot.com and we will help you with pleasure!

Share on networks