[SOLVED] Build CEF with proprietary codecs support

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: [SOLVED] Build CEF with proprietary codecs support

Postby Czarek » Tue Nov 01, 2016 12:22 am

Create C:/cef/ directory and run automate-git.py from there.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby gorvinsky » Tue Nov 01, 2016 2:38 am

Czarek wrote:Create C:/cef/ directory and run automate-git.py from there.

Hi, I tried but still received the same error as shown below.

Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Gilford>cd desktop

C:\Users\Gilford\Desktop>pre-automate.bat

C:\Users\Gilford\Desktop>set DEPOT_TOOLS_WIN_TOOLCHAIN=0

C:\Users\Gilford\Desktop>set GYP_GENERATORS=ninja,msvs-ninja

C:\Users\Gilford\Desktop>set GYP_MSVS_VERSION=2015

C:\Users\Gilford\Desktop>set GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Ch
rome

C:\Users\Gilford\Desktop>python C:\cef\automate-git.py --download-dir=C:\Users\G
ilford\Desktop\buildcef\download --branch=2785
--> Download Directory: C:\Users\Gilford\Desktop\buildcef\download
--> Depot Tools Directory: C:\Users\Gilford\Desktop\buildcef\download\depot_tool
s
--> Updating depot_tools
-------- Running "update_depot_tools.bat" in "C:\Users\Gilford\Desktop\buildcef\
download\depot_tools"...
Ensuring CIPD client is up-to-date
GET https://chrome-infra-packages.appspot.com/_ah/api/repo/v1/instance/resolve?v
ersion=bccdb9a605037e3dd2a8a64e79e08f691a6f159d&package_name=infra%2Ftools%2Fcip
d%2Fwindows-amd64
CIPD client bccdb9a605037e3dd2a8a64e79e08f691a6f159d => bccdb9a605037e3dd2a8a64e
79e08f691a6f159d
[P7840 15:30:32.927 client.go:945 I] Packages to be installed:
[P7840 15:30:32.928 client.go:947 I]   infra/depot_tools/git_installer/windows-a
md64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7840 15:30:32.938 client.go:824 I] cipd: resolving fetch URL for infra/depot_t
ools/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7840 15:30:33.840 storage.go:249 I] cipd: initiating the fetch
[P7840 15:30:34.193 storage.go:214 I] cipd: about to fetch 29.4 Mb
[P7840 15:30:34.193 storage.go:205 I] cipd: fetching - 0%
[P7840 15:30:39.201 storage.go:205 I] cipd: fetching - 5%
[P7840 15:30:44.224 storage.go:205 I] cipd: fetching - 8%
[P7840 15:30:49.335 storage.go:205 I] cipd: fetching - 13%
[P7840 15:30:54.491 storage.go:205 I] cipd: fetching - 14%
[P7840 15:30:59.532 storage.go:205 I] cipd: fetching - 18%
[P7840 15:31:06.972 storage.go:205 I] cipd: fetching - 21%
[P7840 15:31:12.476 storage.go:205 I] cipd: fetching - 22%
[P7840 15:31:17.546 storage.go:205 I] cipd: fetching - 24%
[P7840 15:31:23.034 storage.go:205 I] cipd: fetching - 25%
[P7840 15:31:28.035 storage.go:205 I] cipd: fetching - 27%
[P7840 15:31:33.294 storage.go:205 I] cipd: fetching - 29%
[P7840 15:31:38.559 storage.go:205 I] cipd: fetching - 30%
[P7840 15:31:43.694 storage.go:205 I] cipd: fetching - 32%
[P7840 15:31:48.823 storage.go:205 I] cipd: fetching - 35%
[P7840 15:31:54.118 storage.go:205 I] cipd: fetching - 36%
[P7840 15:31:59.355 storage.go:205 I] cipd: fetching - 40%
[P7840 15:32:04.378 storage.go:205 I] cipd: fetching - 41%
[P7840 15:32:09.400 storage.go:205 I] cipd: fetching - 48%
[P7840 15:32:14.430 storage.go:205 I] cipd: fetching - 52%
[P7840 15:32:19.499 storage.go:205 I] cipd: fetching - 54%
[P7840 15:32:24.609 storage.go:205 I] cipd: fetching - 57%
[P7840 15:32:29.774 storage.go:205 I] cipd: fetching - 57%
[P7840 15:32:35.025 storage.go:205 I] cipd: fetching - 58%
[P7840 15:32:40.104 storage.go:205 I] cipd: fetching - 59%
[P7840 15:32:45.182 storage.go:205 I] cipd: fetching - 61%
[P7840 15:32:50.876 storage.go:205 I] cipd: fetching - 63%
[P7840 15:32:56.063 storage.go:205 I] cipd: fetching - 65%
[P7840 15:33:01.092 storage.go:205 I] cipd: fetching - 68%
[P7840 15:33:06.283 storage.go:205 I] cipd: fetching - 70%
[P7840 15:33:11.422 storage.go:205 I] cipd: fetching - 74%
[P7840 15:33:16.466 storage.go:205 I] cipd: fetching - 77%
[P7840 15:33:22.272 storage.go:205 I] cipd: fetching - 79%
[P7840 15:33:29.352 storage.go:205 I] cipd: fetching - 80%
[P7840 15:33:40.392 storage.go:205 I] cipd: fetching - 80%
[P7840 15:34:01.902 storage.go:205 I] cipd: fetching - 80%
[P7840 15:34:07.800 storage.go:205 I] cipd: fetching - 81%
[P7840 15:34:13.326 storage.go:205 I] cipd: fetching - 81%
[P7840 15:34:18.846 storage.go:205 I] cipd: fetching - 82%
[P7840 15:34:23.948 storage.go:205 I] cipd: fetching - 83%
[P7840 15:34:30.498 storage.go:205 I] cipd: fetching - 84%
[P7840 15:34:49.607 storage.go:205 I] cipd: fetching - 84%
[P7840 15:34:55.117 storage.go:205 I] cipd: fetching - 84%
[P7840 15:35:00.136 storage.go:205 I] cipd: fetching - 87%
[P7840 15:35:05.142 storage.go:205 I] cipd: fetching - 88%
[P7840 15:35:11.070 storage.go:205 I] cipd: fetching - 89%
[P7840 15:35:16.180 storage.go:205 I] cipd: fetching - 90%
[P7840 15:35:21.247 storage.go:205 I] cipd: fetching - 91%
[P7840 15:35:26.368 storage.go:205 I] cipd: fetching - 94%
[P7840 15:35:31.629 storage.go:205 I] cipd: fetching - 96%
[P7840 15:35:36.731 storage.go:205 I] cipd: fetching - 98%
[P7840 15:35:39.518 storage.go:205 I] cipd: fetching - 100%
[P7840 15:35:39.519 storage.go:205 I] cipd: fetching - 100%
[P7840 15:35:39.522 storage.go:221 I] cipd: fetch finished successfully
[P7840 15:35:39.523 client.go:779 I] cipd: successfully fetched infra/depot_tool
s/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7840 15:35:39.623 deployer.go:131 I] Deploying infra/depot_tools/git_installer
/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362 into c:\users\gilford\ap
pdata\local\temp\tmpysat3v
[P7840 15:35:39.698 fs.go:290 W] fs: failed to rename(c:\users\gilford\appdata\l
ocal\temp\tmpysat3v\.cipd\pkgs\5zs6D0TNxz\243722674\x, c:\users\gilford\appdata\
local\temp\tmpysat3v\.cipd\pkgs\5zs6D0TNxz\aa854a934e4d7fb24cc10b5d8b6f105494e16
362) - Access is denied.
[P7840 15:35:39.699 fs.go:240 W] fs: failed to rename directory c:\users\gilford
\appdata\local\temp\tmpysat3v\.cipd\pkgs\5zs6D0TNxz\243722674 - Access is denied
.
[P7840 15:35:39.705 client.go:997 E] Failed to install infra/depot_tools/git_ins
taller/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362 - Access is denied
.
Error: failed to update packages, see the log.
Traceback (most recent call last):
  File "C:\Users\Gilford\Desktop\buildcef\download\depot_tools\bootstrap\win\git
_bootstrap.py", line 203, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\Users\Gilford\Desktop\buildcef\download\depot_tools\bootstrap\win\git
_bootstrap.py", line 195, in main
    install_git(args, git_version, git_directory)
  File "C:\Users\Gilford\Desktop\buildcef\download\depot_tools\bootstrap\win\git
_bootstrap.py", line 115, in install_git
    'v' + git_version.replace('.', '_'))
  File "C:\Users\Gilford\Desktop\buildcef\download\depot_tools\bootstrap\win\git
_bootstrap.py", line 74, in cipd_install
    _check_call(cipd_args)
  File "C:\Users\Gilford\Desktop\buildcef\download\depot_tools\bootstrap\win\git
_bootstrap.py", line 24, in _check_call
    subprocess.check_call(argv, **kwargs)
  File "C:\Users\Gilford\Desktop\buildcef\download\depot_tools\python276_bin\lib
\subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\Gilford\\Desktop\\buildcef\
\download\\depot_tools\\cipd', 'ensure', '-list', 'c:\\users\\gilford\\appdata\\
local\\temp\\tmpbtoz6o', '-root', 'c:\\users\\gilford\\appdata\\local\\temp\\tmp
ysat3v']' returned non-zero exit status 1
--> CEF Branch: 2785
--> CEF URL: https://bitbucket.org/chromiumembedded/cef.git
--> CEF Source Directory: C:\Users\Gilford\Desktop\buildcef\download\cef
-------- Running "C:\Users\Gilford\Desktop\buildcef\download\depot_tools\git.bat
 clone https://bitbucket.org/chromiumembedded/cef.git C:\Users\Gilford\Desktop\b
uildcef\download\cef" in "C:\Users\Gilford\Desktop\buildcef\download"...
'C:\Users\Gilford\Desktop\buildcef\download\depot_tools\git.bat' is not recogniz
ed as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "C:\cef\automate-git.py", line 698, in <module>
    depot_tools_dir)
  File "C:\cef\automate-git.py", line 55, in run
    shell=(sys.platform == 'win32'))
  File "C:\Users\Gilford\Downloads\depot_tools\python276_bin\lib\subprocess.py",
 line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\Gilford\\Desktop\\buildcef\
\download\\depot_tools\\git.bat', 'clone', 'https://bitbucket.org/chromiumembedd
ed/cef.git', 'C:\\Users\\Gilford\\Desktop\\buildcef\\download\\cef']' returned n
on-zero exit status 1

C:\Users\Gilford\Desktop>

I think the location of automate-git.py has no effect or anything.
Last edited by gorvinsky on Tue Nov 01, 2016 3:15 am, edited 1 time in total.
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby Czarek » Tue Nov 01, 2016 2:57 am

Your logs show that you're still running it from Desktop. The issue you're having is off-topic here.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby gorvinsky » Tue Nov 01, 2016 3:06 am

Czarek wrote:Your logs show that you're still running it from Desktop. The issue you're having is off-topic here.

I ran the bat file on desktop but the automate-git.py is located in C:/cef/ just as you suggested. Read the logs more carefully :)

No, I am building CEF with proprietary codecs support but I have failed because of this issue. In fact, the admin approved my post before it could appear here. So I am on topic.
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby gorvinsky » Wed Nov 09, 2016 3:12 am

So does anyone know what caused the error?
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby Jonas » Fri Dec 16, 2016 9:35 am

I would like to add ffmpeg support to the 2924 build. In this thread it was advised to simply add the following environmental variable before running automate-git.py:

set GYP_DEFINES="proprietary_codecs=1 ffmpeg_branding=Chrome"

But, since the build automation was switched to GN from GYP will this still work? Or is there a GN specific define that I need?
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby magreenblatt » Fri Dec 16, 2016 10:01 am

Jonas wrote:I would like to add ffmpeg support to the 2924 build. In this thread it was advised to simply add the following environmental variable before running automate-git.py:

set GYP_DEFINES="proprietary_codecs=1 ffmpeg_branding=Chrome"

But, since the build automation was switched to GN from GYP will this still work? Or is there a GN specific define that I need?

set GN_DEFINES="proprietary_codecs=true ffmpeg_branding=Chrome"
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby Jonas » Fri Dec 16, 2016 12:15 pm

I get the error below when I add the following to my environment and run automate-git.py:
set GN_DEFINES="proprietary_codecs=true ffmpeg_branding=Chrome"

I traced through the gni files but don't see how proprietary_codecs can be set to a string. Looks like it is set should be set to false.
I would print the value to console but don't know the command, if there is one.
Also, I don't see where GN_DEFINES is read in by the build system.

Any suggestions?


________ running 'gn gen out\Debug_GN_x86' in 'd:\cefbuild\CEF2924\chromium\src'
ERROR at //media/media_options.gni:39:36: Left side of && operator is not a boolean.
enable_ac3_eac3_audio_demuxing = proprietary_codecs && is_chromecast
^-----------------
Type is "string" instead.
See //BUILD.gn:17:1: whence it was imported.
import("//media/media_options.gni")
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby Jonas » Fri Dec 16, 2016 12:32 pm

I see how to print to the console from gni files. I printed the value proprietary_codecs which should be true, but instead is:

true ffmpeg_branding=Chrome

Seems like the GN_DEFINES is not quite right.
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby Jonas » Fri Dec 16, 2016 1:17 pm

I think the quotes are wrong for Windows. Should be

set GN_DEFINES=proprietary_codecs=true ffmpeg_branding=Chrome
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

PreviousNext

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 39 guests