DeepFaceLab icon indicating copy to clipboard operation
DeepFaceLab copied to clipboard

Error extracting data_src frames from video

Open hensing2020 opened this issue 4 years ago • 5 comments

Always get an error at Command #5 : Extract data_src frames from Video

(base) iMac:DeepFaceLab hernning$ python main.py videoed extract-video --input-file WORKSPACE/data_src.mp4 --output-dir WORKSPACE/data_src Traceback (most recent call last): File "main.py", line 11, in from interact import interact as io File "/Users/hernning/Documents/deepfakes/DeepFaceLab/interact/init.py", line 1, in from .interact import interact File "/Users/hernning/Documents/deepfakes/DeepFaceLab/interact/interact.py", line 7, in import cv2 ModuleNotFoundError: No module named 'cv2'

any idea ??? THANKS IN ADVANCE !!!!

Using macOS Catalina 10.15.4 with python 3.7

hensing2020 avatar Apr 07 '20 15:04 hensing2020

macos is unsupported

iperov avatar Apr 08 '20 09:04 iperov

Just run pip install opencv-python in a terminal window. You’re just missing the opencv module. There is no true compatibility issue here.

TalosOfCrete avatar Apr 10 '20 03:04 TalosOfCrete

I did install python. before, but now I get the following:

(base) iMac:DeepFaceLab hernning$ python main.py videoed extract-video --input-file WORKSPACE/data_src.mp4 --output-dir WORKSPACE/data_src Traceback (most recent call last): File "main.py", line 331, in arguments.func(arguments) File "main.py", line 220, in process_videoed_extract_video from mainscripts import VideoEd File "/Users/hernning/Documents/deepfakes/DeepFaceLab/mainscripts/VideoEd.py", line 3, in import ffmpeg ModuleNotFoundError: No module named 'ffmpeg'

WHAT IS THE PROBLEM ?!? I DONT UNDERSTAND ???

hensing2020 avatar Apr 10 '20 07:04 hensing2020

If you don't understand:

"ModuleNotFoundError: No module named 'ffmpeg'"

This might not be for you

feepdakenoob avatar Apr 15 '20 16:04 feepdakenoob

pip install ffmpeg or pip install ffmpeg-python if the first not working ;)

jeremybarbaud avatar Aug 18 '22 13:08 jeremybarbaud

Issue solved (or it seems like user error), please close it.

joolstorrentecalo avatar Jun 08 '23 20:06 joolstorrentecalo