On Wed Feb 12 13:35:29 2025 +0000, Yuxuan Shui wrote:
so i have no idea how h264 works so i had to do some research. but looks like h264parse splits thing into what are called NALUs, not frames. in this case, NALUs are actually sub-frame (at most a frame), so we are good for this particular encoder. but in general it feels dangerous to assume parser will always break buffer into frames or sub-frames. but maybe that's just me.
Regardless of how the parser decides to emit output buffers, it'll always be in best case smaller than this arbitrary split and in worst case give identical results.