Closed ahmadrr closed 3 years ago
Currently there is 2 options, use stable build from pip pip install av1an
or build current master https://gist.github.com/master-of-zen/0833bec1e7df72ed165083cd44e9187b
Thank you, didn't realize it currently uses rust. Now I get these errors, it says SDK is not installed. Seems to be looking for VapourSynth with max version 51? I have it installed though, version 53.
d:\Video\av1>virtualenv env created virtual environment CPython3.9.5.final.0-64 in 864ms creator CPython3Windows(dest=D:\Video\av1\env, clear=False, no_vcs_ignore=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\Ahmad\AppData\Local\pypa\virtualenv) added seed packages: pip==21.1.1, pip==21.1.2, setuptools==56.0.0, setuptools==57.0.0, wheel==0.36.2 activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
d:\Video\av1>env\scripts\activate
WARNING: Discarding https://files.pythonhosted.org/packages/79/62/9949f4251a3090f0ec41d124739526ff0f957bbe0bf998e665f595085aed/VapourSynth-39.tar.gz#sha256=12f212c2ea6e978a32c059e134135aceb5e97476226439e79dd6797d9f52f535 (from https://pypi.org/simple/vapoursynth/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement vapoursynth (from versions: 39, 40, 41, 42, 43, 44, 45, 46, 47, 47.1, 47.2, 48, 49, 50, 51) ERROR: No matching distribution found for vapoursynth 💥 maturin failed Caused by: pip install finished with "exit code: 1"
In current state av1an can't bee installed, and require compilation of libraries with maturin develop, (look up in install gist) and usage from venv like ./av1an.py ...
Sorry for inconvenience, it's currently in state of total rewrite.
I would recommend to just use current stable pip version pip install av1an
I think I have successfully compiled it, but I got these errors when I ran av1an.py. Are there files that I should copy-paste to somewhere? Thanks
"c:\program files\python38\python" d:\video\av1\av1an.py
Traceback (most recent call last):
File "d:\video\av1\av1an.py", line 4, in
Below is the compilation output from cmd
(env) d:\Video\av1>maturin develop --release -m av1an-pyo3/Cargo.toml 🔗 Found pyo3 bindings 🐍 Found CPython 3.8 at python.exe Requirement already satisfied: numpy in d:\video\av1\env\lib\site-packages (1.20.3) Requirement already satisfied: scenedetect[opencv] in d:\video\av1\env\lib\site-packages (0.5.5) Requirement already satisfied: opencv-python in d:\video\av1\env\lib\site-packages (4.5.2.54) Requirement already satisfied: tqdm in d:\video\av1\env\lib\site-packages (4.61.0) Requirement already satisfied: psutil in d:\video\av1\env\lib\site-packages (5.8.0) Requirement already satisfied: scipy in d:\video\av1\env\lib\site-packages (1.6.3) Requirement already satisfied: matplotlib in d:\video\av1\env\lib\site-packages (3.4.2) Requirement already satisfied: vapoursynth in d:\video\av1\env\lib\site-packages (51) Requirement already satisfied: pillow>=6.2.0 in d:\video\av1\env\lib\site-packages (from matplotlib) (8.2.0) Requirement already satisfied: kiwisolver>=1.0.1 in d:\video\av1\env\lib\site-packages (from matplotlib) (1.3.1) Requirement already satisfied: python-dateutil>=2.7 in d:\video\av1\env\lib\site-packages (from matplotlib) (2.8.1) Requirement already satisfied: pyparsing>=2.2.1 in d:\video\av1\env\lib\site-packages (from matplotlib) (2.4.7) Requirement already satisfied: cycler>=0.10 in d:\video\av1\env\lib\site-packages (from matplotlib) (0.10.0) Requirement already satisfied: six in d:\video\av1\env\lib\site-packages (from cycler>=0.10->matplotlib) (1.16.0) Requirement already satisfied: Click in d:\video\av1\env\lib\site-packages (from scenedetect[opencv]) (8.0.1) Requirement already satisfied: colorama in d:\video\av1\env\lib\site-packages (from Click->scenedetect[opencv]) (0.4.4) Compiling av1an-pyo3 v0.1.2 (D:\Video\av1\av1an-pyo3) Finished release [optimized] target(s) in 2.82s
Were you in the env when you ran av1an? You need to have the env active when you use av1an as that is where av1a-pyo3 lives
Yes I tried running in env and it was still looking for av1an_pyo3.dll in "av1an_pyo3" folder, not "av1an-pyo3" folder. So I created one and pasted the module there. I don't see where frame_probe_vspipe is though.
D:\Video\av1>env\scripts\activate
(env) D:\Video\av1>av1an
Traceback (most recent call last):
File "D:\Video\av1\av1an.py", line 4, in
This is pip version
pip install --upgrade av1an Requirement already satisfied: av1an in c:\program files\python38\lib\site-packages\av1an-7.0.0-py3.8.egg (7.0.0) Requirement already satisfied: numpy in c:\program files\python38\lib\site-packages (from av1an) (1.19.4) Requirement already satisfied: vapoursynth in c:\program files\python38\lib\site-packages (from av1an) (51) Requirement already satisfied: scenedetect[opencv] in c:\program files\python38\lib\site-packages (from av1an) (0.5.4.1) Requirement already satisfied: opencv-python in c:\program files\python38\lib\site-packages (from av1an) (4.4.0.46) Requirement already satisfied: tqdm in c:\program files\python38\lib\site-packages (from av1an) (4.60.0) Requirement already satisfied: psutil in c:\program files\python38\lib\site-packages\psutil-5.8.0-py3.8-win-amd64.egg (from av1an) (5.8.0) Requirement already satisfied: scipy in c:\program files\python38\lib\site-packages\scipy-1.6.0-py3.8-win-amd64.egg (from av1an) (1.6.0) Requirement already satisfied: matplotlib in c:\program files\python38\lib\site-packages\matplotlib-3.3.4-py3.8-win-amd64.egg (from av1an) (3.3.4) Requirement already satisfied: maturin in d:\video\av1.eggs\maturin-0.10.6-py3.8-win-amd64.egg (from av1an) (0.10.6) Requirement already satisfied: setuptools_rust in c:\program files\python38\lib\site-packages (from av1an) (0.12.1) Requirement already satisfied: cycler>=0.10 in c:\program files\python38\lib\site-packages\cycler-0.10.0-py3.8.egg (from matplotlib->av1an) (0.10.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\program files\python38\lib\site-packages\kiwisolver-1.3.1-py3.8-win-amd64.egg (from matplotlib->av1an) (1.3.1) Requirement already satisfied: pillow>=6.2.0 in c:\program files\python38\lib\site-packages\pillow-8.1.0-py3.8-win-amd64.egg (from matplotlib->av1an) (8.1.0) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\program files\python38\lib\site-packages\pyparsing-3.0.0b2-py3.8.egg (from matplotlib->av1an) (3.0.0b2) Requirement already satisfied: python-dateutil>=2.1 in c:\program files\python38\lib\site-packages\python_dateutil-2.8.1-py3.8.egg (from matplotlib->av1an) (2.8.1) Requirement already satisfied: six in c:\program files\python38\lib\site-packages\six-1.15.0-py3.8.egg (from cycler>=0.10->matplotlib->av1an) (1.15.0) Requirement already satisfied: toml~=0.10.2 in c:\program files\python38\lib\site-packages (from maturin->av1an) (0.10.2) Requirement already satisfied: Click in c:\program files\python38\lib\site-packages (from scenedetect[opencv]->av1an) (7.1.2) Requirement already satisfied: setuptools>=46.1 in c:\program files\python38\lib\site-packages (from setuptools_rust->av1an) (56.0.0) Requirement already satisfied: semantic-version>=2.6.0 in c:\program files\python38\lib\site-packages (from setuptools_rust->av1an) (2.8.5)
C:\WINDOWS\system32>av1an
Traceback (most recent call last):
File "C:\Program Files\Python38\Scripts\av1an-script.py", line 33, in
I would say pip uninstall av1an all together and then reinstall it. It looks like it didnt actually do anything when you told it to install the pip version.
I would say pip uninstall av1an all together and then reinstall it. It looks like it didnt actually do anything when you told it to install the pip version.
This solved the problem, thank you. I'll wait for the rewrite to finish.
I'll wait for the rewrite to finish.
This is what you should do right now.
The rewrite will probably take quite some time still
I sucessfully compiled av1an rust just now. Thanks for the rewrite.
Windows 10; Python 3.9; latest pip, rust, MSVC++ 2019 I compiled Av1an about a month ago, it was quick and easy, didn't require these additional things
d:\Video\av1>python setup.py install running install running bdist_egg running egg_info writing Av1an.egg-info\PKG-INFO writing dependency_links to Av1an.egg-info\dependency_links.txt writing entry points to Av1an.egg-info\entry_points.txt writing requirements to Av1an.egg-info\requires.txt writing top-level names to Av1an.egg-info\top_level.txt adding license file 'LICENSE.md' (matched pattern 'LICEN[CS]E') reading manifest file 'Av1an.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'pyproject.toml' warning: no files found matching '' under directory 'src' writing manifest file 'Av1an.egg-info\SOURCES.txt' installing library code to build\bdist.win-amd64\egg running install_lib running build_py running build_ext running build_rust cargo rustc --lib --manifest-path Cargo.toml --features pyo3/extension-module --target x86_64-pc-windows-msvc --release --verbose -- --crate-type cdylib error: manifest path
d:\Video\av1\Cargo.toml
is a virtual manifest, but this command requires running against an actual package in this workspace error: cargo failed with code: 101