Closed zhupengjia closed 11 months ago
Currently only raw (cv2.cudacodec.H264, cv2.cudacodec.H265) output is supported in cudacodec::VideoWriter
.
Raw files don't have any information regarding the number of frames. You need to place it in a container format to get that information.
Currently only raw (cv2.cudacodec.H264, cv2.cudacodec.H265) output is supported in
cudacodec::VideoWriter
.Raw files don't have any information regarding the number of frames. You need to place it in a container format to get that information.
Thank you for the clarification. Given this, we can now close the issue.
System information (version)
Detailed description
The output video from cudacodec writer has invalid frame count, which caused failed to open by some video players like VLC.
Steps to reproduce
Install dependencies in ubuntu-22.04:
Download Video_Codec_SDK_12.1.14.zip from nvidia website, copy .so and .h file to /usr/lib and /usr/include/
Compile with opencv-python, and latest opencv and opencv_contrib code
Download testing video:
Testing code named as test_opencv_gpu.py
Run the testing code:
The frame_count for output video is -192153584101141.0 -->
Issue submission checklist