italiansc
Posts: 7
Joined: Thu Jul 30, 2020 11:43 am

Whether OpenMAX is deprecated? What is the uptodate multimedia platform on RPi?

Tue Aug 04, 2020 3:02 am

From some documents said OpenMAX has been deprecated for a long time and isn't supported with 64-bit kernels, is it right? If it is, What is the uptodate multimedia platform on RPi?

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9069
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Whether OpenMAX is deprecated? What is the uptodate multimedia platform on RPi?

Tue Aug 04, 2020 10:08 am

V4L2 is the mainline Linux kernel API for codec and camera related multimedia, and is where we are heading for those. Codecs are all supported already, as is the ISP for resizing and format conversion.

libcamera is coming in to provide a fully featured (and open source) camera stack.

DRM/KMS, and EGL are the mainline Linux kernel APIs for display side stuff, and again where things are heading.

For the older Pi variants MMAL is there and supported. There is an issue in 64bit land at present with it that will be addressed when time and resource permits.

OpenMAX has been a dead since around 2012. Android used it as most SoC vendors claimed support as part of the tick-box "APIs supported" marketing blurb, but whilst it claimed to be a standard there were significant differences in the interpretation by vendors. It's always been a pain to handle with regard the asynchronous callbacks for event completion, and debugging why transitions never completed was always a nightmare. RIP OMX.
And there is certainly no way I intend to attempt making OMX work in a 64bit environment - it's just too involved and messy.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

gkreidl
Posts: 6335
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Whether OpenMAX is deprecated? What is the uptodate multimedia platform on RPi?

Tue Aug 04, 2020 11:12 am

Will the V4L2 H264 decoder be able to decode interlaced video in the (near) future?
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

italiansc
Posts: 7
Joined: Thu Jul 30, 2020 11:43 am

Re: Whether OpenMAX is deprecated? What is the uptodate multimedia platform on RPi?

Tue Aug 04, 2020 2:55 pm

So if the OpenMAX API is removed from kernel,which API should I use to operator audio device? Currently I only know use OMX Component to play audio.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9069
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Whether OpenMAX is deprecated? What is the uptodate multimedia platform on RPi?

Tue Aug 04, 2020 3:00 pm

italiansc wrote:
Tue Aug 04, 2020 2:55 pm
So if the OpenMAX API is removed from kernel,which API should I use to operator audio device? Currently I only know use OMX Component to play audio.
ALSA - the Linux standard audio library that has been supported on the Pi since about 2015. It also supports I2S and USB sound cards, unlike OMX.

For audio codecs use FFmpeg and the associated libavcodec library - that has far greater codec support than OMX has ever provided, and audio is far lighter on the CPU than video so shifting it to the GPU has minimal gain.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: Whether OpenMAX is deprecated? What is the uptodate multimedia platform on RPi?

Tue Aug 04, 2020 3:01 pm

italiansc wrote:
Tue Aug 04, 2020 2:55 pm
So if the OpenMAX API is removed from kernel,which API should I use to operator audio device? Currently I only know use OMX Component to play audio.
You should use the standard linux ALSA components, which is how the desktop does things.

edit: Ninja'd
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “OpenMAX”