how to get source frame buffer after muxer?


My video frame pass through the “nvstreammux” plugin, and maybe scale from original size to another size, but when I get the buffer after muxer, I can’t get the source bufffer, how can I do?


You can change nvstreammux property “width and height” by code or config.


you may misunderstand my question. I have to resize all cameras’ frames to fix size such as 1280x720, and to nvinfer to do detection. The source frames’ size maybe 1920x1080, I want to crop the object from source frame according with detect rect.

So, on the one hand, I set nvstreammux property “width and height” to do inference, on the other hand, I want to crop object from source buffer after detection.


You only can get the size of buffer which streammux sets