example/demo.py: video writer could not be opened
See original GitHub issueThe video example does not work. I get the following error:
File "visdom_demo.py", line 28, in <module> viz.video(tensor=video) File "/home/bk17/anaconda3/envs/pytorch/lib/python3.6/site-packages/visdom/__init__.py", line 420, in video assert writer.isOpened(), 'video writer could not be opened' AssertionError: video writer could not be opened
I’m using the video mentioned in the code comments as the input file. The installed opencv version is 3.2.0
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
example/demo.py: video writer could not be opened · Issue #106
The video example does not work. I get the following error: File "visdom_demo.py", line 28, in viz.video(tensor=video) File ...
Read more >OpenCV videowrite doesn't write video - Stack Overflow
On windows 7 and using Python 2.7 and OpenCV 2.4.8, I experienced the fact that if the file NAME is "output.mpg" would not...
Read more >cv::VideoWriter Class Reference - OpenCV
Returns true if video writer has been successfully initialized. More... virtual bool, open (const String &filename, int fourcc, double fps, Size frameSize, bool ......
Read more >Debugging HTML - Learn web development | MDN
So there we have it, an introduction to debugging HTML, which should give you some useful skills to count on when you start...
Read more >OpenCV Error creating VIdeoWriter object - Intel Communities
Solved: I'm on windows 10 (64 bit) and finally got OpenVino installed and working correctly using the windows installation tool.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry, missed this for a while and then later was waiting to test OpenCV set-up properly before posting. The problem is with the choice of codec in fourcc variable in the code you linked above. Would it be possible to support other codecs (like letting user choose it) ?
I tried a simple test code in my set-up and it works for certain codecs but not with the one used in visdom:
@GregorKoehler - We haven’t revisited this, though we’d be happy to accept a PR that adds an optional flag to the python version of the
video
function for other codecs.