本文介绍了如何在CEF3最新版本中启用H264支持?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道cef3的较旧版本(例如2623)可以通过修改chromium\src\cef\cef.gypi文件来启用H264支持。
但在诸如3071或3029的最新版本中,cef3删除了cef.gypi文件。
我已经用谷歌搜索过,但是我发现仍然是通过修改cef.gypi文件。
因为此方法仅对旧版本有效。我还有其他方法可以使较新版本启用H264支持吗?
非常感谢!

I have known that cef3's older version like 2623 can enable H264 support through modify chromium\src\cef\cef.gypi file.But in recent versions like 3071 or 3029, cef3 has removed cef.gypi file.I have googled this, but what I found is still through modify the cef.gypi file.Since this methold is only valid for older versions. Is there another way that I can make newer version enable H264 support ?Thanks very much!

推荐答案

实际上是支持专有编解码器的编译选项被移动了。

Indeed the compile option to support proprietary codecs was moved.

现在魔术发生在这里:

set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome

您有2个批处理文件应该更新/创建(

  • BranchesAndBuilding 在同一Wiki中

    1. https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md
    2. and BranchesAndBuilding in the same wiki






    更新:
    以下是有关Chromium构建标记信息的更多链接:


    Update:Here are more links with infos on Chromium build flags:





    ... GYP/GN flags which can alter behaviour of Chromium's HTML5 audio/video implementation.
    
    ffmpeg_branding
      Overrides which version of FFmpeg to use
      Default: $(branding)
      Values:
        Chrome - includes additional proprietary codecs (MP3, etc..) for use with Google Chrome
        Chromium - builds default set of codecs
    
    proprietary_codecs
      Alters the list of codecs Chromium claims to support, which affects <source> and canPlayType() behaviour
      Default: 0(gyp)/false(gn)
      Values:
        0/false - <source> and canPlayType() assume the default set of codecs
        1/true - <source> and canPlayType() assume they support additional proprietary codecs
    

    这篇关于如何在CEF3最新版本中启用H264支持?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    07-23 02:35
    查看更多