I'm looking for an OpenCV fourcc codec that can be used in cv2.VideoWriter
which allows the video to be played back through a HTML file. I've tried, *'DIVX'
and *mp4v
through cv2.VideoWriter_fourcc
, but both don't seem to work in the following HTML file:
<video width="320" height="240" controls>
<source src=<FILE PATH> type="video/mp4">
Your browser does not support the video tag.
</video>
NOTE: When I say they "don't work", I mean that the video element is there, but I cannot play the video i.e. no frames are loaded into the video element
I'm also looking for a codec that doesn't need external installations and works just with cv2