×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    28

    Change quality for mp4

    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:
    Code:
    _LIT8(videoType, "video/mp4v-es; profile-level-id=3")
    CVideoRecorderUtility* iUtility;
    .....
    iUtility->OpenFileL(filePath, aCameraHandle, iControllerUid, iFormatUid, videoType, 0x43414120);
    But the quality is about 74 kbit/s although from my native camera application the quality is about 394kbit/s .

    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);

  2. #2
    Registered User
    Join Date
    Sep 2008
    Posts
    28

    Re: Change quality for mp4

    I found the resolution
    link

Similar Threads

  1. Replies: 10
    Last Post: 2010-10-29, 08:02
  2. Is it possible to change theme programmatically on S60 3rd addition?
    By jain_0882 in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2009-03-10, 16:16
  3. Replies: 0
    Last Post: 2008-01-10, 13:57
  4. Need advice on quality
    By bgchan80 in forum General Development Questions
    Replies: 0
    Last Post: 2004-11-18, 17:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •