Sunday, 2 June 2019

Query Supported Bitrate while recording videos

I am using MediaRecorder to record videos and want to change certain parameters like videoBitrate frameRate like this

profile.videoBitRate = 50000000; 

But from Android Docs

MediaRecorder error if the output bit rate exceeds the encoder limit.

So how do I query about the supported bitrates and framerate? LIke above I have hardcoded the bitrate to 50mbps but it may exceed encoder limit on some devices.

I checked MediaRecorder docs and couldn't find any reference to this.

Is there a way I can get the supported bitrates and framerates for video recording using media recorder.



from Query Supported Bitrate while recording videos

No comments:

Post a Comment