generative-models icon indicating copy to clipboard operation
generative-models copied to clipboard

fix video writing issue #326

Open wzds2015 opened this issue 1 year ago • 2 comments

Some issue in imageio api to write video. Switch to opencv and write one frame each time.

wzds2015 avatar Mar 22 '24 11:03 wzds2015

Thanks to this, the mp4 comes out fine and is about 300 KB!

I'm getting that warning after the change, but what does it say? How does it affect the output of this project?

OpenCV: FFMPEG: tag 0x5634504d/'MP4V' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'

murphybread avatar Mar 24 '24 09:03 murphybread

The writting plugin requires imageio_ffmpeg or av plugin if you want to output a video.

The problem might be solved after trying the following command: apt-get update # step 1 apt-get install ffmpeg # step 2 pip install av imageio_ffmpeg # step 3

KenanHuang avatar Mar 26 '24 01:03 KenanHuang