Skip to content

Commit

Permalink
--seek使用時の進捗表示を改善。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Dec 2, 2023
1 parent 4c1423b commit 84884f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions NVEnc/NVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ NVIDIA グラフィックドライバ 545.92
今後の更新で設定ファイルの互換性がなくなるかもしれません。

【メモ】
2023.12.03 (7.39)
- --seek使用時の進捗表示を改善。
- NVMLによるGPUのモニタリングを行わないようにするオプションを追加。(--disable-nvml)

2023.11.27 (7.38)
[NVEncC]
- NVEnc 7.34以降、AVX2が使用できない環境で動作しないのを回避。
Expand Down
4 changes: 3 additions & 1 deletion NVEncCore/rgy_input_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2804,6 +2804,9 @@ double RGYInputAvcodec::GetInputVideoDuration() {
if (m_seek.second > 0.0f) {
duration = std::min<double>(duration, m_seek.second);
}
if (m_seek.first > 0.0f) {
duration = std::max(0.0, duration - m_seek.first);
}
return duration;
}

Expand Down Expand Up @@ -3077,7 +3080,6 @@ RGY_ERR RGYInputAvcodec::LoadNextFrameInternal(RGYFrame *pSurface) {
if (m_Demux.format.formatCtx->duration) {
progressPercent = m_Demux.frames.duration() * (m_Demux.video.stream->time_base.num / (double)m_Demux.video.stream->time_base.den);
}
progressPercent += m_seek.first;
return m_encSatusInfo->UpdateDisplayByCurrentDuration(progressPercent);
}
#pragma warning(pop)
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,38,0
#define VER_STR_FILEVERSION "7.38"
#define VER_STR_FILEVERSION_TCHAR _T("7.38")
#define VER_FILEVERSION 0,7,39,0
#define VER_STR_FILEVERSION "7.39"
#define VER_STR_FILEVERSION_TCHAR _T("7.39")

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

0 comments on commit 84884f2

Please sign in to comment.