Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help. i tried installing ffmpeg now my stable diffusion wont work #243

Open
stts111 opened this issue Apr 25, 2023 · 3 comments
Open

Help. i tried installing ffmpeg now my stable diffusion wont work #243

stts111 opened this issue Apr 25, 2023 · 3 comments

Comments

@stts111
Copy link

stts111 commented Apr 25, 2023

i tried installing ffmpeg and it said i had to change my path to setx /m PATH "C:\Users/user_name/ffmpeg\bin;%PATH%"

now when i launch stable diffusion i get this error

venv "C:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash:
Traceback (most recent call last):
File "C:\ai\stable-diffusion-webui\launch.py", line 360, in
prepare_environment()
File "C:\ai\stable-diffusion-webui\launch.py", line 300, in prepare_environment
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
File "C:\ai\stable-diffusion-webui\launch.py", line 151, in git_clone
current_hash = run(f'"{git}" -C "{dir}" rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}").strip()
File "C:\ai\stable-diffusion-webui\launch.py", line 105, in run
raise RuntimeError(message)
RuntimeError: Couldn't determine Stable Diffusion's hash: 47b6b607fdd31875c9279cd2f4f16b92e4ea958e.
Command: "git" -C "repositories\stable-diffusion-stability-ai" rev-parse HEAD
Error code: 1
stdout:
stderr: '"git"' is not recognized as an internal or external command,
operable program or batch file.

Press any key to continue . . .

@vinthony
Copy link
Collaborator

I guess you have deleted the PATH by mistake.

try to reinstall the git https://git-scm.com/download/win

@vinthony
Copy link
Collaborator

It seems ffmpeg can be easily installed via scoop install ffmpeg, you may try it on Windows(https://scoop.sh/).

@AndyCyberSec
Copy link

AndyCyberSec commented Sep 30, 2023

I have the same issue, env variable is not deleted.
I think it's more like once automatic1111 is started in python virtual environment it discards some Windows env var. In fact, if I stop automatic1111 and run ffmpeg command, the command is not found anymore.

Edit: Removed workaround instructions since they refer to another extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants