Get profile.
CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH);View parameter,
Log.d("test","quality= " + profile.quality); Log.d("test","autoBitRate= " + profile.audioBitRate); Log.d("test","audioChannels= " + profile.audioChannels); Log.d("test","audioCodec= " + profile.audioCodec); Log.d("test","audioSampleRate= " + profile.audioSampleRate); Log.d("test","duration= " + profile.duration); Log.d("test","fileformat= " + profile.fileFormat); Log.d("test","videoBitRate= " + profile.videoBitRate); Log.d("test","videocodec= " + profile.videoCodec); Log.d("test","videoFrameHeight= " + profile.videoFrameHeight); Log.d("test","videoFrameRate= " + profile.videoFrameRate); Log.d("test","videoFrameWidth= " + profile.videoFrameWidth);The Version is Android 2.3.1. CamcorderProfile has QUALITY_HIGH and QUALITY_LOW. I don't know how to get other profile. My android result follow QUALITY_HIGH
quality= 1 autoBitRate= 96000 audioChannels= 1 audioCodec= 3 audioSampleRate= 16000 duration= 60 fileformat= 2 videoBitRate= 3000000 videocodec= 2 videoFrameHeight= 480 videoFrameRate= 27 videoFrameWidth= 720QUALITY_LOW
quality= 0 autoBitRate= 12200 audioChannels= 1 audioCodec= 1 audioSampleRate= 8000 duration= 30 fileformat= 1 videoBitRate= 256000 videocodec= 3 videoFrameHeight= 144 videoFrameRate= 27 videoFrameWidth= 176
source code here
0 件のコメント:
コメントを投稿