Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2008

    Capturing snapshot from a video running on device

    Hi all,

    I have to capture a snapshot from the video currently running on the device. I am using getSnapShot() from videoControl. The application is working fine on SE K800i but when i am running it on N81 the btye[] returned is too small (around 60 bytes only) and the image created is of width and height 1 only.

    Can anyone make out why is it happening so?
    Please help.

  2. #2
    Nokia Developer Expert
    Join Date
    May 2007
    Mexico D.F

    Re: Capturing snapshot from a video running on device


    Give a check to this link


    Hope this helps


  3. #3
    Super Contributor
    Join Date
    Nov 2003
    Bangalore , India

    Re: Capturing snapshot from a video running on device

    Hi ur_2u! Welcome to Nokia Developer Discussion boards!!

    videoControl.getSnapshot("width=80&height=60"); // default encoding, size 80x60
    videoControl.getSnapshot("encoding=bmp&width=80&height=60"); // BMP, 80x60
    If values are specified for width and height, both of them must be specified, not just the width or height.
    In this case, the image is scaled to the requested width and height. If the requested aspect ratio (that is,
    4:3) does not match that of the default size (in most devices 160 x 120), the resulting image will be distorted,
    or in Series 40 devices, if the width and height do not match a supported size, the closest match is used
    instead. The maximum size that can be captured depends on the free heap memory available. The system
    property video.snapshot.encodings contains a list of the valid video snapshot encodings for your
    device. Supported image types can be, for example, encoding=png, encoding=bmp,
    encoding=jpeg, and encoding=gif. JPEG format is the most compact format. The use of compact
    format reduces memory usage, and is therefore recommended in many cases.

    More info : MIDP: Mobile Media API Developer's Guide v2.1


  4. #4
    Registered User
    Join Date
    Mar 2008

    Re: Capturing snapshot from a video running on device

    Hi All,

    Let me clarify my question. I am streaming a video from server and playing it. I want to capture a frame from this video while it is being played. As mentioned earlier I am using getSnapShot(). On some devices it is working fine but on N81 the byte[] that is returned is too small and no image is displayed when I draw an image created using this array.

    The size of the array returned is too small and if no width and height is specified in getSnapShot() the image created is 1X1 only.

    Please help.

Similar Threads

  1. Video snapshot
    By muntain in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-10-01, 15:33
  2. Replies: 2
    Last Post: 2007-05-26, 09:50
  3. How to Deal with capturing video from camera by CMMFCodec
    By mrzero in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2007-04-25, 21:34
  4. program running on emulator but error on device (nokia 6800)
    By puneetjiva in forum Mobile Java General
    Replies: 5
    Last Post: 2003-07-23, 20:13
  5. Device Simulators/Emulators that support video in MMS
    By pradcliffe in forum General Messaging
    Replies: 1
    Last Post: 2003-03-18, 04:51

Posting Permissions

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