[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 passeplatypus » Sun Oct 23, 2016 6:25 pm

Has this actually been solved? I have had no luck with anything that I've tried thus far.
Setting
Code: Select all
GYP_DEFINES=proprietary_codecs=1 ffmpeg branding=Chrome
doesn't seem to do anything.
passeplatypus
Newbie
 
Posts: 2
Joined: Sun Oct 23, 2016 6:02 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby magreenblatt » Mon Oct 24, 2016 10:49 am

passeplatypus wrote:Has this actually been solved? I have had no luck with anything that I've tried thus far.
Setting
Code: Select all
GYP_DEFINES=proprietary_codecs=1 ffmpeg branding=Chrome
doesn't seem to do anything.

What CEF version are you using? The flag is `ffmpeg_branding`, not `ffmpeg branding`.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby callum » Mon Oct 24, 2016 9:45 pm

I was able to build older versions of the Win32 CEF version with the proprietary media turned out by specifying:

Code: Select all
set GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome buildtype=Official


Newer versions require VS 2015 and I'm still stuck using VS 2013.
callum
Expert
 
Posts: 323
Joined: Mon Feb 23, 2015 6:19 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby passeplatypus » Tue Oct 25, 2016 12:23 am

magreenblatt wrote:What CEF version are you using? The flag is `ffmpeg_branding`, not `ffmpeg branding`.

Sorry, yeah, not sure why that underscore didn't copy over. That's what I had been trying.

As part of the learning process, I realized that I am using GN, not GYP, so I need to change the args accordingly. I've been following this: https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md tutorial and I am on the master branch.

Is this the valid syntax for setting GN_ARGUMENTS via the batch file?
Code: Select all
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/* --proprietary_codecs=true --ffmpeg_branding=\"Chrome\"


I've built the solution with Ninja and it compiles fine, but the media support is still missing, even with the above arguments. Am I correct in thinking that just the ffmpegsumo.dll needs to be added to the Release folder, or are there extra dlls necessary and/or do they need to go into a subfolder?
passeplatypus
Newbie
 
Posts: 2
Joined: Sun Oct 23, 2016 6:02 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby magreenblatt » Tue Oct 25, 2016 10:56 am

With GN you should use:

Code: Select all
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/*
set GN_DEFINES=proprietary_codecs=true ffmpeg_branding="Chrome"
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby gorvinsky » Mon Oct 31, 2016 2:04 am

Hi, I'm trying to follow the steps from the answer to this stack overflow question (http://stackoverflow.com/questions/8033 ... p3-support)

When I run automate-git.py, it gave me an error about "git.bat" is not recognized. I tried searching in the downloaded depot tools folder (downloaded by the automate-git.py), "git.bat" is indeed missing. Details of the command prompt is as shown below.

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

C:\Users\Gilford>set DEPOT_TOOLS_WIN_TOOLCHAIN=0

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

C:\Users\Gilford>set GYP_MSVS_VERSION=2015

C:\Users\Gilford>set GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome

C:\Users\Gilford>python C:\Users\Gilford\Desktop\buildcef\automate-git.py --down
load-dir=C:\Users\Gilford\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
[P7376 15:00:30.123 client.go:945 I] Packages to be installed:
[P7376 15:00:30.123 client.go:947 I]   infra/depot_tools/git_installer/windows-a
md64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7376 15:00:30.128 client.go:824 I] cipd: resolving fetch URL for infra/depot_t
ools/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7376 15:00:30.399 storage.go:249 I] cipd: initiating the fetch
[P7376 15:00:31.367 storage.go:214 I] cipd: about to fetch 29.4 Mb
[P7376 15:00:31.367 storage.go:205 I] cipd: fetching - 0%
[P7376 15:00:36.375 storage.go:205 I] cipd: fetching - 46%
[P7376 15:00:39.830 storage.go:205 I] cipd: fetching - 100%
[P7376 15:00:39.831 storage.go:205 I] cipd: fetching - 100%
[P7376 15:00:39.834 storage.go:221 I] cipd: fetch finished successfully
[P7376 15:00:39.835 client.go:779 I] cipd: successfully fetched infra/depot_tool
s/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7376 15:00:39.935 deployer.go:131 I] Deploying infra/depot_tools/git_installer
/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362 into c:\users\gilford\ap
pdata\local\temp\tmpylbbit
[P7376 15:00:40.002 fs.go:290 W] fs: failed to rename(c:\users\gilford\appdata\l
ocal\temp\tmpylbbit\.cipd\pkgs\5zs6D0TNxz\226846658\x, c:\users\gilford\appdata\
local\temp\tmpylbbit\.cipd\pkgs\5zs6D0TNxz\aa854a934e4d7fb24cc10b5d8b6f105494e16
362) - Access is denied.
[P7376 15:00:40.011 fs.go:240 W] fs: failed to rename directory c:\users\gilford
\appdata\local\temp\tmpylbbit\.cipd\pkgs\5zs6D0TNxz\226846658 - Access is denied
.
[P7376 15:00:40.014 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\\tmpc68_7a', '-root', 'c:\\users\\gilford\\appdata\\local\\temp\\tmp
ylbbit']' 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:\Users\Gilford\Desktop\buildcef\automate-git.py", line 698, in <module
>
    depot_tools_dir)
  File "C:\Users\Gilford\Desktop\buildcef\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>


Has anyone encountered this issue with "git.bat" before?
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby magreenblatt » Mon Oct 31, 2016 11:28 am

gorvinsky wrote:[P7376 15:00:40.002 fs.go:290 W] fs: failed to rename(c:\users\gilford\appdata\l
ocal\temp\tmpylbbit\.cipd\pkgs\5zs6D0TNxz\226846658\x, c:\users\gilford\appdata\
local\temp\tmpylbbit\.cipd\pkgs\5zs6D0TNxz\aa854a934e4d7fb24cc10b5d8b6f105494e16
362) - Access is denied.

Looks like a permissions issue on your machine.
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: [SOLVED] Build CEF with proprietary codecs support

Postby gorvinsky » Mon Oct 31, 2016 8:02 pm

magreenblatt wrote:Looks like a permissions issue on your machine.

Yes, my user account is standard user, not administrator. Is it necessary to run it on administrator account?

Edit: What I mean is, is there a way to do it with just standard user account?
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby gorvinsky » Mon Oct 31, 2016 8:49 pm

I just tried to run the script again with cmd in adminstrator mode. The result is the same as shown below.

Code: Select all

C:\Users\Gilford>set DEPOT_TOOLS_WIN_TOOLCHAIN=0

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

C:\Users\Gilford>set GYP_MSVS_VERSION=2015

C:\Users\Gilford>set GYP_DEFINES=proprietary_codecs=1 ffmpeg_branding=Chrome

C:\Users\Gilford>python C:\Users\Gilford\Desktop\buildcef\automate-git.py --down
load-dir=C:\Users\Gilford\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
--> Extracting https://storage.googleapis.com/chrome-infra/depot_tools.zip to C:
\Users\Gilford\Desktop\buildcef\download\depot_tools.
--> Updating depot_tools
-------- Running "update_depot_tools.bat" in "C:\Users\Gilford\Desktop\buildcef\
download\depot_tools"...
Installing python 2.7.6...
Fetching from https://storage.googleapis.com/chrome-infra/python276_bin.zip
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
GET https://chrome-infra-packages.appspot.com/_ah/api/repo/v1/client?instance_id
=bccdb9a605037e3dd2a8a64e79e08f691a6f159d&package_name=infra%2Ftools%2Fcipd%2Fwi
ndows-amd64
CIPD client binary info:
{
  "client_binary":{
    "fetch_url":"https://storage.googleapis.com/chrome-infra-packages/store/SHA1
/80bf92a4279f18dcfd775f7d7b9b8857cbdc07ca?GoogleAccessId=446031626781-otmjovfqg0
9mmp9a1v7sbk1827e9k38f%40developer.gserviceaccount.com&Expires=1477968171&Signat
ure=w6xu0JhGCs7v6pJCpxZpl%2BjE95ZDQmmrbR6XRlvhXW7QyrbA%2BXiBubX4lcOxt10CKdpW7DL7
ousoK3TBCgUVuH%2FnoXXoIQDIytko0MfYg2O7VYdC%2BDc6alBNPgcz0nv1yLZRak%2B5kjYywPaBuT
5KT5DJFo1wKnXOvCcG3PW20fk%3D",
    "sha1":"80bf92a4279f18dcfd775f7d7b9b8857cbdc07ca",
    "size":"12682240"
  },
  "etag":"\"hEBSnOc2yRu7qFkyDJD9yGeM11A/n1UiwBS_eeKtLPNgEIdA_lGguRs\"",
  "instance":{
    "instance_id":"bccdb9a605037e3dd2a8a64e79e08f691a6f159d",
    "package_name":"infra/tools/cipd/windows-amd64",
    "registered_by":"user:446450136466-p1anmb0n337qhh7u5sfsrbaq95ieks9p@develope
r.gserviceaccount.com",
    "registered_ts":"1464368295653400"
  },
  "kind":"repo#resourcesItem",
  "status":"SUCCESS"
}
GET https://storage.googleapis.com/chrome-infra-packages/store/SHA1/80bf92a4279f
18dcfd775f7d7b9b8857cbdc07ca?GoogleAccessId=446031626781-otmjovfqg09mmp9a1v7sbk1
827e9k38f%40developer.gserviceaccount.com&Expires=1477968171&Signature=w6xu0JhGC
s7v6pJCpxZpl%2BjE95ZDQmmrbR6XRlvhXW7QyrbA%2BXiBubX4lcOxt10CKdpW7DL7ousoK3TBCgUVu
H%2FnoXXoIQDIytko0MfYg2O7VYdC%2BDc6alBNPgcz0nv1yLZRak%2B5kjYywPaBuT5KT5DJFo1wKnX
OvCcG3PW20fk%3D
Fetched CIPD client infra/tools/cipd/windows-amd64:bccdb9a605037e3dd2a8a64e79e08
f691a6f159d at C:\Users\Gilford\Desktop\buildcef\download\depot_tools\cipd
[P7424 09:42:53.201 client.go:945 I] Packages to be installed:
[P7424 09:42:53.204 client.go:947 I]   infra/depot_tools/git_installer/windows-a
md64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7424 09:42:53.215 client.go:824 I] cipd: resolving fetch URL for infra/depot_t
ools/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7424 09:42:53.485 storage.go:249 I] cipd: initiating the fetch
[P7424 09:42:54.256 storage.go:214 I] cipd: about to fetch 29.4 Mb
[P7424 09:42:54.257 storage.go:205 I] cipd: fetching - 0%
[P7424 09:42:59.260 storage.go:205 I] cipd: fetching - 88%
[P7424 09:42:59.855 storage.go:205 I] cipd: fetching - 100%
[P7424 09:42:59.855 storage.go:205 I] cipd: fetching - 100%
[P7424 09:42:59.858 storage.go:221 I] cipd: fetch finished successfully
[P7424 09:42:59.860 client.go:779 I] cipd: successfully fetched infra/depot_tool
s/git_installer/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362
[P7424 09:42:59.946 deployer.go:131 I] Deploying infra/depot_tools/git_installer
/windows-amd64:aa854a934e4d7fb24cc10b5d8b6f105494e16362 into c:\users\ct-admin\a
ppdata\local\temp\tmpb3jnnz
[P7424 09:43:00.013 fs.go:290 W] fs: failed to rename(c:\users\ct-admin\appdata\
local\temp\tmpb3jnnz\.cipd\pkgs\5zs6D0TNxz\730447766\x, c:\users\ct-admin\appdat
a\local\temp\tmpb3jnnz\.cipd\pkgs\5zs6D0TNxz\aa854a934e4d7fb24cc10b5d8b6f105494e
16362) - Access is denied.
[P7424 09:43:00.014 fs.go:240 W] fs: failed to rename directory c:\users\ct-admi
n\appdata\local\temp\tmpb3jnnz\.cipd\pkgs\5zs6D0TNxz\730447766 - Access is denie
d.
[P7424 09:43:00.017 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\\ct-admin\\appdata\
\local\\temp\\tmpumwhcn', '-root', 'c:\\users\\ct-admin\\appdata\\local\\temp\\t
mpb3jnnz']' 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:\Users\Gilford\Desktop\buildcef\automate-git.py", line 698, in <module
>
    depot_tools_dir)
  File "C:\Users\Gilford\Desktop\buildcef\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>

It seems that it is necessary to run with administrator account. Unfortunately, my company is pretty adamant not to allow any staff to have administrator account on their machine. So any idea on working out with just standard user account?
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

Re: [SOLVED] Build CEF with proprietary codecs support

Postby gorvinsky » Mon Oct 31, 2016 9:50 pm

I apologize for spamming with questions but uh, I begin to think that it's not permission or user account type issue anymore. Even with standard user account, I actually have access/permission to create and rename directory in appdata\local\temp. Furthermore, I have just tried running the script again with administrator user account and it still encountered the same error where it failed to rename a directory in appdata\local\temp and that access is denied.

In case you are wondering, I gotten the automate-git.py script from https://bitbucket.org/chromiumembedded/ ... ate-git.py

I suspect that there is some flaw or bug in the automate-git.py but I'm not certain. Help, anyone?
gorvinsky
Newbie
 
Posts: 9
Joined: Mon Oct 31, 2016 1:55 am

PreviousNext

Return to Support Forum

Who is online

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

cron