在Google Glass上录制带有时间流逝的视频

时间:2013-10-29 12:50:00

标签: android google-glass

我尝试将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);

0 个答案:

没有答案