×
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 (Removed protection from "KIS001471 - Additional settings needed to run DevVideoRecord on N96": Merging into Wiki)
hamishwillee (Talk | contribs)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Archived|timestamp=20120321113828|user=roy.debjit| }}
 +
[[Category:Symbian C++]][[Category:S60 3rd Edition FP2]][[Category:Multimedia]][[Category:Video]][[Category:Known Issue]]
 +
{{Abstract|To record a video on the Nokia N96, additional settings are needed as the N96 hardware is different from other Symbian devices. }}
 
{{ArticleMetaData <!-- v1.2 -->
 
{{ArticleMetaData <!-- v1.2 -->
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
Line 4: Line 7:
 
|devices= Nokia N96
 
|devices= Nokia N96
 
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
|platform= S60 3rd Edition, FP2
+
|platform= S60 3rd Edition FP2
 
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
Line 21: Line 24:
 
|author= [[User:Kbwiki]]
 
|author= [[User:Kbwiki]]
 
<!-- The following are not in current metadata -->
 
<!-- The following are not in current metadata -->
|subcategory= Video
 
 
|id= KIS001471
 
|id= KIS001471
 
}}
 
}}
 
 
==Overview==
 
To record a video on the Nokia N96, additional settings are needed as the N96 hardware is different from other S60 devices.
 
 
 
== Description ==
 
== Description ==
 
The N96 uses hardware codecs which require additional settings compared to other S60 devices.  
 
The N96 uses hardware codecs which require additional settings compared to other S60 devices.  
When the [[CS001065 - MDFDevVideo Record API|DevVideo Record example]] is run on the Nokia N96,
+
When the [[Archived:MDFDevVideo Record Symbian API]] is run on the Nokia N96,
 
the application fails with the {{Icode|KErrNotReady}} (-18) error while calling {{Icode|CMMFDevVideoRecord::WritePictureL()}}, or with  
 
the application fails with the {{Icode|KErrNotReady}} (-18) error while calling {{Icode|CMMFDevVideoRecord::WritePictureL()}}, or with  
 
{{Icode|KErrNotSupported}} (-5) if the camera has been set as the video source with {{Icode|CMMFDevVideoRecord::SetSourceCameraL()}}.
 
{{Icode|KErrNotSupported}} (-5) if the camera has been set as the video source with {{Icode|CMMFDevVideoRecord::SetSourceCameraL()}}.
  
 
== How to reproduce ==
 
== How to reproduce ==
The [[CS001065 - MDFDevVideo Record API|DevVideo Record example]] can be used to reproduce the
+
The [[Archived:MDFDevVideo Record Symbian API]] can be used to reproduce the
 
problem on the Nokia N96.
 
problem on the Nokia N96.
  
Line 69: Line 66:
 
   WritePic();
 
   WritePic();
 
   }
 
   }
</code><br>
+
</code>
 
+
 
+
[[Category:Symbian C++]][[Category:S60 3rd Edition FP2]][[Category:Multimedia]][[Category:Video]][[Category:Known Issue]]
+

Revision as of 09:32, 15 June 2012

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

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

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 (15 Jun 2012)

Description

The N96 uses hardware codecs which require additional settings compared to other S60 devices. When the Archived:MDFDevVideo Record Symbian API 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 Archived:MDFDevVideo Record Symbian API 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();
}
143 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×