Hi, I have been able to remove ffmpeg from libcef.dll, also due to legal requirements. Steps I did below for reference. Good luck!
Follow the instructions listed at https://bitbucket.org/chromiumembedded/ ... dows-setup
On step 6, my update.bat is like below (note that I didn't want to use the latest, and branch 2785 meets my requirements):
set CEF_USE_GN=1
Set GYP_MSVS_VERSION=2015
set GN_DEFINES=is_win_fastlink=true
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=c:\code\chromium_git --depot-tools-dir=c:\code\depot_tools --no-distrib --no-build --branch 2785
On step 7, my create.bat is like below:
set CEF_USE_GN=1
set GN_DEFINES=is_win_fastlink=true media_use_ffmpeg=false
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/*
call cef_create_projects.bat
Hacks to remove ffmpeg before running ninja -C out\Release_GN_x86 libcef
1. Remove the entire directory chromium\src\third_party\ffmpeg
2. Modify file chromium\src\media\media_options.gni
Original: media_use_ffmpeg = true
Update: media_use_ffmpeg = false
3. Modify file chromium\src\third_party\WebKit\Source\build\features.gypi
Original: WTF_USE_WEBAUDIO_FFMPEG=1
Update: WTF_USE_WEBAUDIO_FFMPEG=0
4. Modify file chromium\src\third_party\WebKit\Source\config.gni
Original: use_webaudio_ffmpeg = !is_mac && !is_android
Update: use_webaudio_ffmpeg = false
5. Modify file chromium\src\media\cast\BUILD.gn
Original: deps += [ "//third_party/ffmpeg" ]
Update: #deps += [ "//third_party/ffmpeg" ]
6. Update file chromium\src\device\bluetooth\bluetooth_task_manager_win.cc line 923
Original: &OnGetGattEventWin, user_event_handle, &win_event_handle);
Update: (PFNBLUETOOTH_GATT_EVENT_CALLBACK)&OnGetGattEventWin, user_event_handle, &win_event_handle);
Verification
1. Download strings.exe from https://technet.microsoft.com/en-us/sys ... rings.aspx
1.1 Run strings.exe libcef.dll > libcef_strings.txt
1.2 Search within libcef_strings.txt to ensure the token "ffmpeg" no longer exist