admin管理员组文章数量:1394985
I have a problem with my screen recorder. When i use MediaRecorder.AudioSource.MIC, my output video will have smaller sound than the video played in device that i recorded. This is my attributes in Media Recorder:
private fun initializeRecorder() {
val (width, height) = getWindowSize()
mediaRecorder = MediaRecorder().apply {
setAudioSource(MediaRecorder.AudioSource.MIC)
setVideoSource(MediaRecorder.VideoSource.SURFACE)
setOutputFormat(MediaRecorder.OutputFormat.MPEG_4)
setOutputFile(getOutputFilePath())
setVideoSize(width, height)
setVideoEncoder(MediaRecorder.VideoEncoder.H264)
setAudioEncoder(MediaRecorder.AudioEncoder.AAC)
setAudioEncodingBitRate(AUDIO_BIT_RATE)
setAudioSamplingRate(AUDIO_SAMPLE_RATE)
setVideoEncodingBitRate(VIDEO_BIT_RATE_KILOBITS * 1000)
setVideoFrameRate(VIDEO_FRAME_RATE)
try {
prepare()
} catch (e: Exception) {
e.printStackTrace()
}
}
}
How can I record standard sound of system and sound in environment in output video? I want my sound in output video after recording is louder
本文标签: androidCombine audio from MIC and system in Media RecorderStack Overflow
版权声明:本文标题:android - Combine audio from MIC and system in Media Recorder - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744110320a2591257.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论