Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 2088

VideoWriter not working on MacOS

$
0
0
Installed opencv from PIP (python 3.8) and just cant write any video properly. Using this general constructor pattern: ```writer = cv.VideoWriter('myvideo.avi',cv.VideoWriter_fourcc('m','j','p','g'),25,(h,w))``` And trying many different codecs (divx, mp4v, avc1...) - none of them works. Just getting an unreadable file 'myvideo.avi' that weights just a few KB. The irony is that if I write the video using opencv c++ code (been using [this example](https://github.com/opencv/opencv/blob/b39cd06249213220e802bb64260727711d9fc98c/samples/cpp/videowriter_basic.cpp)), it works perfect.

Viewing all articles
Browse latest Browse all 2088

Trending Articles