I am trying to write a video using the command cv2.VideoWriter() but when I deploy my app on heroku, I am not able to use most of the video codecs such h264, mp4v, and even if I use webm codec (vp80) I get this error
[matroska,webm @ 0x556363aef780] File ended prematurely which causes the video to end abruptly along with the warning `OpenCV: FFMPEG: tag 0x30387076/‘vp80’ is not supported with codec id 139 and format ‘webm / WebM’
I have added the following libraries -
and the following buildpack for heroku - GitHub - jonathanong/heroku-buildpack-ffmpeg-latest: A Heroku buildpack for ffmpeg that always downloads the latest static build
please guide me on what video codecs to use or if I am missing anything specific.