Page 1 of 1

need to intégrate the h264 support to CEF

PostPosted: Thu May 23, 2019 4:31 am
by tgayet
Hello,

I have successfully builded the CEF3 browser and it works fine.

However, I need to integrate the H264 support to work only webrtc. For compilation, I followed this page: https://bitbucket.org/chromiumembedded/ ... QuickStart

The test with the test page https://html5test.com/ tells me support for ogg, etc. webM (vp8 / vp9). However I have no support for either mpeg-4 or h264 / 5.

As shown on the following page (date of 2017): https://stackoverflow.com/questions/438 ... st-version, it seems possible to integrate the support I miss it (especially h264) at CEF3. It seems indeed, that the libraries ffmpeg (libavconf, libavformat, libcodec, ....) can be integrated with CEF. What about the x264 library?

I thought I read on the internet that the support for h264 was reserved for chrome, but what about for CEF?

Has anyone managed to integrate h264 support on a recent branch?

Thank you in advance for any feedback or detail that would allow me to move forward.

cordially

Thierry GAYET

Re: need to intégrate the h264 support to CEF

PostPosted: Thu May 23, 2019 5:26 am
by ndesktop
It probably means you need to reconfigure the GN (or GYP, if you are building an old version) to allow codecs.

Latest thread (for an old branch, 2623) here.
There are also a handful of other threads related to H.264 codec enabling in recent branches.

Re: need to intégrate the h264 support to CEF

PostPosted: Fri May 24, 2019 9:05 am
by tgayet
Just to say that i have made a cef binary that well support h264.

Indeed, i have used the following flags :

Code: Select all
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
ffmpeg_branding="Chrome"
is_debug=true
media_use_ffmpeg=true
media_use_libvpx=true
use_pulseaudio=true
rtc_include_pulse_audio=true
proprietary_codecs=true
rtc_use_h264=true
use_openh264=true

Re: need to intégrate the h264 support to CEF

PostPosted: Fri May 22, 2020 2:31 pm
by fqyyang
I once used the method mentioned in this link https://stackoverflow.com/questions/295 ... -framework to support H264 (such as youtube live show video). But recently I used official release from this link http://opensource.spotify.com/cefbuilds/index.html to build my application (The reason why I switched to use official release is that latest source code is using libc++ which will conflict my MSVC application). So my question is that how to integrate H264 for the official release from http://opensource.spotify.com/cefbuilds/index.html .

Re: need to intégrate the h264 support to CEF

PostPosted: Fri May 22, 2020 3:11 pm
by magreenblatt
fqyyang wrote:I once used the method mentioned in this link https://stackoverflow.com/questions/295 ... -framework to support H264 (such as youtube live show video). But recently I used official release from this link http://opensource.spotify.com/cefbuilds/index.html to build my application (The reason why I switched to use official release is that latest source code is using libc++ which will conflict my MSVC application). So my question is that how to integrate H264 for the official release from http://opensource.spotify.com/cefbuilds/index.html .

The only way to enable H264 is by building CEF/Chromium yourself.

Re: need to intégrate the h264 support to CEF

PostPosted: Tue May 26, 2020 7:04 pm
by fqyyang
Thanks a lot for the response. Could you please also show mew how to build libcef_dll_wrapper withou linking against libc++

Re: need to intégrate the h264 support to CEF

PostPosted: Wed Aug 04, 2021 12:10 pm
by schandra09net
tgayet wrote:Just to say that i have made a cef binary that well support h264.

Indeed, i have used the following flags :

Code: Select all
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
ffmpeg_branding="Chrome"
is_debug=true
media_use_ffmpeg=true
media_use_libvpx=true
use_pulseaudio=true
rtc_include_pulse_audio=true
proprietary_codecs=true
rtc_use_h264=true
use_openh264=true


Hi @tgayet,

Thanks for the info.
After compiling with these flags, the compiled libcef.dll is with H264 or CISCO OpenH264? any licensing cost associated with it?

Re: need to intégrate the h264 support to CEF

PostPosted: Wed Aug 04, 2021 1:37 pm
by magreenblatt
schandra09net wrote:
tgayet wrote:Just to say that i have made a cef binary that well support h264.

Indeed, i have used the following flags :

Code: Select all
# Build arguments go here.
# See "gn args <out_dir> --list" for available build arguments.
ffmpeg_branding="Chrome"
is_debug=true
media_use_ffmpeg=true
media_use_libvpx=true
use_pulseaudio=true
rtc_include_pulse_audio=true
proprietary_codecs=true
rtc_use_h264=true
use_openh264=true


Hi @tgayet,

Thanks for the info.
After compiling with these flags, the compiled libcef.dll is with H264 or CISCO OpenH264? any licensing cost associated with it?

H264. You need to pay licensing costs.