Hi all,
I use the Vrex example from nokia forum for record video from on board N81 camera.
And I need to change the quality to high for my recorded the mp4 files.
On the forum I found one solution:
But the quality is about 74 kbit/s although from my native camera application the quality is about 394kbit/sCode:_LIT8(videoType, "video/mp4v-es; profile-level-id=3") CVideoRecorderUtility* iUtility; ..... iUtility->OpenFileL(filePath, aCameraHandle, iControllerUid, iFormatUid, videoType, 0x43414120);.
iControllerUid and iFormatUid I select like this:
Code:......... _LIT8(KFileExtention,".mp4"); ....... // Resolve the supported video format and retrieve a list of controllers CMMFControllerPluginSelectionParameters* cSelect = CMMFControllerPluginSelectionParameters::NewLC(); CMMFFormatSelectionParameters* fSelect = CMMFFormatSelectionParameters::NewLC(); // Set the play and record format selection parameters to be blank. // Format support is only retrieved if requested. cSelect->SetRequiredPlayFormatSupportL(*fSelect); cSelect->SetRequiredRecordFormatSupportL(*fSelect); // Set the media ids RArray<TUid> mediaIds; CleanupClosePushL(mediaIds); User::LeaveIfError(mediaIds.Append(KUidMediaTypeVideo)); // Get plugins that support at least video cSelect->SetMediaIdsL(mediaIds, CMMFPluginSelectionParameters::EAllowOtherMediaIds); cSelect->SetPreferredSupplierL(KNullDesC, CMMFPluginSelectionParameters::EPreferredSupplierPluginsFirstInList); // Array to hold all the controllers support the match data RMMFControllerImplInfoArray controllers; CleanupResetAndDestroyPushL(controllers); cSelect->ListImplementationsL(controllers); TBool recordingSupported = EFalse; for (TInt i = 0; i < controllers.Count(); ++i) { RMMFFormatImplInfoArray recordFormats = controllers[i]->RecordFormats(); iControllerUid = controllers[i]->Uid(); for (TInt j = 0; j < recordFormats.Count(); ++j) { if (recordFormats[j]->SupportsFileExtension(KFileExtention)) { iFormatUid = recordFormats[j]->Uid(); recordingSupported = ETrue; break; } } if (recordingSupported) { break; } } CleanupStack::PopAndDestroy(&controllers); CleanupStack::PopAndDestroy(&mediaIds); CleanupStack::PopAndDestroy(fSelect); CleanupStack::PopAndDestroy(cSelect);

.


