continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
3.1k stars 258 forks source link

[Bug]: Error extracting frames via ffmpeg #457

Closed hyfevian closed 8 months ago

hyfevian commented 8 months ago

Is there an existing issue for this?

Have you read FAQ on README?

What happened?

我已安装了ffmpeg,并将其设置了环境变量,但animatediff依然无法调用ffmpeg

Steps to reproduce the problem

  1. Go to .... webui
  2. Press ....generate
  3. ...

What should have happened?

找不到原因啊

Commit where the problem happens

webui: 秋叶的整合包 extension: animatediff

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--medvram --theme light --xformers --no-half-vae --api --autolaunch

Console logs

2024-03-10 08:14:25,123 - AnimateDiff - INFO - AnimateDiff process start.
2024-03-10 08:14:25,550 - AnimateDiff - INFO - Injecting motion module mm_sd15_v3.safetensors into SD1.5 UNet input blocks.
2024-03-10 08:14:25,550 - AnimateDiff - INFO - Injecting motion module mm_sd15_v3.safetensors into SD1.5 UNet output blocks.
2024-03-10 08:14:25,552 - AnimateDiff - INFO - Setting DDIM alpha.
2024-03-10 08:14:25,553 - AnimateDiff - INFO - Injection finished.
2024-03-10 08:14:25,560 - AnimateDiff - INFO - Attempting to extract frames via ffmpeg from C:\Users\888\AppData\Local\Temp\gradio\8cfdac3b9f6d2b53625d3aacc86330f428505f23\unknown.mp4 to D:\sd-webui-aki-v4.2/tmp/animatediff-frames\unknown-b861aadc
2024-03-10 08:14:25,768 - AnimateDiff - ERROR - [AnimateDiff] Error extracting frames via ffmpeg: Command '['ffmpeg', '-hwaccel', 'cuda', '-i', 'C:\\Users\\888\\AppData\\Local\\Temp\\gradio\\8cfdac3b9f6d2b53625d3aacc86330f428505f23\\unknown.mp4', '-filter:v', 'mpdecimate=hi=64*200:lo=64*50:frac=0.33,setpts=N/FRAME_RATE/TB', '-qscale:v', '1', '-qmin', '1', '-c:a', 'copy', 'D:\\sd-webui-aki-v4.2\\tmp\\animatediff-frames\\unknown-b861aadc\\%09d.jpg']' returned non-zero exit status 3221225781., fall back to OpenCV.
2024-03-10 08:14:25,768 - AnimateDiff - INFO - Attempting to extract frames via OpenCV from C:\Users\888\AppData\Local\Temp\gradio\8cfdac3b9f6d2b53625d3aacc86330f428505f23\unknown.mp4 to D:\sd-webui-aki-v4.2/tmp/animatediff-frames\unknown-b861aadc
2024-03-10 08:14:35,853 - AnimateDiff - INFO - AnimateDiff + ControlNet will generate 617 frames.
2024-03-10 08:14:35,894 - ControlNet - INFO - unit_separate = False, style_align = False
2024-03-10 08:14:36,088 - ControlNet - INFO - Loading model: control_v11p_sd15_openpose [cab727d4]
2024-03-10 08:14:36,833 - ControlNet - INFO - Loaded state_dict from [D:\sd-webui-aki-v4.2\models\ControlNet\control_v11p_sd15_openpose.pth]
2024-03-10 08:14:36,833 - ControlNet - INFO - controlnet_default_config
2024-03-10 08:14:37,974 - ControlNet - INFO - ControlNet model control_v11p_sd15_openpose [cab727d4](ControlModelType.ControlNet) loaded.
2024-03-10 08:14:37,974 - ControlNet - INFO - AnimateDiff + ControlNet dw_openpose_full receive the following parameters:
2024-03-10 08:14:37,974 - ControlNet - INFO -   batch control images: D:\sd-webui-aki-v4.2/tmp/animatediff-frames\unknown-b861aadc
2024-03-10 08:14:45,270 - ControlNet - INFO - Using preprocessor: dw_openpose_full
2024-03-10 08:14:45,270 - ControlNet - INFO - preprocessor resolution = 640

Additional information

No response

continue-revolution commented 8 months ago

it seems that it fall back to OpenCV frame extraction. Theoretically, OpenCV frame extraction is slower than ffmpeg, but you should have no problem doing video to video transfer. Linux users normally have ffmpeg pre-installed, but I'm not sure about Windows.

hyfevian commented 8 months ago

佬,你回复太快了吧。。。。在青叶群里都不说话

hyfevian commented 8 months ago

i will install ffmpeg again,thank you very much

continue-revolution commented 8 months ago

Please do not attempt to contact me via any Tencent software because I rarely use them. / 请不要使用任何腾讯系软件联系我,因为我很少使用。

hyfevian commented 8 months ago

2b13af97e51115c5565804fd061a5e6b