rese1f / StableVideo

[ICCV 2023] StableVideo: Text-driven Consistency-aware Diffusion Video Editing
https://rese1f.github.io/StableVideo/
Apache License 2.0
1.37k stars 87 forks source link

How to extract video frames? #22

Open ChocoWu opened 8 months ago

ChocoWu commented 8 months ago

Thanks for the great work. When editing a new video based on NLA models, we should first extract the frames within a video and save it into a video_name/frames_xxx.jpg. I want to know how to extract video frames and if there are any fixed frame numbers for a video. It would be better if the authors could provide the related pre-processed code.

rese1f commented 8 months ago

u can use ffmepg to do so :), there is no fixed frame numbers for a video, but make sure dont introduce very low fps or large motion. good luck