Conversion now tries to enforce baseline if h264 codec selected.
This commit is contained in:
parent
fbf09fd7c2
commit
9fd1867245
1 changed files with 4 additions and 0 deletions
|
@ -132,6 +132,10 @@ namespace Converter {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
encoderCommand << "-vcodec " << vidCodec->first << " ";
|
encoderCommand << "-vcodec " << vidCodec->first << " ";
|
||||||
|
if (parameters["video"]["codec"].asString() == "h264"){
|
||||||
|
//Enforce baseline
|
||||||
|
ecncoderCommand << "-preset slow -profile:v baseline -level 30 ";
|
||||||
|
}
|
||||||
if (parameters["video"].isMember("fpks")){
|
if (parameters["video"].isMember("fpks")){
|
||||||
encoderCommand << "-r " << parameters["video"]["fpks"].asInt() / 1000 << " ";
|
encoderCommand << "-r " << parameters["video"]["fpks"].asInt() / 1000 << " ";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue