-
Notifications
You must be signed in to change notification settings - Fork 155
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
生成的视频没有duration,在播放器中不会显示总时长 #20
Comments
因为流式导出文件(fMP4格式),所以没办法在开始的时候确定视频的时长, 你在什么场景下输出视频文件? 或者,也可以考虑单独提供一个工具函数,给 fMP4 文件添加 duration 字段。 |
或者在结束的时候,给 moov box 添加 duration 写入文件结尾,需要试试是否可行。 |
试过了,将 moov box 移动到 fMP4 文件的末尾处,文件将无法播放。 按这个规范文件描述,moov 应该在 ftyp box 之后,文件的开头处。 |
很遗憾,目前只能通过ffmpeg 添加 duration: 或者牺牲流式导出文件的能力,在流结束的时候去更新 duration,但我目前认为还不值得。 |
查看完整示例 修复输出文件不显示时长 |
Hi, seems like the demo is unavailable, may I know how to solve the issue? Thanks |
No description provided.
The text was updated successfully, but these errors were encountered: