Conversion now tries to enforce baseline if h264 codec selected.

This commit is contained in:
Erik Zandvliet 2014-01-21 15:05:35 +01:00
parent fbf09fd7c2
commit 9fd1867245

View file

@ -132,6 +132,10 @@ namespace Converter {
return;
}
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")){
encoderCommand << "-r " << parameters["video"]["fpks"].asInt() / 1000 << " ";
}