Using parsebin doesn't work if the decoder doesn't have the max priority. The parsebin element was designed to be used with playbin and uses all the GST_ELEMENT_FACTORY_TYPE_DECODABLE factories available to define the caps to use (note gst_parse_bin_update_factories_list).
The generic solution is to use GST_PLUGIN_FEATURE_RANK=%targetdecoder%:MAX to be sure parsebin uses the correct decoder, but it requires to extract the decoder element from the decoder_bin.
Using
parsebindoesn't work if the decoder doesn't have the max priority. Theparsebinelement was designed to be used withplaybinand uses all theGST_ELEMENT_FACTORY_TYPE_DECODABLEfactories available to define the caps to use (notegst_parse_bin_update_factories_list).The generic solution is to use
GST_PLUGIN_FEATURE_RANK=%targetdecoder%:MAXto be sureparsebinuses the correct decoder, but it requires to extract the decoder element from thedecoder_bin.