-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 长时间录制内存增长 #264
Comments
同时 mp4 这种文件比较怕断电,把这部分的内存管理交给调用方,还可以做到断电恢复的效果.
|
可以,这块占用的内存确实比较多,我考虑下设计方案。 初步想法是提供alloc/free回调。 |
感谢; 我可以修改, 我可以改完提交一个 draft 吗 |
可以的,非常欢迎提PR! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我看到在
libmov/source/mov-internal.h
定义了:写入 mp4 的每一帧都需要一个
mov_sample_t
来保存信息; 在不考虑内存对齐的情况下,一个结构体应该是 64 字节,如果视频流的规格是30帧每秒,那么一个钟为mov_sample_t
分配的内存为:60 * 60 * 30 * 64 = 6,912,000 bytes ≈ 6MB
对于嵌入式设备而言还是相当客观的内存.
针对这种场景,有什么好的方法吗?
The text was updated successfully, but these errors were encountered: