longo92
Posts: 35
Joined: Mon Sep 03, 2018 3:45 pm
Contact: Website Skype

Setting encoder input port with color format opaque

Fri Sep 07, 2018 1:29 pm

Hi,
Is possible to set the OpenMax encoder input with color format OMX_COLOR_FormatBRCMOpaque?
I need because i configure the encoding parameter of the camera video port with MMAL_ENCODING_OPAQUE (for mazimum perfromance), and then attached a callback on that port. So at each frame the callback is triggered, and the buffer should be passed to the OpenMax encoder.

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

Re: Setting encoder input port with color format opaque

Fri Sep 07, 2018 1:44 pm

MMAL_ENCODING_OPAQUE != OMX_COLOR_FormatBRCMOpaque They are not compatible.

Why are you trying to mix and match MMAL and IL? Chose one and stick with it. They both use the same components available on the GPU so use the video encoder under MMAL if you've chosen to use the MMAL camera component.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “OpenMAX”