osi1880vr / deforum-sd-ui

Other
18 stars 6 forks source link

Error when generating video #25

Closed saruzaru closed 2 years ago

saruzaru commented 2 years ago

I get an error when it's trying to make a video:

File "E:\ml\deforum-sd\scripts\tools\deforum_runner.py", line 222, in run_batch
    video.produce_video(args, image_path, mp4_path, max_frames)
  File "scripts\tools\deforum\video.py", line 41, in produce_video
    process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Users\Damian\miniconda3\envs\ldm-local\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\Damian\miniconda3\envs\ldm-local\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
HenkDz commented 2 years ago

I have got the same error

HenkDz commented 2 years ago

Are we the only ones having this issue?

osi1880vr commented 2 years ago

no its my fault on the documentation, to run video to video or also txt2vid you need to have ffmpeg on your system, for windows its at, at the moment hardcoded path, for linux you must add ffmpeg to your path variable. to find the hardcoded path have a look into scripts/tools/deforum/video.py you find it at line 10