开发者

Can I detect h264 support in code?

开发者 https://www.devze.com 2023-01-06 08:05 出处:网络
For an installer I\'m building, I need to be able to warn the user if they don\'t have an h264 codec installed.At this point in the process I don\'t have any such video to play or anything, I just nee

For an installer I'm building, I need to be able to warn the user if they don't have an h264 codec installed. At this point in the process I don't have any such video to play or anything, I just need to detect th开发者_运维技巧e ability to do so. Is this possible?

Unfortunately I can't rely on the computer having anything much already installed, such as .Net or DirectX (other than whatever comes with plain Windows XP or later). The installer is written in C++.


According to this page, you can do this by either querying the registry (\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32\vidc*), or with DirectShow (probably better). The post by Toff on the page I linked to shows the DirectShow version.

0

精彩评论

暂无评论...
验证码 换一张
取 消