Can I build chromium with ffmpeg to support all video formats?

旧巷老猫 提交于 2019-12-04 15:08:01

If you are building Chromium using the official build instruction, then you just need to add the following options to the args.gn file:

proprietary_codecs=true
ffmpeg_branding="Chrome"

You needn't to use ffmpeg to support all video formats.

Like Vladimir said, follow the official build instructions and the audio/video page.

@Vladimir: I don't think you can enable support of the video & audio formats that aren't supported by Google Chrome.

Yes, you can. We compile Chromium with all codecs (AVC/H.264, HEVC/H.265, MPEG-4...) and can open many other file types (MOV, AVI, MKV, M2TS...). Follow our instructions (GN flags) and you will be able to build Chromium with all codecs. HEVC/H.265 is more complex. Check Chromium binaries and file type checker. All is completely free and open-source. Do it yourself! ;)

For QtWebEngine all you need to do is configure Qt to enable proprietary codecs using -proprietary-codecs (< Qt 5.12) or -webengine-proprietary-codecs (Qt 5.12+)

If you additional configure with -system-webengine-ffmpeg you will also use the system FFmpeg with all the codecs it supports. It still won't support any container formats Chrome doesn't though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!