multimedia framework
| Thu, 2004-10-07 17:36 | |
|
Hello, I'm trying to do an application that captures video.
I use Multimedia Framework and the class CCamera to do this. I capture an image without problems, but when i used function prepareVideoCaptureL(CCamera::EFormatYUV444, 1, 1,1, 1); the application returns an exception that IS: ERR -5 KERRNOTSUPPORTED any ideas |
|






Forum posts: 3
Forum posts: 3
Forum posts: 3
i use
TDesC8* ptr = aFrameBuffer->DataL(0);
for obtain the data buffer
then i put
TPtrC8 datos = ptr->Left(ptr->Length());
and now i have data in var datos
But i do not khow how what can i do with this.
How can i get all this buffer and saved it and then reproduces the video??
any idea?
Forum posts: 7
i´m programming an aplication that captures video, too
I use the camera API too, but my problem is that i get the following Information Note: "Feature Not Supported" when i executes the application on the NOkia 6630 device or on the emulator. I´ve discovered debugging that it happens when calling mehod:
iCamera->PrepareVideoCaptureL( iColorDepth, iInfo.iNumVideoFrameSizesSupported,iInfo.iNumVideoFrameRatesSupported, 1, iInfo.iMaxFramesPerBufferSupported);
iColorDepth = CCamera::EFormatFbsBitmapColor64K.
Any idea?
Forum posts: 7
I´m using Nokia 6630
I have noticed that my application fails with the exception -5 (=KErrNotSupported) when doing:
PrepareVideoCaptureL(/*Anyone*/,1,1,1,1)
/* Anyone means that i had tested all the possible Video formats */
So I don´t know where it is the problem.
Having a look in Ecam.h, i have read in PrepareVideoCaptureL method comments that an exception with error code KErrorNot Supported can be launched if the camera device has not been reserved correctly. But i think my application reserves the camera because if i exit of my application without close it and i try to open the default Nokia 6630 camera application the following message appears: "Camera already in use by an app."
Please can anybody help me or tell me the parameters i have to give to that method in order to work?
thanks a lot!
Forum posts: 114
CellaGameS.com
Forum posts: 7
In the other hand, i have another problem totally different to that one, when i execute my application on the phone it seems that it is going to run but without doing anything it crashes but without any kind of advertisement of error. The behaviour is as a flash.
Has anyone knows why?Where is it the problem?
thanks!
Forum posts: 7
About the problem with the camera:
- I have tried to install the plugin but it fails because it doesn´t find a Symbian SDK compatible. I have SDK 2nd Ed. FP2, and this plugin is for SDK v2.0.
- Any other idea about why is my program crashing???
About the other problem, i have discovered that there was a problem with a .aif, and with a DLL.
thanks!
Forum posts: 7
I´m desperate because i can´t solucionate the problem with the exception KErrNotSupported that returns PrepareVideoCaptureL method.
I would like to know if someone has been able to make an application using camera API for Nokia 6630, because i have started to think that the problem is the phone.
thanks!
Forum posts: 14
i'm having a problem with PrepareImageCapture(CCamera::EFormatYUV420Planar,0).Execution stops at this point.help me wat to do
thanx
bye
Amit
Forum posts: 7
i use
TDesC8* ptr = aFrameBuffer->DataL(0);
for obtain the data buffer
then i put
TPtrC8 datos = ptr->Left(ptr->Length());
and now i have data in var datos
But i do not khow how what can i do with this.
How can i get all this buffer and saved it and then reproduces the video??
any idea?
You can write the obtained buffer in a file and then convert YUV420Planar data stored in the file to RGB format. This conversion can be done using conversion routines available on internet. Try google. I found one at (although haven't used it):
http://mri.beckman.uiuc.edu/pan/algorithms/yuv2rgb.zip
You can then write the converted RGB data to the framebuffer. If the conversion routine supports, you can directly give the framebuffer address as the output buffer.
Please note that the RGB output of the conversion routines may be 8, 16 or 24 bpp. So, either you will have to choose the correct routine depending on the current bpp or you may have to change the current bpp to the output bpp and revert back to the old bpp when you are done with displaying the RGB data.
Hope this helps.
zamir
Forum posts: 5
i use
TDesC8* ptr = aFrameBuffer->DataL(0);
for obtain the data buffer
then i put
TPtrC8 datos = ptr->Left(ptr->Length());
and now i have data in var datos
But i do not khow how what can i do with this.
How can i get all this buffer and saved it and then reproduces the video??
any idea?
jgisbert, you solved your problem? Anything can share?
Forum posts: 3
Cannot convert from 'class TDesC8 *' to 'const class TDesC8'
How to fix it?
Forum posts: 1
I am trying to do a video capture on my Nokia N70 and I keep getting Not Supported. I have tried the following code ...
if((Cinfo.iOptionsSupported & TCameraInfo::EVideoCaptureSupported) &&
(Cinfo.iVideoFrameFormatsSupported & CCamera::EFormatYUV420Planar) )
{
_LIT(kw,"%d %d %d");
TBuf<40> x;
x.Format(kw,Cinfo.iNumVideoFrameSizesSupported,Cinfo.iNumVideoFrameRatesSupported, Cinfo.iMaxFramesPerBufferSupported);
GBContainer->SetiLabel(x);
iCamera->PrepareVideoCaptureL( CCamera::EFormatYUV420Planar, 1, 1, 10, 1);
}
else
{
GBContainer->SetiLabel(_L("No Video!"));
}
The code does not go in to the else part which means the video format is supported ... but when PrepareVideoCaptureL is called it leaves with KerrNotSupported ... any ideas whats the problem ? ... the values that i get for Cinfo.iNumVideoFrameSizesSupported,Cinfo.iNumVideoFrameRatesSupported, Cinfo.iMaxFramesPerBufferSupported are 3, 1, 1.
I have tried all of these but still I get Not Supported
iCamera->PrepareVideoCaptureL( CCamera::EFormatYUV420Planar, 1, 1, 1, 1);
iCamera->PrepareVideoCaptureL( CCamera::EFormatYUV420Planar, 3, 1, 1, 1);
iCamera->PrepareVideoCaptureL( CCamera::EFormatYUV420Planar, 0, 0, 10, 1);
Just to add ... I have tried Image capture and it works fine ... except that I cant turn the flash off ... i do iCamera->SetFlashL(CCamera:EFlashNone) and it doesnt work ... any ideas abt tht ??
I'd really appreciate if some one could give solutions to these problems
Zahoor