Video fix
This commit is contained in:
parent
75157abaf2
commit
66e13ec7df
4
main.py
4
main.py
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user