You Are Here:

Community: Developer Discussion Boards

#1 Old Video Resolution MMAPI - 2008-09-29, 10:20

Join Date: Sep 2008
Posts: 11
imraniqbal
Offline
Registered User
Hi,

I have captured video with MMAPI.

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

Regards,

Imran Iqbal
Reply With Quote

#2 Old Re: Video Resolution MMAPI - 2008-09-29, 13:51

Join Date: May 2008
Posts: 67
ravivalecha
Offline
Regular Contributor
hi,

It depends on manufacturer implementation of MMAPI for the specific handset

Thanks

Ravi
Reply With Quote

#3 Old Re: Video Resolution MMAPI - 2008-09-29, 20:26

Join Date: Sep 2008
Posts: 11
imraniqbal
Offline
Registered User
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();
Reply With Quote

#4 Old Re: Video Resolution MMAPI - 2008-09-29, 22:20

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
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


www.jappit.com - mobile and web blog
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
MMAPI video in a midlet query greggiannis Mobile Java Media (Graphics & Sounds) 0 2005-09-02 03:15

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ