Skip to content

Commit

Permalink
Linux環境で、 pgs_frame_mergeが見つからないというエラーを回避。 ( #471 )
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Mar 13, 2023
1 parent e43429d commit 7b295f9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
9 changes: 9 additions & 0 deletions NVEnc/NVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,15 @@ NVIDIA グラフィックドライバ 528.02
今後の更新で設定ファイルの互換性がなくなるかもしれません。

【メモ】
2023.03.13 (7.21)
[NVEncC]
- 音声・字幕のtimestampに負の値が入ることがあったのを回避。
- Linux環境で、 pgs_frame_mergeが見つからないというエラーを回避。

[NVEnc.auo]
- 出力する動画の長さが短い場合の警告を追加。
- NVENCが利用可能かチェックする際、--log-level debugを付与。

2023.03.04 (7.20)
[NVEncC]
- --vpp-overlayを最後のフィルタに変更。
Expand Down
7 changes: 6 additions & 1 deletion NVEncCore/rgy_output_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1527,7 +1527,12 @@ RGY_ERR RGYOutputAvcodec::InitOther(AVMuxOther *muxSub, AVOutputStreamPrm *input
&& inputStream->bsf.length() == 0
&& codecId == AV_CODEC_ID_HDMV_PGS_SUBTITLE) {
inputStream->bsf = _T("pgs_frame_merge"); //これがないと正しくmuxできない
AddMessage(RGY_LOG_DEBUG, _T("Auto insert %s bsf filter for %s\n"), char_to_tstring(avcodec_get_name(codecId)).c_str());
if (auto filter = av_bsf_get_by_name(tchar_to_string(inputStream->bsf).c_str()); filter != nullptr) {
AddMessage(RGY_LOG_DEBUG, _T("Auto insert %s bsf filter for %s\n"), inputStream->bsf.c_str(), char_to_tstring(avcodec_get_name(codecId)).c_str());
} else {
inputStream->bsf.clear();
AddMessage(RGY_LOG_DEBUG, _T("Failed to find %s bsf filter for %s, skipping...\n"), inputStream->bsf.c_str(), char_to_tstring(avcodec_get_name(codecId)).c_str());
}
}
if (inputStream->bsf.length() > 0) {
muxSub->bsfc = InitStreamBsf(inputStream->bsf, inputStream->src.stream);
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,20,0
#define VER_STR_FILEVERSION "7.20"
#define VER_STR_FILEVERSION_TCHAR _T("7.20")
#define VER_FILEVERSION 0,7,21,0
#define VER_STR_FILEVERSION "7.21"
#define VER_STR_FILEVERSION_TCHAR _T("7.21")

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

0 comments on commit 7b295f9

Please sign in to comment.