×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    77

    CMMFDevVideoPlay

    Hi all,

    i'm trying to use the devvideo library to decode frame by frame a mp4 video form filesystem.
    I'm using the CMMFDevVideoPlay class but i can't initialize the decoder because the FindDecodersL method doesn't find an appropriate decoder for the mp4 file.It returns to me always KErrNotFound.
    I' m trying to pass to this method this two codec as first parameter:

    video/h263-2000 or video/mp4v-es

    but the decoder can't be found.
    I'm working on the S60 3rd FP2 Emulator. Can be the problem related to emulator itself?
    This class allow to access to the video buffer so i can get the video frame one by one from this buffer isn't it?


    Best regards

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

    Re: CMMFDevVideoPlay

    Quote Originally Posted by iit-developer View Post
    I'm working on the S60 3rd FP2 Emulator. Can be the problem related to emulator itself?
    Yes. The emulator has limited multimedia capabilities in comparison to the actual devices.

  3. #3
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    77

    Re: CMMFDevVideoPlay

    Hi all,

    also on the device, an E61, my application leave with KErrNotFound when the following line is executed:

    iDevVideo->FindDecodersL(_L8("video/mp4v-es"), 0, decoders, EFalse);

    where iDevVideo ia a poniter to CMMFDevVideoPlay and decoders is a RArray<TUid>.
    The application leave with the same error also if i use:

    iDevVideo->FindDecodersL(_L8("video/h263-2000"), 0, decoders, EFalse);

    I want to play a mp4 file on my device...what codec should i use?


    Best regards

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

    Re: CMMFDevVideoPlay

    It is nice that you are using an FP2 SDK, and its plugin pack. Just the E61 (http://www.forum.nokia.com/devices/E61) is an FP-less, "initial release" device, and the plugin pack for that SDK (and even the one for FP1) does not contain DevVideo API-s. So it is not a big surprise that the API, which is actually not available for your device, does not work as expected.

  5. #5
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    77

    Re: CMMFDevVideoPlay

    ok i will try on a FP2 device.
    How can i get the video duration?

    Best regards

  6. #6
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    77

    Re: CMMFDevVideoPlay

    Dear all,

    I'm trying the devvideoplay on a N96 (does this device support this lib???) but though the initialization of the decoder seems to be correct (the MdvpoInitComplete method of the MMMFDevVideoPlayObserver return a KErrNone) when i try to call the iDevVideo->GetSnapshotL or the iDevVideo->GetTimedSnapshotL the error -18 (KErrNotReady) is returned to me.
    The code that i use for the decoder initialization is as follow:


    RArray<TUid> decoders;
    decoders.Reset();

    iDevVideo->FindDecodersL(_L8("video/mp4v-es"), 0, decoders, EFalse); //or video/h263-2000

    iDevice = iDevVideo->SelectDecoderL( decoders[0] );

    // Set the decoder device's input format

    CCompressedVideoFormat* inputFormat =
    CCompressedVideoFormat::NewL(_L8("video/mp4v-es"));
    iDevVideo->SetInputFormatL(iDevice, *inputFormat, EDuCodedPicture, EDuElementaryStream, ETrue);

    // Query the device for its valid output formats
    RArray<TUncompressedVideoFormat> outputFormats;
    iDevVideo->GetOutputFormatListL(iDevice, outputFormats);

    // Tell the decoder about the frame size, etc. by giving it a header.
    TVideoPictureHeader header = {0};
    header.iProfile = 0;
    header.iLevel = 20;
    header.iVersion = -1;
    header.iSizeInMemory.iWidth = 176; //TODO: da cambiare
    header.iSizeInMemory.iHeight = 144;
    header.iDisplayedRect.SetRect(TPoint(0,0),TSize(176,144));

    iDevVideo->ConfigureDecoderL(header);

    iDevVideo->Initialize();




    Is that wrong?


    Best regards

  7. #7
    Regular Contributor
    Join Date
    Apr 2010
    Posts
    77

    Re: CMMFDevVideoPlay

    Dear all,

    is the devvideo library already supported in a N96 or to get this library working i have to load the devvideo.dll in my project .
    I know that this library is not part of the public SDK but otherwise is presents in supplementary SDK 3RD FP2 PLUG_IN pack.
    What i have to do if i want to use this library?
    Please help me...

    Best regards

Similar Threads

  1. decoding mpeg4 raw data with CMMFDevVideoPlay
    By casual_kumar in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-01-22, 06:33
  2. CMMFDevVideoPlay & CMMFDevVideoRecord
    By mtlgui in forum Symbian
    Replies: 1
    Last Post: 2008-12-14, 16:40
  3. Problem with CMMFDevVideoPlay
    By scoleman2272 in forum Symbian Media (Closed)
    Replies: 11
    Last Post: 2008-07-08, 21:07
  4. Problem In using CMMFDevVideoPlay
    By vijayyoec645 in forum Symbian
    Replies: 0
    Last Post: 2007-09-17, 07:17
  5. How to use CMMFDevVideoPlay ?
    By Asheesh in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2007-06-04, 10:16

Posting Permissions

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