Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问mp4到FMP4是怎么实现的呢 #49

Closed
Guohjia opened this issue Aug 5, 2018 · 4 comments
Closed

请问mp4到FMP4是怎么实现的呢 #49

Guohjia opened this issue Aug 5, 2018 · 4 comments

Comments

@Guohjia
Copy link

Guohjia commented Aug 5, 2018

No description provided.

@Guohjia Guohjia changed the title mp mp4到FMP Aug 5, 2018
@Guohjia Guohjia changed the title mp4到FMP 请问mp4到FMP4是怎么实现的呢 Aug 5, 2018
@oldmtn
Copy link

oldmtn commented Aug 6, 2018

  1. 提取mp4中的moov并解析得到一系列的samples的映射表;
  2. 根据此表,获取一系列的samples;
  3. 下载一系列的samples,然后组装成fmp4的segment(moof,mdat);
  4. 直接塞给MSE来播放;

@zhangxin92
Copy link
Contributor

First you should know the format of mp4 and fmp4 in detail. Then read the source code of xgplayer and xgplayer-mp4 😄

@Guohjia
Copy link
Author

Guohjia commented Aug 6, 2018

感谢两位,但是对于一个无音视频底层基础的前端开发来说,想要使用MSE,学习成本就这么高吗 @zhangxin92 @oldmtn

@zhangxin92
Copy link
Contributor

@Guohjia If you have already used the html5 video or xgplayer, you satisfy the basic requirements for studying or using MSE. With the open source code, the difficulty of studying depends on yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants