Android Mediamuxer Moov原子 [英] Android Mediamuxer moov atom

查看:354
本文介绍了Android Mediamuxer Moov原子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MediacodecMediamuxer api记录设备屏幕,一切都很好.

I am recording device screen using Mediacodec and Mediamuxer api everything is fine.

现在,我想在记录时流式传输此文件,但是直到muxer停止并且在文件末尾写入moov atom之前,我无法这样做.

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.

所以我的问题是什至有可能使用Mediamuxer吗?如果不是,那还有什么替代方法?

So my question is it even possible using Mediamuxer for the purpose? If not what are the alternatives?

推荐答案

否,这不可能.

要在写入文件时发送MP4文件,您需要写入碎片化的MP4,而MediaMuxer只写入未碎片化的MP4.

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.

这篇关于Android Mediamuxer Moov原子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆