Export to GitHub

chromiumembedded - issue #371

cannot play proprietary audio or video formats


Posted on Oct 10, 2011 by Massive Rhino

What steps will reproduce the problem? 1. open url http://gk.lka.hu/old2/html5/ 2. video,audio test 3. r306

What is the expected output? What do you see instead? audio can not play.

What version of the product are you using? On what operating system? r306, win7

Please provide any additional information below.

Comment #1

Posted on Oct 10, 2011 by Massive Rhino

http://html5test.com/

Comment #2

Posted on Oct 21, 2011 by Quick Horse

CEF only supports open formats. For example, ogg audio plays fine: http://www.w3schools.com/html5/html5_audio.asp

Comment #3

Posted on Nov 2, 2011 by Massive Rhino

Please visit this link: http://html5test.com/

audio + mp3 no support

The result is PCM audio support Yes ✔ MP3 support No ✘ AAC support No ✘ Ogg Vorbis support Yes ✔ WebM support Yes ✔

Comment #4

Posted on Nov 2, 2011 by Massive Rhino

Comment deleted

Attachments

Comment #5

Posted on Nov 2, 2011 by Massive Rhino

One test page.

Attachments

Comment #6

Posted on Nov 2, 2011 by Massive Rhino

avcodec-53.dll avformat-53.dll avutil-51.dll

the version is older ?

I replace them with Chrome'14. Then audio_test.html can work.

Comment #7

Posted on Nov 21, 2011 by Quick Horse

Codecs like MP3 and AAC are included in Google Chrome releases but not Chromium builds. This is because these formats are not open and require licensing. Distributing these codecs with your application without a licensing agreement may violate the law in certain countries. You should discuss with a lawyer if appropriate.

Comment #8

Posted on Dec 5, 2011 by Quick Horse

In order to use proprietary audio and video codecs in Chromium/CEF you need to:

  1. Acquire ffmpeg libraries that support the proprietary codecs.
  2. Add 'proprietary_codecs': 1 to your cef.gypi configuration so that USE_PROPRIETARY_CODECS will be defined as required by net/base/mime_util.cc.

Comment #9

Posted on Jan 22, 2013 by Quick Horse

Issue 849 has been merged into this issue.

Comment #10

Posted on Jan 22, 2013 by Quick Horse

Issue 848 has been merged into this issue.

Comment #11

Posted on Feb 20, 2014 by Quick Horse

Issue 1213 has been merged into this issue.

Comment #12

Posted on Mar 28, 2014 by Helpful Kangaroo

Comment deleted

Comment #13

Posted on Mar 28, 2014 by Helpful Kangaroo

I add that 'proprietary_codecs': 1 to my cef.gypi. and test it with http://html5test.com it works as google chrome and chromium.

But cefclient still can't playback *.mp4 file. it error return code is MEDIA_ERR_SRC_NOT_SUPPORTED : 4

Comment #14

Posted on Jul 23, 2014 by Grumpy Elephant

Hello!

I have the same problem, I want to enable proprietary codecs like MP3, MP4, .... . We were able to add proprietary_codecs=1 to the cef.gypi file, and opening the CefClient app and visiting the http://html5test.com/ website told that the browser support these proprietary codecs, but it failed to playback the files. With the instructions provided by nook from previous replies, I copied the libffmpegsumo.dll file from Chrome next to CefClient, and the video playback just worked.

How can we build the libffmpegsumo.dll with the proprietary codecs in cef? I see some flags that might be useful, but wasn't able to build a libffmpegsumo.dll with the propreitary codecs in it. I've tried the following flags: build_ffmpegsumo use_system_ffmpeg ffmpeg_branding ffmpeg_branding=Chrome

Thanks for the help! Balazs

Comment #15

Posted on Jul 29, 2014 by Quick Horse

@#14: Answered in https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/9EqnUb2fDvg.

Comment #16

Posted on Jan 23, 2015 by Happy Bird

I have the same problem! I don't know how to support mp3 in CEF3. Who can help me?

Comment #17

Posted on Jan 23, 2015 by Happy Bird

My system is windows7-64bit and develop tool is VS2010.

Status: WontFix

Labels:
Type-Defect Priority-Medium