windows11编译VideoProcessingFramework库

1、下载VideoProcessingFramework

Release v2.0.0 · NVIDIA/VideoProcessingFramework · GitHub

2、下载FFMPEG

Releases · BtbN/FFmpeg-Builds · GitHub

推荐 ffmpeg-n4.4-latest-win64-lgpl-shared-4.4

3、下载CMAKE

Download | CMake

4、下载visual studio 2019

Visual Studio 2019 版本 16.11 发行说明 | Microsoft Learn

5、生成project

windows11编译VideoProcessingFramework库_第1张图片

 6、编译wheel

windows11编译VideoProcessingFramework库_第2张图片

 编译日志

已启动生成…
1>------ 已启动生成: 项目: TC_CORE, 配置: Debug x64 ------
1>Building Custom Rule D:/01Tools/VideoProcessingFramework/src/TC/TC_CORE/CMakeLists.txt
1>Task.cpp
1>Token.cpp
1>正在生成代码...
1>TC_CORE.vcxproj -> D:\01Tools\VideoProcessingFramework\build\src\TC\TC_CORE\Debug\TC_CORE.lib
2>------ 已启动生成: 项目: TC, 配置: Debug x64 ------
2>Building Custom Rule D:/01Tools/VideoProcessingFramework/src/TC/CMakeLists.txt
2>Compiling CUDA source file ..\..\..\src\TC\src\Resize.cu...
2>
2>D:\01Tools\VideoProcessingFramework\build\src\TC>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\bin\nvcc.exe"  --use-local-env -ccbin "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu   -ID:\01Tools\VideoProcessingFramework\src\TC\inc -ID:\01Tools\VideoProcessingFramework\src\TC\third_party -ID:\01Tools\VideoProcessingFramework\build\src\TC -I"D:\01Tools\ffmpeg-n4.4-latest-win64-lgpl-shared-4.4\include" -ID:\01Tools\VideoProcessingFramework\src\TC\TC_CORE\inc -ID:\01Tools\VideoProcessingFramework\build\src\TC\TC_CORE -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\include"     --keep-dir x64\Debug  -maxrregcount=0  --machine 64 --compile -cudart static -std=c++17 --generate-code=arch=compute_60,code=[compute_60,sm_60] --generate-code=arch=compute_70,code=[compute_70,sm_70] --generate-code=arch=compute_72,code=[compute_72,sm_72] --generate-code=arch=compute_75,code=[compute_75,sm_75] --generate-code=arch=compute_80,code=[compute_80,sm_80] --generate-code=arch=compute_86,code=[compute_86,sm_86] -Xcompiler="/EHsc -Zi -Ob0" -g  -D_WINDOWS -DHAS_BSF=1 -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D"CMAKE_INTDIR=\"Debug\"" -D_MBCS -DWIN32 -D_WINDOWS -DHAS_BSF=1 -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D"CMAKE_INTDIR=\"Debug\"" -Xcompiler "/EHsc /W1 /nologo /Od /FdD:\01Tools\VideoProcessingFramework\build\src\TC\Debug\TC.pdb /FS /Zi /RTC1 /MDd " -o TC.dir\Debug\Resize.obj "D:\01Tools\VideoProcessingFramework\src\TC\src\Resize.cu"
2>resize.cu
2>MemoryInterfaces.cpp
2>Tasks.cpp
2>TasksColorCvt.cpp
2>FFmpegDemuxer.cpp
2>NvDecoder.cpp
2>NvEncoder.cpp
2>NvEncoderCuda.cpp
2>NppCommon.cpp
2>NvCodecCliOptions.cpp
2>FfmpegSwDecoder.cpp
2>tc_dlopen_windows.cpp
2>正在生成代码...
2>TC.vcxproj -> D:\01Tools\VideoProcessingFramework\build\src\TC\Debug\TC.lib
3>------ 已启动生成: 项目: _PyNvCodec, 配置: Debug x64 ------
3>Building Custom Rule D:/01Tools/VideoProcessingFramework/src/PyNvCodec/CMakeLists.txt
3>PyBufferUploader.cpp
3>PyCudaBufferDownloader.cpp
3>PyFFMpegDecoder.cpp
3>PyFFMpegDemuxer.cpp
3>PyFrameUploader.cpp
3>PyNvCodec.cpp
3>PyNvDecoder.cpp
3>PyNvEncoder.cpp
3>D:\01Tools\VideoProcessingFramework\src\PyNvCodec\src\PyNvEncoder.cpp(436,71): warning C4312: “reinterpret_cast”: 从“T”转换到更大的“void *”
3>        with
3>        [
3>            T=long
3>        ]
3>PySurface.cpp
3>PySurfaceConverter.cpp
3>PySurfaceDownloader.cpp
3>PySurfaceRemaper.cpp
3>PySurfaceResizer.cpp
3>正在生成代码...
3>  正在创建库 D:/01Tools/VideoProcessingFramework/build/src/PyNvCodec/Debug/_PyNvCodec.lib 和对象 D:/01Tools/VideoProcessingFramework/build/src/PyNvCodec/Debug/_PyNvCodec.exp
3>_PyNvCodec.vcxproj -> D:\01Tools\VideoProcessingFramework\build\src\PyNvCodec\Debug\_PyNvCodec.cp38-win_amd64.pyd
3>已完成生成项目“_PyNvCodec.vcxproj”的操作。
4>------ 已启动生成: 项目: INSTALL, 配置: Debug x64 ------
4>-- Install configuration: "Debug"
4>-- Installing: C:/Program Files/PyNvCodec/PyNvCodec/_PyNvCodec.cp38-win_amd64.pyd
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/avcodec-58.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/avformat-58.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/avutil-56.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/cudart64_110.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/nppc64_11.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/nppial64_11.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/nppicc64_11.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/nppidei64_11.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/nppig64_11.dll
4>-- Up-to-date: C:/Program Files/PyNvCodec/PyNvCodec/swresample-3.dll
========== 生成: 成功 4 个,失败 0 个,最新 2 个,跳过 0 个 ==========

7、查看编译文件

windows11编译VideoProcessingFramework库_第3张图片

8、已编译好的轮子

https://download.csdn.net/download/q317379184/88142801?spm=1001.2014.3001.5503

你可能感兴趣的:(vpf,windows,硬编码,GPU编码)