-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encode timestamps #3883
Comments
Can you share the code you use for encoding? Specifically which codec and what is the file extension of the encoded video? OpenCV 4.8.0 only supports raw output (not containers) so your file extension should be .h264 or .h265 which should play in vlc without issue. If you want the encoded video to be stored in a container (.mp4) then you need to upgrade to the latest version of OpenCV (latest commits from the 4.x branches of the main and contrib repositories). |
I want the encoded video to be stored in a container (.mp4),I will try again using the latest version of OpenCV.thank you for your answer |
`void TestHWEncoder(const std::string& inputPath, const std::string& outputPath) {
}` Extra modules: Platform: Still can't play |
I just tried your MRE using the big_buck_bunny.h264 test file and it played in vlc without any issues. e.g.
Are you writing to an mp4 container? What errors do you get in vlc? Note: The writer also excepts host frames. i.e. You can use |
When I use CV: CUDACodec: VideoWriter encoding, video cannot be played in VLC, converted to ffmeg and displayed as follows " Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly"
version:opencv_contrib-4.8.0
The text was updated successfully, but these errors were encountered: