Video fix

This commit is contained in:
Andrzej Preibisz 2023-02-01 01:46:13 +01:00
parent 75157abaf2
commit 66e13ec7df

View File

@ -88,6 +88,8 @@ if __name__ == "__main__":
video_cap.release()
new_video_cap.release()
out.release()
video_file = open('output_video.mp4', 'rb')
os.system("ffmpeg -i output_video.mp4 -vcodec libx264 output_video2.mp4")
video_file = open('output_video2.mp4', 'rb')
st.video(video_file, format="video/mp4")