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

Java Development

Reply
Highlighted
New Developer
Posts: 2
Registered: ‎12-14-2009
My Device: Not Specified

How to set a bitrate for video encoding?

[ Edited ]

Hi there,

Does anybody know if it's possible to limit a bitrate for the MPEG-4 encoder when capturing video in BB OS v.5.0?

We are trying the following code on BB Bold 9000 (v.5.0.0.238) but it doesn't work for us.

 

_player = javax.microedition.media.Manager.createPlayer("capture://video?encoding=video/3gpp&width=176&height=144&fps=8&video_codec=MPEG-4&audio_codec=AMR");
VideoFormatControl _vfc = (VideoFormatControl)_player.getControl("javax.microedition.amms.control.VideoFormatControl");
_vfc.setParameter(FormatControl.PARAM_BITRATE, 128000); // Returns error with not supported

 

Thanks in advance