Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile kvazaar #269

Open
SonuMathew10 opened this issue Jun 11, 2020 · 4 comments
Open

How to compile kvazaar #269

SonuMathew10 opened this issue Jun 11, 2020 · 4 comments

Comments

@SonuMathew10
Copy link

Can someone provide step by step instructions on how to compile and run kvazaar on windows.

@fador
Copy link
Member

fador commented Jun 11, 2020

First, you need to download and put vsyasm.exe to your PATH variable (Only if using Visual Studio):

and if you have Visual Studio you can just open build/kvazaar_VS2015.sln, upgrade the solution as it suggests in startup, select Release and x64 from the top menu and Build -> Build Solution, it should produce bin\x64-Release\kvazaar.exe

(If you don't have Visual Studio but MinGW, MSYS2 or similar, you can just follor the linux instructions with .\autogen.sh and .\configure and make, it produces src\kvazaar binary)

To run kvazaar, go to the executable directory in commandline and run (changing the input file/resolution to something you have):
.\kvazaar --input BQMall_832x480_60.yuv --input-res=832x480 --preset=ultrafast --output out.hevc

I hope this helps!

Any specific questions in mind?

ps.
we have binaries for the 2.0.0 release available:
https://github.com/ultravideo/kvazaar/releases/download/v2.0.0/Win64-Release.zip
https://github.com/ultravideo/kvazaar/releases/download/v2.0.0/Win32-Release.zip

@SonuMathew10
Copy link
Author

Thanks, Can you give instructions on how to do visualisation in VS code.

@Arizer
Copy link
Contributor

Arizer commented Jun 15, 2020

Hi,

There is a separate branch for visualization. No special steps to perform except to add some DLLs (and an optional font) to the correct place. Visualization starts when Kvazaar is started.

Copied from README:

Visualization (Windows only)

Compiling kvazaar_cli project in the visualizer branch results in a Kvazaar executable with visualization enabled.

Additional Requirements: SDL2, SDL2-ttf.

Directory visualizer_extras has to be added into the same directory level as the kvazaar project directory. Inside should be directories include and lib found from the development library zip packages.

SDL2.dll, SDL2_ttf.dll, libfreetype-6.dll, and zlib1.dll should be placed in the working directory (i.e. the folder the kvazaar.exe is in after compiling the kvazaar_cli project/solution) when running the visualizer. The required .dll can be found in the aforementioned lib-folder (lib\x64).

Note: The solution should be compiled on the x64 platform in visual studio.

Optional font file arial.ttf is to be placed in the working directory, if block info tool is used.

@Arizer
Copy link
Contributor

Arizer commented Jun 15, 2020

Just realized this was about VS code and not visual studio. I'm not sure what exactly you want to do (build Kvazaar or just run Kvazaar with visualization?). Most of the instructions still apply. If you have built the binary and placed the DLLs then you just need to run Kvazaar as usual.

Also, I just tried to build and run Kvazaar with visualizer using VS code. It is possible, but seems to require some additional extensions and configuration files.

If these instructions did not help, could you be more specific about what you want to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants