Сохранять выдачу старого GPU до первого IDR замены
This commit is contained in:
1 parent
ae8eeab490
commit
2facdb6949
3 files changed
+13
-1
No files matched your search
@@ -215,6 +215,7 @@ bool LiveVideoEncoder::open(const LiveVideoConfig& config, Backend backend) {
|
||||
if (m->forcedKeys) av_dict_set(&options, "forced_idr", "1", 0);
|
||||
if (constrained) {
|
||||
av_dict_set(&options, "rc", "cbr", 0);
|
||||
av_dict_set(&options, "skip_frame", "0", 0);
|
||||
av_dict_set(&options, "profile", config.codec == STREAM_MEDIA_H264 ? "constrained_baseline" : "main", 0);
|
||||
if (config.codec == STREAM_MEDIA_H265) av_dict_set(&options, "profile_tier", "main", 0);
|
||||
}
|
||||
@@ -282,6 +283,9 @@ bool LiveVideoEncoder::open(const LiveVideoConfig& config, Backend backend) {
|
||||
return false;
|
||||
}
|
||||
verified = {frame};
|
||||
if (constrained) DEBUG_DEBUG(DEBUG_CATEGORY_VIDEO,
|
||||
"call GPU probe name=%s pts=%llu pipeline_frames=%d time_base=%d/%d",
|
||||
name.constData(), (unsigned long long)pts, attempt, c->time_base.num, c->time_base.den);
|
||||
return true;
|
||||
}
|
||||
output.clear();
|
||||
|
||||
Reference in new issue
Block a user