stable-diffusion-webui-colab
stable-diffusion-webui-colab copied to clipboard
📚 ControlNet How to do batch processing without running img2img
https://github.com/Mikubill/sd-webui-controlnet/discussions/153
download from youtube and extract frames
pip install yt_dlp
python -c "from yt_dlp import YoutubeDL; YoutubeDL({'overwrites':True, 'format':'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4', 'outtmpl':'/content/video.mp4'}).download(['https://youtu.be/EU3hIXXeiz4'])"
mkdir /content/video
ffmpeg -i /content/video.mp4 '/content/video/%04d.png'
or
pip install yt_dlp
python -c "import os; from yt_dlp import YoutubeDL; ydl_opts = {'overwrites':True, 'format':'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4', 'outtmpl':'/content/video.mp4'}; YoutubeDL(ydl_opts).download(['https://youtu.be/EU3hIXXeiz4']); os.system('ffmpeg -i /content/video.mp4 \'/content/video/%04d.png\'')"
moved to discord