multimedia framework

Login to reply to this topic.
Thu, 2004-10-07 17:36
Joined: 2004-10-07
Forum posts: 3
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

Thu, 2004-10-07 18:15
Joined: 2004-10-06
Forum posts: 3
multimedia framework
would you clarify which SDK version you are using?
Fri, 2004-10-08 12:33
Joined: 2004-10-07
Forum posts: 3
SDK 7.0s
I use SDK 7.0s
Fri, 2004-10-15 11:46
janza (not verified)
Forum posts: 2018
multimedia framework
Check from TCameraInfo which options are supported. On Nokia devices at least YUV444 is not supported....
Fri, 2004-10-15 12:23
Joined: 2004-10-07
Forum posts: 3
multimedia
Yes, i can capture a video from camera finally. I use format EFormatYUV420Planar, and this works fine, but i do not khow what i can do with the buffer that i obtain.
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?
Wed, 2005-05-18 13:00
Joined: 2005-01-14
Forum posts: 7
multimedia framework
Hi!

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?
Mon, 2005-05-30 09:26
Joined: 2005-01-14
Forum posts: 7
Re: multimedia framework
hi again!

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!

Tue, 2005-05-31 07:48
Joined: 2004-05-23
Forum posts: 114
Re: multimedia framework
Have you tried Nokia_6600_Camera_Plugin SDK ?

Thu, 2005-06-02 13:45
Joined: 2005-01-14
Forum posts: 7
Re: multimedia framework
The problem is that plugin runs over SDK v2.0 and my version is v2.2, but in any case i´m going to test it, so thanks a lot!

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!
Mon, 2005-06-06 10:07
Joined: 2005-01-14
Forum posts: 7
Re: multimedia framework
Hi again!

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!
Thu, 2005-06-09 09:15
Joined: 2005-01-14
Forum posts: 7
Re: multimedia framework
hello everybody,

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!
Sat, 2005-08-06 11:44
Joined: 2005-08-04
Forum posts: 14
Re: multimedia framework
hi
i'm having a problem with PrepareImageCapture(CCamera::EFormatYUV420Planar,0).Execution stops at this point.help me wat to do
thanx
bye
Amit
Fri, 2005-08-12 06:04
Joined: 2005-08-12
Forum posts: 7
Re: multimedia
Quote from: jgisbert1979
Yes, i can capture a video from camera finally. I use format EFormatYUV420Planar, and this works fine, but i do not khow what i can do with the buffer that i obtain.
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
Sun, 2005-09-11 18:55
Joined: 2005-09-10
Forum posts: 5
Re: multimedia
Quote from: jgisbert1979
Yes, i can capture a video from camera finally. I use format EFormatYUV420Planar, and this works fine, but i do not khow what i can do with the buffer that i obtain.
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?
Thu, 2006-03-16 07:08
Joined: 2006-02-28
Forum posts: 3
Re: multimedia framework
Zamir I did want u said about writing to a file but then i had an error like this

Cannot convert from 'class TDesC8 *' to 'const class TDesC8'

How to fix it?
Thu, 2006-03-30 16:21
Joined: 2006-03-30
Forum posts: 1
Re: multimedia framework
Hi,

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
  • Login to reply to this topic.