×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    18

    Video Resolution MMAPI

    Hi,

    I have captured video with MMAPI.

    I want to increase/ adjust the video quality/ resolution, can you please guide me.

    Regards,

    Imran Iqbal

  2. #2
    Regular Contributor
    Join Date
    May 2008
    Posts
    68

    Re: Video Resolution MMAPI

    hi,

    It depends on manufacturer implementation of MMAPI for the specific handset

    Thanks

    Ravi

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    18

    Re: Video Resolution MMAPI

    Code is below. How can i adjust the resolution of video to be captured.

    Code:
                    p = Manager.createPlayer("capture://video");
                    p.realize();
                    rc = (RecordControl) p.getControl("RecordControl");
                    LogScreen.instance.log("Content type is " + rc.getContentType());
    
    
    
                    videoControl = (VideoControl) (p.getControl("VideoControl"));
                    videoControl.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
                    videoControl.setVisible(true);
    
                    int x = (getWidth() - videoControl.getDisplayWidth()) >> 1;
                    int y = (getHeight() - videoControl.getDisplayHeight()) >> 1;
                    
                    
                    
                    videoControl.setDisplayLocation(0, 10);
                    videoControl.setDisplaySize(getWidth()- 4, getHeight()  );
    
    
    
                    rc.setRecordStream(baos);
                    p.prefetch();
    
                    rc.startRecord();
                    p.start();

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Video Resolution MMAPI

    Hi imraniqbal,

    you can find useful examples directly on MMAPI JavaDocs:

    http://www.forum.nokia.com/document/...a/Manager.html

    As a quick reference, you should specify 'width' and 'height' parameters directly on your Player locator, something like this:
    Code:
    "capture://video?width=160&height=120"
    Note that phones usually support only a predefined set of resolutions for video capture, so you should be careful to use parameters by devices you want to target.

    Hope it helps,
    Pit

Similar Threads

  1. MMAPI video in a midlet query
    By greggiannis in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2005-09-02, 02:15

Posting Permissions

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