[英]Android Mediamuxer moov atom
I am recording device screen using Mediacodec
and Mediamuxer
api everything is fine. 我正在使用Mediacodec
和Mediamuxer
api录制设备屏幕,一切都很好。
Now I want to stream this file while recording, but cant until muxer
is stopped and moov atom is written at the end of file. 现在,我想在录制时流式传输此文件,但是直到停止muxer
并且在文件末尾写入moov atom之前,我才能这样做。
So my question is it even possible using Mediamuxer
for the purpose? 所以我的问题是什至可以使用Mediamuxer
吗? If not what are the alternatives? 如果不是,还有哪些替代方案?
No, it's not possible. 不,不可能。
In order to send an MP4 file while it is being written, you need to write fragmented MP4, and MediaMuxer only writes non-fragmented MP4. 为了在编写文件时发送MP4文件,您需要编写分段的MP4,而MediaMuxer只写未分段的MP4。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.