简体   繁体   中英

MP4 codec support in Chromium

We have integrated Chromium Embedded Framework into our Windows game to allow us to render web pages from within our application, and everything works fine, except MP4 videos.

I understand Chromium does not include this codec due to licensing issues, but can anyone provide details on how we can add support, even if we have to license a codec for it.

All the information we can find seems to be old, and the functions referred to appear to be deprecated... so we are at a bit of a loss.

All the video serving networks we have spoken to appear to serve MP4s.. so changing encoding does not seem to be an option.

Any advice would be greatly appreciated.

Thanks

Keep in mind that MP4 is not a codec it's a container format. You need to support all codecs that might be contained in a MP4 file.

In a recent post on a CEF forum someone managed to do it by setting the environmental variable:

GYP_DEFINES="proprietary_codecs=1 ffmpeg_branding=Chrome"

before running the automate-git.py script.

Source: Build CEF with proprietary codecs support

Check this url

Go to menu option Features --> Html5 Audio/Video section. It mentions that Nik's build (66.0.3359.181) has supported Mp4 (and other codecs).

If there is any licensing issues with using H.264/MP4, I am not aware about it, so please check for it before using.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM