Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Reply
Contributor
Posts: 10
Registered: ‎04-22-2013
My Device: Torch 9800
My Carrier: MTS

Blackberry10 android run-time | How to record video lower then 640x480

I have bb10 application ported from android. For most of android devices my app recording 172x144 video

MediaRecorder mMediaRecorder =newMediaRecorder();
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_LOW));

On Blackberry10 (Q10 model) for same code, it recording video in 640x480, and in logcat I see why:

09-1021:21:56.733: I/MediaProfiles(14598271):MediaProfiles::initProfilesLocked()
09-1021:21:56.736: W/MediaProfiles(14598271): camera_get_supported_cameras returned 0, using default cameras
09-1021:21:56.745: I/MediaProfiles(14598271): createCamcorderProfile: camera:0, width:1920, height:1080, bitrate:16000000, quality:1, duration:60
09-1021:21:56.746: I/MediaProfiles(14598271): createCamcorderProfile: camera:0, width:640, height:480, bitrate:2666666, quality:0, duration:30
09-1021:21:56.755: I/MediaProfiles(14598271): createCamcorderProfile: camera:1, width:1280, height:720, bitrate:8000000, quality:1, duration:60
09-1021:21:56.755: I/MediaProfiles(14598271): createCamcorderProfile: camera:1, width:640, height:480, bitrate:2666666, quality:0, duration:30

My question is : maybe exists some workaround that help me to record video lover then 640x480 ?

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Blackberry10 android run-time | How to record video lower then 640x480

Hey camobap,

 

Thanks for participating in the forums!

 

If you could log a bug for this, it would be much appreciated.

https://www.blackberry.com/jira/secure/Dashboard.jspa

 

Thanks,

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Contributor
Posts: 10
Registered: ‎04-22-2013
My Device: Torch 9800
My Carrier: MTS

Re: Blackberry10 android run-time | How to record video lower then 640x480