Skip to content

Commit

Permalink
SAR比が設定されていない(例えば0:0)と、mp4 muxerの出力する"tkhd: Track Header Box"(L-SMASH…
Browse files Browse the repository at this point in the history
… boxdumper)、"Visual Track layout"(mp4box -info)のwidthが0になってしまう問題を回避。
  • Loading branch information
rigaya committed Jan 7, 2025
1 parent 820164d commit 52c18b4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions QSVEnc/QSVEnc_readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ API v1.1 … Intel Media SDK v2.0


【どうでもいいメモ】
2025.01.08 (7.78)
- SAR比が設定されていない(例えば0:0)と、mp4 muxerの出力する"tkhd: Track Header Box"(L-SMASH boxdumper)、"Visual Track layout"(mp4box -info)のwidthが0になってしまう問題を回避。

2025.01.06 (7.77)
- --vpp-libplacebo-tonemappingで一部のパラメータが正常に動作しない問題を修正。
- tsファイルなどで途中からエンコードする場合に、OpenGOPが使用されているとtrim位置がずれてしまう問題を修正。
Expand Down
5 changes: 5 additions & 0 deletions QSVPipeline/rgy_output_avcodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,11 @@ RGY_ERR RGYOutputAvcodec::InitVideo(const VideoInfo *videoOutputInfo, const Avco
}
m_Mux.video.streamOut->sample_aspect_ratio.num = videoOutputInfo->sar[0]; //mkvではこちらの指定も必要
m_Mux.video.streamOut->sample_aspect_ratio.den = videoOutputInfo->sar[1];
if (format_is_mp4(m_Mux.format.formatCtx) && videoOutputInfo->sar[0] * videoOutputInfo->sar[1] <= 0) {
// mp4 muxerではsample_aspect_ratioが設定されていない(例えば0:0)だと、L-SMASHの"tkhd: Track Header Box" (mp4boxでは"Visual Track layout")のwidthは0になってしまう
m_Mux.video.streamOut->sample_aspect_ratio.num = 1;
m_Mux.video.streamOut->sample_aspect_ratio.den = 1;
}
m_Mux.video.streamOut->avg_frame_rate.num = videoOutputInfo->fpsN; //mkvのTRACKDEFAULTDURATIONの出力に必要
m_Mux.video.streamOut->avg_frame_rate.den = videoOutputInfo->fpsD;
m_Mux.video.streamOut->start_time = 0;
Expand Down
6 changes: 3 additions & 3 deletions QSVPipeline/rgy_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

#include "rgy_rev.h"

#define VER_FILEVERSION 0,7,77,0
#define VER_STR_FILEVERSION "7.77"
#define VER_STR_FILEVERSION_TCHAR _T("7.77")
#define VER_FILEVERSION 0,7,78,0
#define VER_STR_FILEVERSION "7.78"
#define VER_STR_FILEVERSION_TCHAR _T("7.78")

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

0 comments on commit 52c18b4

Please sign in to comment.