After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732161 - playbin: Chooses avdec_h264dec over omxh264dec on RPi
playbin: Chooses avdec_h264dec over omxh264dec on RPi
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 731877 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-06-24 14:21 UTC by Sebastian Dröge (slomo)
Modified: 2015-08-16 15:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastian Dröge (slomo) 2014-06-24 14:21:48 UTC
Just a reminder for myself, will look into that soonish if nobody is faster.

Problem basically is that both elements have primary rank... but omxh264dec should be preferred because it has more capsfeatures in common with glimagesink (EGLImage!).
Comment 1 Olivier Crête 2014-06-25 14:35:44 UTC
Shouldn't we generally put hardware assisted elements at a higher rank than software ones ? (have a primary_software vs primary_hardware ?)
Comment 2 Sebastian Dröge (slomo) 2014-06-25 15:08:08 UTC
Sure, but that's a separate problem :) There's another bug about that already, created recently
Comment 3 Sebastian Dröge (slomo) 2014-06-26 17:46:33 UTC
Happens because
avdec_h264:PRIMARY, xvimagesink:PRIMARY, 1 common capsfeature
omxh264dec:PRIMARY, glimagesink:SECONDARY, 2 common capsfeatures

We first compare the ranks, then the number of common features.

Of course at that point we don't know yet that xvimagesink does not work and that we will use glimagesink anyway.


Not sure if it's safe to favour common capsfeatures over the rank.
Comment 4 Sebastian Dröge (slomo) 2014-06-28 08:34:05 UTC
Not really a blocker though, it's like that since forever.
Comment 5 Sebastian Dröge (slomo) 2014-07-22 07:24:16 UTC
Workaround for now

commit 41a7d37fe99868e3129eaf7abbcc5040617c08d4
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Tue Jul 22 09:23:00 2014 +0200

    config: Update ranks to PRIMARY+1 to have higher preference than avdec_*
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=732161
Comment 7 Sebastian Dröge (slomo) 2014-08-01 12:10:09 UTC
*** Bug 731877 has been marked as a duplicate of this bug. ***
Comment 8 Philippe Normand 2015-08-16 13:45:35 UTC
I can't reproduce this bug, resetting the omxh264dec rank to 256, it's still picked up by playbin correctly instead of the lib decoder.
Comment 9 Philippe Normand 2015-08-16 13:56:52 UTC
s/lib/libav :)