On Thu Oct 19 08:32:44 2023 +0000, Ziqing Hui wrote:
While trying to use encodebin, I found that it will finally create a pretty complex pipeline, which contains streamsplitter, queue, capsfilter, converter, encoder, streamcombiner and so on, these addtional elements is for encoding uncompressed samples. Image of encodebin pipeline while testing mp4 muxing: [encodebin pipeline image](/uploads/ecc102ebb402203a34cd1be02a347bfe/muxer.png) In our cases, we don't need to encode uncompressed data inside wg_muxer because we will send compressed data to it. We just need parsers and a muxer. However, we cannot turn them off, because these elements will always be created. See: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/g...
Also, I think there is also some ways to simplify the current autoplug code. I'll try to reduce some code and submit a new autoplug verison.