July 25, 2023 by Samuel Mira | Comments
Qt 6.5 released a new Multimedia backend using the FFmpeg library.
Starting with Qt 6.5.2, we enabled this feature in Qt for Android! Now, you might ask what does it mean for Qt for Android to have the new FFmpeg multimedia backend? What does it provide?
This blog post will try to answer these questions. If you have other questions, please ask in the comments.
A core functionality of the new multimedia backend is, of course, the playback of video files.
Using FFmpeg multimedia backend adds three main advantages for the playback of video files:
On top of this, FFmpeg is a cross-platform library. Using it in Qt for Android will bring the functionality known on other platforms.
By developing a whole new media backend, we cleared up some technical debt on using the APIs supplied by Android. Previously, we used the Camera API, and we changed to support the Camera2 API.
The Camera API is very stable and works well for regular app development. But to support features available on the newest Android API levels, the Camera2 API is the way to go. It opens new possibilities by allowing much better control of the capture pipeline.
Development is ongoing to support both old and new camera options, so this is not a change that app developers can use today in Qt in its final form yet, rather than a stepping stone for new features in the future.
After setting up a new pipeline with Camera2 API, we needed to connect the Camera API with FFmpeg encoding.
Media encoding on Android with FFmpeg was an "Achilles heel" since software encoding is not performant enough on mobile devices due to memory and processing constraints on most devices.
Earlier FFmpeg did not offer hardware encoding in Android. But that changed on FFmpeg 6.0 "Von Neumann" major release.
We looked closely into the development of the hardware acceleration feature in FFmpeg, and since its release, we contributed several patches to the FFmpeg media library.
The contributed patches enable AV1, VP9, and VP8 codec encoding using hardware acceleration. These patches are already merged into the master branch but have not been released yet. They will be available in future releases of FFmpeg and Qt.
Download the latest release here: www.qt.io/download.
Qt 6.10 is now available, with new features and improvements for application developers and device creators.
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Dec 22, 2025
Qt for MCUs 2.8.4 LTS has been released and is available for download...
Dec 17, 2025
Let’s talk about Figma to Qt — the plugin that closes the gap between..
Dec 16, 2025
The latest Qt AI Assistant release adds custom coding instructions to..