Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Under version Qt5.2, I used QtWebView, it can call third-party extensions automatically to support video formats such as avi, mpeg, mov and flv. But when I upgraded to Qt5.10 and changed QtWebView to QtWebengineView, it worked differently and I couldn't call third-party extensions. If I want to modify chromium source with ffmpeg to support all video formats for QtWebengine, what should I do?

like image 228
Ray Avatar asked Oct 22 '25 16:10

Ray


2 Answers

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! ;)

like image 58
Jerry Avatar answered Oct 26 '25 17:10

Jerry


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"
like image 32
Vladimir Avatar answered Oct 26 '25 17:10

Vladimir



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!