mendax92
mendax92
I hope to help you. I am trying to encode video from the camera and audio from the microphone using MediaCodec and MediaMuxer. Rendering with OpenGL. https://github.com/lumyus/FlexCam
I hope to help you. I am trying to encode video from the camera and audio from the microphone using MediaCodec and MediaMuxer. Rendering with OpenGL. https://github.com/lumyus/FlexCam
同样碰到这个问题,不知道后面你们怎么解决的?
> @greadking 您这估计得重新编译, 这个库看能否帮到您,https://github.com/microshow/FastFFmpegAndroid ,同时支持中断当前执行的FFmpeg CMD 用你这个库 多个mp3 合成 失败,用你推荐的指令ffmpeg -y -f concat -safe 0 -i Cam01.txt -c copy Cam01.mp3
> @mendax92 你得把各个mp3的码率 采样率转成一样在合并试试 尴尬的是 同一个音频文件 ,我用你的库 添加背景音乐 是OK的,因为音频和视频长度不一样,所以我先音频合成,音频合成成功之后再将音频与视频合成,可是在第一步就失败了。换EpMedia 的库就是OK的
> @mendax92 那你现在问题是? 如果音频和视频长度不一致,可以加个参数 -t 123 控制最后合成的时间 音频合成失败 ffmpeg_parse_options_error String[] command 0 = "ffmpeg" 1 = "-y" 2 = "-f" 3 = "concat" 4 = "-safe" 5 = "0" 6...
太棒了,解决了,不过滑动还是有点别扭