On Wed Jul 3 03:00:05 2024 +0000, Ziqing Hui wrote:
This doesn't look right and we could return a hardcoded value just as
well for now.
I'm not sure where this information comes from but if it really
matters maybe we need a way to get it from the actual encoder? The cbSize of output info is usually used for determining the output buffer size. So I think using a size that is large enough to hold the encoded sample will make things work. So I just use a uncompressed size here, which must bigger than the encoded h264 size.
The same question goes for `MF_MT_MPEG_SEQUENCE_HEADER`, is it
possible to get it from GStreamer? Or does it simply not matter? I'm not pretty sure for that. I'm planning to put it aside for now, and doing researh after we are starting to implement the actuall encoding code.
But the uncompressed size doesn't match and is smaller (in this case with NV12) than the value native uses.