On Wed Oct 18 17:10:16 2023 +0000, Zebediah Figura wrote:
To be clear, I'm not committed to using encodebin; it's possible that encodebin won't work out in one way or another. Just from looking over it it *looks* like it'll work, so I think it's worth a try.
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...