Skip to content

Qualcomm video decoder fails linking due to incorrect capsΒ #14205

@Viliuks

Description

@Viliuks

Have you checked the latest release for fixes?

  • Yes, I’ve tested on the latest release

Description

Expected Behavior
Android 10 with Qualcomm Snapdragon is expecting caps on its sink pad:
video/x-h265,stream-format=byte-stream,alignment=au

Image

Currently they are being forced to:
video/x-h265,stream-format=hvc1 in GstVideoReceiver::_filterParserCaps

And the decodebin3 still decides to use software decoder because the hardware decoder is rejecting the provided caps.

Suggestion:

If building for android keep backwards compatability and insert a capsfilter after parsebin with "older" caps. It should support older/newer gstreamer and older/newer Android MediaCodec. Plus most likely will fix plenty of other android devices not utilising hardware decoding. Also should allow decodebin3 to pick the decoder based on rank and choose software decoders if hardware decoder is unavailable for some reason.

Platform

Android

Flight Stack

PX4

System Information

Stable v5.0.0, noticed the same on upstream.

Log Files and Screenshots

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions