Set of Python bindings to C++ libraries which provides full HW acceleration for video decoding, encoding and GPU-accelerated color space and pixel format conversions
Apache License 2.0
1.32k
stars
233
forks
source link
Encode Video Stream get black frames or small size h265 frames #539
Describe the bug
I wanna use VPF to encode the ros2 foxy image topic stream, and I use VPF to encode the frame in the image callback function, But I found that some encoded image frames are very small compared to other frames. If I write all the frames as video and play it, I find that those small image frames are black, or the video stream has flickering, which does not Not the result I want.
Describe the bug I wanna use VPF to encode the ros2 foxy image topic stream, and I use VPF to encode the frame in the image callback function, But I found that some encoded image frames are very small compared to other frames. If I write all the frames as video and play it, I find that those small image frames are black, or the video stream has flickering, which does not Not the result I want.
Screenshots I print the encoded frame size, and if the shape is too small, I print the frame data, and I got the picture in the picture and the video https://github.com/NVIDIA/VideoProcessingFramework/assets/19700579/32c2beee-ca6e-4523-9ae9-005934aa5379
From the video we can see there is intermittent flickering, which appears to be a encode error
my code is the derived from sample/SampleCupy.py
Desktop:
Additional info