FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.
FFmpeg versions adapted on Qarnot:
|Release year||FFmpeg version|
If you are interested in another version, you can select the one that you need on the Docker hub right here.
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:
To launch this script, execute
python3 ffmpeg.py & in your terminal.
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.
That’s it! If you have any questions, please contact firstname.lastname@example.org and we will help you with pleasure!