dthpham / sminterpolate

Make motion interpolated and fluid slow motion videos from the command line.
MIT License
1.38k stars 91 forks source link

Unable to build the program on Windows 10 x64 #129

Open HASJ opened 4 years ago

HASJ commented 4 years ago
running build
running build_py
running build_ext
building 'butterflow.avinfo' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\Programas
creating build\temp.win-amd64-3.8\Release\Programas\butterflow
creating build\temp.win-amd64-3.8\Release\Programas\butterflow\butterflow
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python38\include -IC:\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\include" /TcD:\Programas\butterflow\butterflow\avinfo.c /Fobuild\temp.win-amd64-3.8\Release\Programas\butterflow\butterflow\avinfo.obj -std=c11 -Wall -g -O0 -fbuiltin -fdiagnostics-show-option -Wno-unused-variable -Wno-unused-function -Wno-cpp
cl : Linha de comando error D8021 : argumento numérico inválido '/Wno-unused-variable'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2

Do I need to specifically install Build Tools for C++ v14? All I want is to change some parameters on settings.pyc to use my GPU for encoding...

dthpham commented 4 years ago

I've never built BF with Visual Studio or with MSVC so I can't answer that. There's no up to date build from source guide for Windows but the latest one can be seen in older commits like this one: https://github.com/dthpham/butterflow/blob/aebbc6ede3aa3ae29857143ffde49fcaefdc05a3/docs/Install-From-Source-Guide.md

HASJ commented 4 years ago

I've never built BF with Visual Studio or with MSVC so I can't answer that. There's no up to date build from source guide for Windows but the latest one can be seen in older commits like this one: https://github.com/dthpham/butterflow/blob/aebbc6ede3aa3ae29857143ffde49fcaefdc05a3/docs/Install-From-Source-Guide.md

I am unable to execute the install script by following the instructions in that link. Some dependencies have changed in MSYS2's repo and git clone https://github.com/dthpham/butterflow.git does not create the install folder the script suggests is there.

I've tried compiling settings.py separately but when I put it on BF v024a4's folder, python returns me a invalid magic number error.

Just wanted to change the cv parameter in settings.py to hevc_nvenc and a few other things 'cause my CPU just can't handle the veryslow preset, but my GPU would burn through that.

I'll try it on my ubuntu installation but not sure it'll work.

HASJ commented 4 years ago

Unable to do it on ubuntu, either.

@dthpham could you explain in a little more detail what to do for a newbie? Also, if it isn't asking too much, could you tell me how to add the ffmpeg parameters -qmin and -qmax? Because, from what I understood of the code, the settings.py ffmpeg parameters are sent somewhere else before being passed to ffmpeg itself.

I know you are not maintaining anymore but there's nowhere else to ask.