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

Compiling for Windows 10 64 bit #3

Open
minusplusminus opened this issue Aug 23, 2019 · 1 comment
Open

Compiling for Windows 10 64 bit #3

minusplusminus opened this issue Aug 23, 2019 · 1 comment

Comments

@minusplusminus
Copy link

Hi,

I'm compiling for Windows 10 64 bit. I almost got it working. Will create pull request when i'm finished.

Used cmake to build the project:

cmake .. -G "Visual Studio 15 2017" -A x64 -T host=x64

downloaded https://ffmpeg.zeranoe.com/builds/win64/dev/ffmpeg-20190823-b29c7bc-win64-dev.zip

added ffmpeg to include directories and library directories

in mpsp.c

After #include "mlsp.h":

#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || defined(WINAPI_FAMILY)
#include <winsock.h>
#include <windows.h>
#elif defined(__MACH__) || defined(__ANDROID__) || defined(__linux__)
#include <unistd.h> //close
#include <netinet/in.h> //socaddr_in
#include <arpa/inet.h> //inet_pton, etc
#endif

changed f ((m->socket_udp = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)

Visual studio complains that it's missing an identifier


\pluginssource\network-hardware-video-decoder\nhvd.h(70): error C2226: syntax error: unexpected type 'nhvd'
\pluginssource\network-hardware-video-decoder\nhvd.h(71): error C2062: type 'void' unexpected
\pluginssource\network-hardware-video-decoder\nhvd.h(74): error C2062: type 'int' unexpected
r\pluginssource\network-hardware-video-decoder\nhvd.h(77): error C2062: type 'int' unexpected
@bmegli
Copy link
Owner

bmegli commented Aug 23, 2019

Hi @minusplusminus,

A word of caution - unless you have VAAPI compatible hardware with Linux you will have trouble testing NHVD (you need encoder to test the decoder, the network protocol is custom).

Unlike the decoding path (HVD) which implements several hardware decoders support, the encoding path (HVE) only supports VAAPI. Also using NVIDIA for encoder is not possible through VAAPI (works through VDPAU bridge which only supports decoding).

So if you are on Windows, to test the decoder, on the encoding part your will have to:

  • add some Windows hardware encoding support to HVE (some hints)
  • or add software encoding to HVE

Edit:

  • added link with hints on extending HVE with other hardware support

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

2 participants