×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    MDFDevVideo Record API - resolution of recording

    Hi everybody,

    I'm using the MDFDevVideo Record API in Carbide.c++ S60 5th, with this code :
    http://wiki.forum.nokia.com/index.ph...deo_Record_API

    the initial resolution of recording is 176*144 (QCIF format).
    My program works with this resolution, a video is generated. The problem is, when I change this resolution, the emulator crashs with "Error -5", and my log stops at the call of the Start() fonction.

    This is the last lines in the Carbide.c++ debuger :

    Code:
    125.475	CVEARMMPEG4EncodeHwDevice::Initialize(), iEncoder [0x0]
       125.480	CVEARMMPEG4EncodeHwDevice::Initialize(), Initialize status [-5]
       125.485	CVEARMMPEG4EncodeHwDevice::~CVEARMMPEG4EncodeHwDevice(), In
       125.485	CVEARMMPEG4EncodeHwDevice::~CVEARMMPEG4EncodeHwDevice(), Out
       125.490	CVEARMH263EncodeHwDevice::~CVEARMH263EncodeHwDevice(), In
       125.490	CVEARMH263EncodeHwDevice::DeallocateStructures(), In
       125.490	CVEARMH263EncodeHwDevice::DeallocateStructures(), While iEncoderInputQueue In
       125.490	CVEARMH263EncodeHwDevice::DeallocateStructures(), While iEncoderInputQueue Out
       125.490	CVEARMH263EncodeHwDevice::DeallocateStructures(), Out
       125.490	CVEARMH263EncodeHwDevice::~CVEARMH263EncodeHwDevice(),  destroy objects in RArray In
       125.490	CVEARMH263EncodeHwDevice::~CVEARMH263EncodeHwDevice(),  destroy objects in RArray Out
       125.495	CVEARMH263EncodeHwDevice::~CVEARMH263EncodeHwDevice(), Out
       125.500	Thread DevvideoEx::DevvideoEx Panic KERN-EXEC 3
    Do you know if it is really not supported by the API, or there is a way to record ? thank you.
    Last edited by Cartouche67; 2009-04-20 at 09:23.
    Regards and Peace.

    Cartouche67.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,567

    Re: MDFDevVideo Record API - resolution of recording

    You can check -5 in http://wiki.forum.nokia.com/index.php/Error_codes, it is rather self-explanatory.

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: MDFDevVideo Record API - resolution of recording

    Very bad discovery ..

    Do you think that a device may support another resolution ? (or perhaps it's specific to the API but I didn't find any resctiction about this)
    I need to record in 360*640 resolution and this API is the only one I found.
    Regards and Peace.

    Cartouche67.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,567

    Re: MDFDevVideo Record API - resolution of recording

    You may want to dig into CVideoEncoderInfo. However as I see, lowering the resolution should not make problems - at least not in CMMFDevVideoRecord/CVideoEncoderInfo.

  5. #5
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: MDFDevVideo Record API - resolution of recording

    Ok, I tried to call MaxPictureSize() to know what is the maximum picture size (height and width) and it returns :
    height : 576
    width : 720
    so I don't understand what happend :/
    Regards and Peace.

    Cartouche67.

  6. #6
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: MDFDevVideo Record API - resolution of recording

    I found another thing intersting, I call the function MaxPictureRates() that returns
    the maximum picture size/rate combinations supported by the encoder. Video encoders can different maximum picture rate limitations depending on the picture size used.
    It returns :

    height : 96
    widgth : 128
    rate : 15.0

    height : 144
    widgth : 176
    rate : 15.0

    height : 288
    widgth : 352
    rate : 30.0

    height : 240
    widgth : 320
    rate : 30.0

    height : 480
    widgth : 640
    rate : 30.0

    height : 480
    widgth : 720
    rate : 30.0

    height : 576
    widgth : 720
    rate : 25.0

    I tried some of this combination, changing the rate in line

    Code:
    iDvr->SetSourceMemory(15.0, EFalse, EFalse);
    but it changes anything..
    Regards and Peace.

    Cartouche67.

  7. #7
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: MDFDevVideo Record API - resolution of recording

    Any remark or suggestion can help me
    Regards and Peace.

    Cartouche67.

  8. #8
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: MDFDevVideo Record API - resolution of recording

    Hi

    Today I still have not found a solution
    I managed to get a little bit bigger resolution (352x288) changing the mime type to h263(I need 360x640)
    Now I think that DevvideoRecord is perhaps not adapted for my project, so I asked if it is possible to use an external library to symbian, or how can I write my own encoder (if do you thniks it is reasonable).

    Thank you
    Regards and Peace.

    Cartouche67.

  9. #9
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: MDFDevVideo Record API - resolution of recording

    The encoder for the emulator will be different from that used on hardware (you're lucky, not so long ago you couldn't play or record video on the emulator at all).

    In some cases, only specific sizes will be supported, rather than arbitrary ones. Some devices can record higher resolutions than others.

    You can use an external encoder library, such as FFMPEG (indeed it has already been ported, look at the Movino open source project) but you'll find performance and power consumption are issues. You're only likely to get the resolution you want at a decent frame rate on devices with hardware video encoding/decoding (which the 5800 has for example).

    Hope that helps,
    Mark

  10. #10
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: MDFDevVideo Record API - resolution of recording

    Thanks you very much, I will try with Movino.
    I'll be back to give news
    Regards and Peace.

    Cartouche67.

  11. #11
    Regular Contributor
    Join Date
    Mar 2009
    Location
    Strasbourg - France
    Posts
    110

    Re: MDFDevVideo Record API - resolution of recording

    Actually I think I will use ffmpeg,
    I downloaded the library here http://sourceforge.net/project/showf...kage_id=230900,
    but I don't know how add it in my project, can you help me ?
    Regards and Peace.

    Cartouche67.

Similar Threads

  1. Details of callRecording API
    By tlr in forum Symbian C++
    Replies: 3
    Last Post: 2009-02-27, 18:01
  2. How can i access Calendar database using PC Connectivity SDK?
    By sazzad_101 in forum PC Suite API and PC Connectivity SDK
    Replies: 8
    Last Post: 2009-02-18, 14:49
  3. sound playing and recording in Mobile Media API
    By walterzcm in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-24, 05:22
  4. Billing Record API (Standard CDR Format for GSM)
    By danreimer in forum General Messaging
    Replies: 1
    Last Post: 2002-09-28, 09:37
  5. Billing Record API (Standard CDR Format for GSM)
    By danreimer in forum Mobile Commerce
    Replies: 1
    Last Post: 2002-09-27, 18:22

Posting Permissions

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