在编码新文件时,将MP4文件解码帧

发布于 2025-02-11 04:35:43 字数 286 浏览 1 评论 0原文

我编写了一个视频播放器,该视频播放器显示了(来自相机)的实时视频流,并同时将其编码为MP4文件。
我还希望从该MP4文件中播放(向后或向前查找视频),而流则继续编码到该MP4文件。

由于仅将“ MOOV ATOM”添加到最终的MP4文件中,因此如何在流中编码MP4文件时从中读取它?

最好的方法是什么?

update

@vc.一个建议使用碎片的MP4。但是,如何从该FMP4文件中读取这些块?是否有(C ++/C#)库可以在FMP4文件中找到这些片段?

I write a video player that shows a live video stream (from camera) and also encodes it into mp4 file at the same time.
I want to also be able to playback (seek backward or forward) the video from that mp4 file while the stream continue being encoded to that mp4 file.

Since "moov atom" is only added to the final mp4 file, how can I read from it while the stream is still being encoded to the mp4 file?

What is the best approach?

UPDATE

@VC.ONE suggested using a fragmented mp4. But, how to I read those chunks from that fMp4 file? Is there any (C++/C#) library that can find those fragments in the fMp4 file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文