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

ffmpeg软编与硬编 #1

Open
cherishman2005 opened this issue Sep 27, 2021 · 5 comments
Open

ffmpeg软编与硬编 #1

cherishman2005 opened this issue Sep 27, 2021 · 5 comments

Comments

@cherishman2005
Copy link
Owner

ffmpeg在编码的时候,非常吃cpu和内存,尤其是cpu,服务器cpu100%都是家常便饭。那增加cpu不就完事了吗?我们后面会实际测试8核8G、16核16G的机器,发现依然会爆,所以这是一个无底洞,消耗不起。

@cherishman2005
Copy link
Owner Author

cherishman2005 commented Sep 28, 2021

ffmpeg+cuda编解码性能优化分析:
1:IO 读写
2:编码 preset 改成最快速度
3:多进程

@cherishman2005
Copy link
Owner Author

cherishman2005 commented Sep 28, 2021

https://zhuanlan.zhihu.com/p/162166889

https://blog.csdn.net/zong596568821xp/article/details/116531122

对于 H.264 编码来说,可以看到 T4 显卡最多支持 19 路 1080p/30fps 流编码。 -- 我们已经压出转码 18路。

对于 1080p 分辨率的视频,T4 的解码性能最强, H264 最大支持到 1000 FPS 性能,即如果是 30 fps 的视频流,大概能同时解码 33 路视频。 -- 我们已经压出1500 FPS,50路。

@cherishman2005
Copy link
Owner Author

image

@cherishman2005
Copy link
Owner Author

image

image

@cherishman2005
Copy link
Owner Author

image

软解正常; 硬解解到最后 会有一段解码失败(前一段硬解正常,后一段解码失败了)。
是不是意味着 硬解 有一定风险,可能会解码失败?

那个视频是我们sap dump下来的测试开播的视频 ,硬件解码的兼容性肯定比软件要差

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

1 participant