×

Discussion Board

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

    get Frame from video

    Hi all,

    i would like to known if there is a way to get the frames (a temporally based sampling of frames) from a recorded mpeg4 video before rendering on the screen?
    I have to extract frames with hight resolution and with a larger size than the mobile's screen so i have to access the frames directly from the mpeg decoder before they are resized for the mobile's screen.

    Best regards

    Paolo

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: get Frame from video

    Hello,
    You can also try with this method which i use with my Nokia N95. You need to get the video control from your player and then you can use the getSnapshot "encoding = jpeg" and then you will get the required frame. And after that you can try to convert the image and then you can have the requirement which you want with your phone.

    For more information you can read the MMAPI,and things will be more clear to you
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

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

    Re: get Frame from video

    Hi raj_J2ME,

    i have already seen the getSnapshot() method and its parameters but i need a larger image than the diplay's screen, so if i get a snapshot and than try to resize it the resolution of the image is scaled and became too low for my purpose.
    The getSnapshot() method accept also other parameters:

    jpg = mVideoControl.getSnapshot("encoding=jpeg&quality=100&width=" + width + "&height=" + height);

    I have a question: if i try with this call passing hight value for widht and height the resolution of the image is still scaled or not?

    Furthermore i have fuound this:

    byte[] raw = mVideoControl.getSnapshot(null);
    Image image = Image.createImage(raw, 0, raw.length);

    If a use this method can i get the native resolution of the frame extracted from the video?

    Can anybody help me?
    Does anybody known some method to convert the image in a larger size without lost of resolution or a method to access the native video decoder to get his original frames?


    Best regards

Similar Threads

  1. Cannot run streaming through a J2ME code on WTK2.5.2.
    By itismohit in forum Streaming and Video
    Replies: 0
    Last Post: 2009-03-30, 07:49
  2. FATAL ERROR - Applet 17 with certain png's
    By OneNineStudios in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-12-17, 13:11
  3. about video frame
    By freesui1984 in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2008-07-08, 11:03

Posting Permissions

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