3

我尝试使用 Google Glass 和 Android SDK 将质量设置为录制视频,QUALITY_TIME_LAPSE_LOW但未录制帧。我也尝试过QUALITY_TIME_LAPSE_HIGH将 VideoEncoder 编解码器设置为MPEG_4_SP而不是 default H264

延时记录适用于 Nexus 10 (Android 4.3)

这是我的代码的相关部分,我在其中设置了录制的视频配置文件:

CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_TIME_LAPSE_LOW);
profile.videoCodec = MediaRecorder.VideoEncoder.MPEG_4_SP; //I have tried also with the default: H264
_mediaRecorder.setCaptureRate(2.0); //I have tried also with 10.0 fps
_mediaRecorder.setProfile(profile);
4

0 回答 0