21.08.2021, 19:42
Okay, I know why it happens. ![Smile Smile](https://forum.selur.net/images/smilies/smile.png)
my guess is that using:
might fix the problem.
Cu Selur
![Smile Smile](https://forum.selur.net/images/smilies/smile.png)
void MainTabInternalLogicService::adjustCutFramesForTime(HybridModel* model) const
{
double startTime = TimeHelper::hmnsmsToSeconds(model->stringValue(CUTSTART));
double endTime = TimeHelper::hmnsmsToSeconds(model->stringValue(CUTEND));
double fps = model->doubleValue(QString("inputFrameRate"));
int startFrame = int(startTime*fps);
int endFrame = int(endTime*fps);
int inputFrameCount = model->intValue(QString("inputFramecount"));
if (endFrame > inputFrameCount) {
endFrame = inputFrameCount;
}
this->doSetValue(model, QString("cutStartFrame"), startFrame);
this->doSetValue(model, QString("cutEndFrame"), endFrame);
}
my guess is that using:
int startFrame = int(startTime*fps + 0.5);
int endFrame = int(endTime*fps + 0.5);
Cu Selur