Fixed a bug in the conversion API
This commit is contained in:
parent
54154871ba
commit
0c65ba87df
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ namespace Converter {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
encoderCommand << "-vcodec " << vidCodec->first << " ";
|
encoderCommand << "-vcodec " << vidCodec->first << " ";
|
||||||
if (parameters["video"].isMember("kfps")){
|
if (parameters["video"].isMember("fpks")){
|
||||||
encoderCommand << "-r " << parameters["video"]["kfps"].asInt() / 1000 << " ";
|
encoderCommand << "-r " << parameters["video"]["fpks"].asInt() / 1000 << " ";
|
||||||
}
|
}
|
||||||
if (parameters["video"].isMember("width")){
|
if (parameters["video"].isMember("width")){
|
||||||
encoderCommand << "-s " << parameters["video"]["width"].asInt() << "x" << parameters["video"]["height"].asInt() << " ";
|
encoderCommand << "-s " << parameters["video"]["width"].asInt() << "x" << parameters["video"]["height"].asInt() << " ";
|
||||||
|
|
Loading…
Add table
Reference in a new issue