Can't use cv::cudacodec::videoWriter to encode video

Hi,I compiled opencv4.7.0,opencv_contrib4.7.0 with NVCUVID ON on my Jstson Xavier NX and tried to use cv::cudacodec::videoWriter to encode video,but I failed at creating a videoWriter.Is it not surported to use NVENCODE with opencv or did I make something wrong?

Hi,
We don’t support it on Jetson platforms. Please use jetson_multimedia_api or gstreamer frameworks to use hardware encoder.
Jetson Linux API Reference: Main Page | NVIDIA Docs
gstreamer user guide

Thank you Danel,that solved my question

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.