Skip to content

Commit

Permalink
60fps時は、chapter_exeに-s 20を渡すように。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Nov 23, 2024
1 parent 6ee2b22 commit 6f0f989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Amatsukaze/CMAnalyze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,10 @@ void CMAnalyze::logoFrame(const int videoFileIndex, const VideoFormat& inputForm
}

tstring CMAnalyze::MakeChapterExeArgs(int videoFileIndex, const VideoFormat& inputFormat, const tstring& avspath) {
const bool is60fps = (int)(inputFormat.frameRateNum / (double)inputFormat.frameRateDenom + 0.5) >= 60;
return StringFormat(_T("\"%s\"%s -v \"%s\" -o \"%s\" %s"),
setting_.getChapterExePath(),
(inputFormat.format == VS_H265) ? _T("") : _T(""), // H.265の場合はシリアルモードにしないと異常終了する場合がある
(is60fps) ? _T(" -s 20") : _T(""), // デフォルトが30fpsのときに-s 10相当なので60fpsの場合は20にする
pathToOS(avspath),
pathToOS(setting_.getTmpChapterExePath(videoFileIndex)),
setting_.getChapterExeOptions());
Expand Down

0 comments on commit 6f0f989

Please sign in to comment.