Skip to content

Commit

Permalink
--vpydirから--vsdirに変更。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed May 4, 2024
1 parent e94659f commit e5e6938
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 18 deletions.
5 changes: 5 additions & 0 deletions NVEnc/NVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,16 @@ NVIDIA グラフィックドライバ 528.02
NVIDIA グラフィックドライバ 531.68
NVIDIA グラフィックドライバ 536.23
NVIDIA グラフィックドライバ 545.92
NVIDIA グラフィックドライバ 551.23

【お断り】
今後の更新で設定ファイルの互換性がなくなるかもしれません。

【メモ】
2024.05.04 (7.52)
- VapourSynthのportable版に対応。(--vsdir) [Windowsのみ]
R66のスクリプトにより導入された環境を想定。

2024.05.01 (7.51)
- 新たなノイズ除去フィルタを追加。(--vpp-nlmeans)
- 音声エンコード時に一致するチャンネル数のフォーマットで出力できない場合に、最も近いチャンネル数のフォーマットで出力するように。
Expand Down
4 changes: 2 additions & 2 deletions NVEncC_Options.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
- [--max-procfps \<int\>](#--max-procfps-int)
- [--lowlatency](#--lowlatency)
- [--avsdll \<string\>](#--avsdll-string)
- [--vpydir \<string\>](#--vpydir-string)
- [--vsdir \<string\>](#--vsdir-string)
- [--process-codepage \<string\> \[Windows OS only\]](#--process-codepage-string-windows-os-only)
- [--perf-monitor \[\<string\>\[,\<string\>\]...\]](#--perf-monitor-stringstring)
- [--perf-monitor-interval \<int\>](#--perf-monitor-interval-int)
Expand Down Expand Up @@ -2849,7 +2849,7 @@ Tune for lower transcoding latency, but will hurt transcoding throughput. Not re
### --avsdll &lt;string&gt;
Specifies AviSynth DLL location to use. When unspecified, the default AviSynth.dll will be used.
### --vpydir &lt;string&gt;
### --vsdir &lt;string&gt;
Specifies vapoursynth portable directory to use. Supported on Windows only.
### --process-codepage &lt;string&gt; [Windows OS only]
Expand Down
4 changes: 2 additions & 2 deletions NVEncC_Options.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
- [--max-procfps \<int\>](#--max-procfps-int)
- [--lowlatency](#--lowlatency)
- [--avsdll \<string\>](#--avsdll-string)
- [--vpydir \<string\> \[Windows専用\]](#--vpydir-string-windows専用)
- [--vsdir \<string\> \[Windows専用\]](#--vsdir-string-windows専用)
- [--process-codepage \<string\>](#--process-codepage-string)
- [--perf-monitor \[\<string\>\[,\<string\>\]...\]](#--perf-monitor-stringstring)
- [--perf-monitor-interval \<int\>](#--perf-monitor-interval-int)
Expand Down Expand Up @@ -2908,7 +2908,7 @@ NVEncCのプロセスやスレッドのスレッドアフィニティを設定
### --avsdll &lt;string&gt;
使用するAvsiynth.dllを指定するオプション。特に指定しない場合、システムのAvisynth.dllが使用される。
### --vpydir &lt;string&gt; [Windows専用]
### --vsdir &lt;string&gt; [Windows専用]
VapoursynthのPortable版を使用する際に、インストールしたフォルダを指定する。特に指定しない場合、システムにインストールされたVapoursynthが使用される。
### --process-codepage &lt;string&gt;
Expand Down
8 changes: 4 additions & 4 deletions NVEncCore/rgy_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5789,9 +5789,9 @@ int parse_one_ctrl_option(const TCHAR *option_name, const TCHAR *strInput[], int
return 0;
}
#if defined(_WIN32) || defined(_WIN64)
if (IS_OPTION("vpydir")) {
if (IS_OPTION("vsdir")) {
i++;
ctrl->vpydir = strInput[i];
ctrl->vsdir = strInput[i];
return 0;
}
#endif
Expand Down Expand Up @@ -7078,7 +7078,7 @@ tstring gen_cmd(const RGYParamControl *param, const RGYParamControl *defaultPrm,
OPT_BOOL(_T("--skip-hwenc-check"), _T(""), skipHWEncodeCheck);
OPT_BOOL(_T("--skip-hwdec-check"), _T(""), skipHWDecodeCheck);
OPT_STR_PATH(_T("--avsdll"), avsdll);
OPT_STR_PATH(_T("--vpydir"), vpydir);
OPT_STR_PATH(_T("--vsdir"), vsdir);
if (param->perfMonitorSelect != defaultPrm->perfMonitorSelect) {
auto select = (int)param->perfMonitorSelect;
std::basic_stringstream<TCHAR> tmp;
Expand Down Expand Up @@ -8029,7 +8029,7 @@ tstring gen_cmd_help_ctrl() {
_T(" --avsdll <string> specifies AviSynth DLL location to use.\n"));
#if defined(_WIN32) || defined(_WIN64)
str += strsprintf(_T("\n")
_T(" --vpydir <string> specifies VapourSynth portable directory to use.\n"));
_T(" --vsdir <string> specifies VapourSynth portable directory to use.\n"));
str += strsprintf(_T("\n")
_T(" --process-codepage <string> utf8 ... use UTF-8 (default)\n")
_T(" os ... use the codepage set in Operating System.\n"));
Expand Down
2 changes: 1 addition & 1 deletion NVEncCore/rgy_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ RGY_ERR initReaders(
#if ENABLE_VAPOURSYNTH_READER
case RGY_INPUT_FMT_VPY:
case RGY_INPUT_FMT_VPY_MT:
inputPrmVpy.vpydir = ctrl->vpydir;
inputPrmVpy.vsdir = ctrl->vsdir;
pInputPrm = &inputPrmVpy;
log->write(RGY_LOG_DEBUG, RGY_LOGT_IN, _T("vpy reader selected.\n"));
pFileReader.reset(new RGYInputVpy());
Expand Down
4 changes: 2 additions & 2 deletions NVEncCore/rgy_input_vpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

RGYInputVpyPrm::RGYInputVpyPrm(RGYInputPrm base) :
RGYInputPrm(base),
vpydir() {
vsdir() {

}

Expand Down Expand Up @@ -186,7 +186,7 @@ RGY_ERR RGYInputVpy::Init(const TCHAR *strFileName, VideoInfo *pInputInfo, const
m_inputVideoInfo = *pInputInfo;

auto vpyPrm = reinterpret_cast<const RGYInputVpyPrm *>(prm);
if (load_vapoursynth(vpyPrm->vpydir)) {
if (load_vapoursynth(vpyPrm->vsdir)) {
return RGY_ERR_NULL_PTR;
}

Expand Down
4 changes: 2 additions & 2 deletions NVEncCore/rgy_input_vpy.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ typedef struct {

class RGYInputVpyPrm : public RGYInputPrm {
public:
tstring vpydir;
tstring vsdir;
RGYInputVpyPrm(RGYInputPrm base);

virtual ~RGYInputVpyPrm() {};
Expand All @@ -92,7 +92,7 @@ class RGYInputVpy : public RGYInput {
virtual RGY_ERR LoadNextFrameInternal(RGYFrame *pSurface) override;

void release_vapoursynth();
int load_vapoursynth(const tstring& vpydir);
int load_vapoursynth(const tstring& vsdir);
int initAsyncEvents();
void closeAsyncEvents();
const VSFrameRef* getFrameFromAsyncBuffer(int n) {
Expand Down
2 changes: 1 addition & 1 deletion NVEncCore/rgy_prm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1797,7 +1797,7 @@ RGYParamControl::RGYParamControl() :
skipHWEncodeCheck(false),
skipHWDecodeCheck(false),
avsdll(),
vpydir(),
vsdir(),
enableOpenCL(true),
avoidIdleClock(),
outputBufSizeMB(RGY_OUTPUT_BUF_MB_DEFAULT) {
Expand Down
2 changes: 1 addition & 1 deletion NVEncCore/rgy_prm.h
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,7 @@ struct RGYParamControl {
bool skipHWEncodeCheck;
bool skipHWDecodeCheck;
tstring avsdll;
tstring vpydir;
tstring vsdir;
bool enableOpenCL;
RGYParamAvoidIdleClock avoidIdleClock;

Expand Down
6 changes: 3 additions & 3 deletions NVEncCore/rgy_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#ifndef __RGY_CONFIG_H__
#define __RGY_CONFIG_H__

#define VER_FILEVERSION 0,7,51,0
#define VER_STR_FILEVERSION "7.51"
#define VER_STR_FILEVERSION_TCHAR _T("7.51")
#define VER_FILEVERSION 0,7,52,0
#define VER_STR_FILEVERSION "7.52"
#define VER_STR_FILEVERSION_TCHAR _T("7.52")

#ifdef _M_IX86
#define BUILD_ARCH_STR _T("x86")
Expand Down

0 comments on commit e5e6938

Please sign in to comment.