- Posts: 3050
- Joined: Wed Aug 22, 2012 6:53 am
- Location: Estonia
Hi,
I have a problem I can't seem to figure out. I want to add trim capabilities to my small video player. Win, braw sdk 1.7.
I create and submit new trim job like this:
Trim job is created and does not fail in any of the results. File is created and so it seems that trim is successfully triggered etc. Problem is, that created .braw file does not open, looks like it is not finalized properly. Trim job seems to never complete beause if I add
Any ideas? I'm probably missing something simple.
Do I have to create new separate decoder instance for trim process maybe..? Currently I reuse the same I create for player.
For processing settings I currently supply nullptr-s because I'm not interested in applying any specific dev settings yet (like example frame decode code does), could this be a problem?
I have a problem I can't seem to figure out. I want to add trim capabilities to my small video player. Win, braw sdk 1.7.
I create and submit new trim job like this:
- Code: Select all
trimCallback = new CameraCodecCallback();
HRESULT result = S_OK;
BSTR clipName;
clipName = _com_util::ConvertStringToBSTR(outputFileName.toStdString().c_str());
do {
result = codec->SetCallback(trimCallback);
if (result != S_OK)
{
break;
}
result = clip->CreateJobTrim(clipName, inPoint, outPoint - inPoint + 1, nullptr, nullptr, &trimJob);
if (result != S_OK)
{
break;
}
result = trimJob->Submit();
if (result != S_OK)
{
trimJob->Release();
break;
}
} while(0);
Trim job is created and does not fail in any of the results. File is created and so it seems that trim is successfully triggered etc. Problem is, that created .braw file does not open, looks like it is not finalized properly. Trim job seems to never complete beause if I add
- Code: Select all
codec->FlushJobs();
Any ideas? I'm probably missing something simple.
Do I have to create new separate decoder instance for trim process maybe..? Currently I reuse the same I create for player.
For processing settings I currently supply nullptr-s because I'm not interested in applying any specific dev settings yet (like example frame decode code does), could this be a problem?
I do stuff