-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
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
VideoWriter not working with 4.7.0.68 #23097
Comments
A related issue seem to happen for video reading with System infos:OS: ArchLinux DescriptionWhen reading an MP4 video, the following error happens
|
@robin-blanchard @24PaH Please add
GStreamer logs mean that you are using some self-built instance of OpenCV. GStreamer implements video formats and codecs as plugins. You need to switch to official package or install all required plugins for mp4. |
I believe I stumbled across the same issue today when I upgraded to opencv-python 4.7.0.72 causing my code that used VideoWriter to stop working:
After this error message, I reached and failed an assertion in CvCapture_Images class, how I reached that point of the code after calling into the Python constructor for the VideoWriter seems to suggest that the bindings are very broken somewhere. Incidentally, I suspect that the error that @24PaH is seeing on 4.6 is unrelated to this issue. VideoWriter worked for me again after downgrading to 4.1.1.26. I know that is a huge change in the version number but I do not have time to look into this further unfortunately. |
@allsey87 All Packages distributed over Pypi are built with FFmpeg support without GStreamer. Your error message says that GStreamer is used. It means, tha you use self-built OpenCV or you have several instances of OpenCV installed. |
@asmorkalov In any case, and regardless of whether GStreamer support was compiled in, it seems pretty strange to end up failing an assertion in the class for reading a sequence of images when I called the |
@allsey87 GSreamer is plugin-based system. You need to install all required plugins to go forward with your OpenCV build. |
System Information
// example for python user
OpenCV python version: 4.7.0.68
Operating System / Platform: Ubuntu 20.04
Python version: 3.6.15
Detailed description
Writing a video with VideoWriter now prints some GStreamer error logs:
It doesn't raise any Exception in Python but no video file has been created.
Downgrading to 4.6.0.66 fixes the problem
Steps to reproduce
Issue submission checklist
The text was updated successfully, but these errors were encountered: