Skip to content

Commit

Permalink
fourcc
Browse files Browse the repository at this point in the history
  • Loading branch information
sibozhang committed Aug 20, 2021
1 parent 359ecb7 commit 4ec3463
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions image2video_real_audio_text2video.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
a_height, a_width, layers = a_img.shape

if out==[]:
fourcc = cv2.VideoWriter_fourcc(*'MPEG')
out=cv2.VideoWriter('./results/{person}/video.mp4'.format(person=person),
cv2.VideoWriter_fourcc(*'MP4V'), fps, (a_width, a_height))
out.write(a_img)
Expand Down

0 comments on commit 4ec3463

Please sign in to comment.