×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Additional settings needed to run DevVideoRecord on N96 (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Bot change of links to internal format.)
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot change of template (Template:KnowledgeBase) - now using Template:ArticleMetaData)
Line 2: Line 2:
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
{{KBKI}}
 
{{KBKI}}
{{KnowledgeBase
+
{{ArticleMetaData
 
|id=KIS001471
 
|id=KIS001471
 
|platform=S60 3rd Edition, FP2  
 
|platform=S60 3rd Edition, FP2  
Line 10: Line 10:
 
|creationdate=October 29, 2009
 
|creationdate=October 29, 2009
 
|keywords=
 
|keywords=
 +
 +
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices.) -->
 +
|author=[[User:Kbwiki]]
 
}}
 
}}
  

Revision as of 14:52, 24 June 2011


Template:KBKI

Article Metadata
Tested with
Devices(s): Nokia N96
Compatibility
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Article
Created: User:Kbwiki (29 Oct 2009)
Last edited: hamishwillee (24 Jun 2011)


Overview

To record a video on the Nokia N96, additional settings are needed as the N96 hardware is different from other S60 devices.

Description

The N96 uses hardware codecs which require additional settings compared to other S60 devices. When the DevVideo Record example is run on the Nokia N96, the application fails with the KErrNotReady (-18) error while calling CMMFDevVideoRecord::WritePictureL(), or with KErrNotSupported (-5) if the camera has been set as the video source with CMMFDevVideoRecord::SetSourceCameraL().

How to reproduce

The DevVideo Record example can be used to reproduce the problem on the Nokia N96.

Solution

To ensure that MDF DevVideo encoders work on the Nokia N96, call the CMMFDevVideoRecord::SetRateControlOptions() function in MMMFDevVideoRecordObserver::MdvroInitializeComplete before calling CMMFDevVideoRecord::Start().

 void CDevvideoExAppUi::MdvroInitializeComplete( TInt aError )
{
if ( aError != KErrNone )
{
// TODO: Handle errors
return;
}
 
// Set rate control options
TRateControlOptions rateCtrl;
rateCtrl.iControl = EBrControlNone;
rateCtrl.iPictureQuality = 0;
rateCtrl.iBitrate = iBitRate;
rateCtrl.iPictureRate = iFrameRate;
rateCtrl.iQualityTemporalTradeoff = 0;
rateCtrl.iLatencyQualityTradeoff = 0;
iDvr->SetRateControlOptions( 0, rateCtrl );
 
// Start encoding
iDvr->Start();
 
// Write first input picture
iPicNum = 0;
WritePic();
}

193 page views in the last 30 days.