Open DenSnow404 opened 2 years ago
Thanks for your tutorial, but could you maybe elaborate on why the readme did not work out for you? I guess installing it through pip is much simpler and the parameters are explained in the help section.
The only thing that maybe did not work for you was using pip
, because on your system it is linked to pip3
. So install and execution would look like this:
# install
pip3 install git+https://github.com/cansik/sharp-frame-extractor.git@1.6.6
# run
sfextract --frame-count 40 placevideohere.mp4
I just tried installing it through pip using pip3:
pip3 install git+https://github.com/cansik/sharp-frame-extractor.git@1.6.6
The following is put out:
Cloning https://github.com/cansik/sharp-frame-extractor.git (to revision 1.6.6) to /private/var/folders/9_/qxdgz7ns529csvc5q2cbwf0w0000gp/T/pip-req-build-g2_5kxmt
Running command git clone --filter=blob:none --quiet https://github.com/cansik/sharp-frame-extractor.git /private/var/folders/9_/qxdgz7ns529csvc5q2cbwf0w0000gp/T/pip-req-build-g2_5kxmt
Running command git checkout -q 90fafc14982e260c071bc31576043cd6a0e8c558
Resolved https://github.com/cansik/sharp-frame-extractor.git to commit 90fafc14982e260c071bc31576043cd6a0e8c558
Preparing metadata (setup.py) ... done
Requirement already satisfied: wheel in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from sharp-frame-extractor==1.6.6) (0.37.1)
Requirement already satisfied: opencv-python in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from sharp-frame-extractor==1.6.6) (4.6.0.66)
Requirement already satisfied: numpy in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from sharp-frame-extractor==1.6.6) (1.23.2)
Requirement already satisfied: tqdm in ./Library/Python/3.10/lib/python/site-packages (from sharp-frame-extractor==1.6.6) (4.64.0)
I then try running the code using:
sfextract --frame-count 40
I keep getting the same error:
ERROR: unknown command "sfextract"
This is very strange because I've used this code before using pip3, I don't know what I'm doing wrong.
If the direct call is not possible you could use:
python -m sfextract
Can't run on windows 11. Installed following the tutorial instructions (pip3 install git+https://github.com/cansik/sharp-frame-extractor.git@1.6.6) but Windows didn't recognized "sfextract" command.
After running "python -m sfextract" on windows command prompt got the following message:
C:\Users\kooji\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\python.exe: No module named sfextract
I don't know anything about coding so if you are an expert or just really advanced this is not for you, also I'm running this on MacOS so I don't know if the solution will be the same on other operating systems.
I was trying to run this in terminal and I just couldn't figure out why it wasn't running. After playing with it for a while I got it to run. Here is how I did it.
First I cloned the repository to my computer by typing the following in terminal:
git clone https://github.com/cansik/sharp-frame-extractor.git
I then moved into the sharp-frame-extractor directory by typing in the terminal:
cd sharp-frame-extractor
I then moved into the sharp_frame_extractor by typing in:
cd sharp_frame_extractor
Then you will want to run the code by typing:
python3 __main__.py --frame-count 40 placevideohere.mp4
Note: After typing in
--frame-count
you can place any number you want it does not have to be 40.