GNOME Bugzilla – Bug 737455
aacparse: declare Converter capability in metadata
Last modified: 2018-11-03 14:54:26 UTC
Created attachment 287200 [details] [review] Patch Otherwise decodebin doesn't know the parser can convert and it will not attempt to filter its srcpad
Comment on attachment 287200 [details] [review] Patch The problem here is that decodebin assumes that the parser can convert between all of the formats it can support. This is not true for aacparse (yet) and can break negotiation Of course the code in decodebin already breaks negotiation in other ways so we probably have to fix that anyway :)
I thought gst_aac_parse_sink_getcaps would take care of that. Anyway, I do have some code that can get raw data from loas frames if anyone is interested, but If I understand correctly the converter should also be able to convert to loas (that sounds like quite a lot more work).
Sebastian, regarding your comment, the opposite is also true; if aacparse is not marked as a Converter, decodebin can't construct a pipeline where stream format conversion is required. Mind you, even when aacparse is marked as a Converter, it can't construct the following pipeline, as decodebin configures the capsfilter to allow raw. demux -(raw)-> aacparse -(adts)-> capsfilter -(adts)-> decoder
aacparse would need to do negotiation with downstream like h264parse does, i.e. prefer the order of downstream instead of doing passthrough if possible. Then the above pipeline should work.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/130.