Problem:
If you process video via OpenCV and want to display it in Streamlit using st.video() you will have a problem with codecs (MPEG4, H264, XVID)
Solution:
You can solve the problem by using the VP80 codec:
cv2.VideoWriter_fourcc(*‘VP80’)
and saving the video in output.webm format.