Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 286
Staggan Avatar asked Jun 03 '26 18:06

Staggan


2 Answers

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.

like image 68
Rakesh Guranani Avatar answered Jun 07 '26 10:06

Rakesh Guranani


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

like image 29
aergistal Avatar answered Jun 07 '26 12:06

aergistal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!