1

I have rebuilt cef from source with the proprietary_codecs option set to true, but I still cannot play mp4 videos for some reason. Is there a specific switch that I need to enable ? This is what I used to create the version of cef with support for proprietary codecs

set CEF_USE_GN=1
set DEPOT_TOOLS_WIN_TOOLCHAIN = 0
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome enable_precompiled_headers = false
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/*
python d:\code\automate\automate-git.py --download-dir=D:\code\chromium_git --depot-tools-dir=D:\code\depot_tools --no-distrib --no-build --branch=3239
G-Man
  • 7,232
  • 18
  • 72
  • 100
  • Possible duplicate of [How to enable H264 support in CEF3 latest version ?](https://stackoverflow.com/questions/43845493/how-to-enable-h264-support-in-cef3-latest-version) – Eugen Mar 06 '18 at 18:15

1 Answers1

1

There are 2 main steps in the build, one that calls automate-git.py and the second one that creates the cef projects (create.bat). I had the proper GN_DEFINES set in the first one but not the second one. I added the GN_DEFINES (is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome ) to the second one and it picked up a lot more files during the build. Now I can play mp4 files

G-Man
  • 7,232
  • 18
  • 72
  • 100
  • as commented in your own question, this is a duplicate of https://stackoverflow.com/questions/43845493/how-to-enable-h264-support-in-cef3-latest-version and answered there with all details – Eugen Apr 14 '18 at 18:02