我尝试将Google Glass和Android SDK设置质量的视频录制到QUALITY_TIME_LAPSE_LOW
,但未记录帧。我也尝试使用QUALITY_TIME_LAPSE_HIGH
并将VideoEncoder编解码器设置为MPEG_4_SP
而不是默认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);