File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ # 如何建立NVEnc
3+ by rigaya
4+
5+ ## 0. 环境需求
6+ 要构建NVEnc,需要以下组件。
7+
8+ - Visual Studio 2015 + CUDA 8.0 (x86)
9+ - Visual Studio 2015/2017/2019 + CUDA 10.2 (x64)
10+ - yasm
11+ - Avisynth SDK
12+ - VapourSynth SDK
13+
14+ 请将yasm设置为您的环境路径。
15+
16+ 使用sdk安装Avisynth+和VapourSynth。
17+
18+ 然后,Avisynth+ SDK 的 "avisynth_c.h" 和VapourSynth SDK 的 "VapourSynth.h" 应被添加到 Visual Studio 的包含路径中。
19+
20+ 这些包括路径可以通过环境变量“AVISYNTH_SDK”和“VAPOURSYNTH_SDK”来传递。
21+
22+ 使用默认安装,环境变量可以设置如下。
23+ ``` Batchfile
24+ setx AVISYNTH_SDK "C:\Program Files (x86)\AviSynth+\FilterSDK"
25+ setx VAPOURSYNTH_SDK "C:\Program Files (x86)\VapourSynth\sdk"
26+ ```
27+
28+ 您还需要Caption2Ass_PCR的源代码。
29+
30+ ``` Batchfile
31+ git clone https://github.com/maki-rxrz/Caption2Ass_PCR <path-to-clone>
32+ setx CAPTION2ASS_SRC Caption2Ass_PCR <path-to-clone>/src
33+ ```
34+
35+ ## 1. 下载源代码
36+
37+ ``` Batchfile
38+ git clone https://github.com/rigaya/NVEnc --recursive
39+ ```
40+
41+ ## 2. 构建 NVEncC.exe / NVEnc.auo
42+
43+ 最后,打开 NVEnc.sln,然后开始使用 Visual Studio 构建 NVEnc。
44+
45+ | | For Debug build | For Release build |
46+ | :---------------------| :------| :--------|
47+ | NVEncC(64).exe | DebugStatic | RelStatic |
48+ | NVEnc.auo (win32 only) | Debug | Release |
49+ | cufilters.auf (win32 only) | DebugFilters | RelFilters |
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ by rigaya
66To build NVEnc, components below are required.
77
88- Visual Studio 2015 + CUDA 8.0 (x86)
9- - Visual Studio 2015/2017/2019 + CUDA 10.1 (x64)
9+ - Visual Studio 2015/2017/2019 + CUDA 10.2 (x64)
1010- yasm
1111- Avisynth SDK
1212- VapourSynth SDK
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ by rigaya
66ビルドには、下記のものが必要です。
77
88- Visual Studio 2015 + CUDA 8.0 (x86)
9- - Visual Studio 2015/2017/2019 + CUDA 10.1 (x64)
9+ - Visual Studio 2015/2017/2019 + CUDA 10.2 (x64)
1010- yasm
1111- Avisynth+ SDK
1212- VapourSynth SDK
Original file line number Diff line number Diff line change @@ -129,23 +129,23 @@ NVEnc的输出可能不包括max_dec_frame_buffering字段,
129129 - edgelevel (edge level adjustment)
130130 - deband
131131
132- ### NVEnc source code
132+ ### NVEnc 源码
133133- MIT license.
134- - This program is based on NVIDA CUDA Samples and includes sample code.
135- This software contains source code provided by NVIDIA Corporation.
136- - This software depends on
134+ - 这个程序是基于NVIDA CUDA样本,包括样本代码。
135+ 本软件包含NVIDIA公司提供的源代码。
136+ - 这个软件依赖于
137137 [ jitify] ( https://github.com/NVIDIA/jitify ) ,
138138 [ ffmpeg] ( https://ffmpeg.org/ ) ,
139139 [ tinyxml2] ( http://www.grinninglizard.com/tinyxml2/ ) ,
140140 [ dtl] ( https://github.com/cubicdaiya/dtl ) ,
141141 [ libass] ( https://github.com/libass/libass ) ,
142142 [ ttmath] ( http://www.ttmath.org/ ) &
143143 [ Caption2Ass] ( https://github.com/maki-rxrz/Caption2Ass_PCR ) .
144- For these licenses, please see the header part of the corresponding source and NVEnc_license .txt.
144+ 对于这些许可证,请参阅相应源代码的标题部分和NVEnc_license .txt。
145145
146- - [ How to build ] ( ./Build.en .md )
146+ - [ 如何构建 ] ( ./Build.cn .md )
147147
148- ### About source code
148+ ### 关于源代码
149149Windows ... VC build
150150
151151Character code: UTF-8-BOM
You can’t perform that action at this time.
0 commit comments