need to intégrate the h264 support to CEF

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

need to intégrate the h264 support to CEF

Postby tgayet » Thu May 23, 2019 4:31 am

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
tgayet
Techie
 
Posts: 27
Joined: Wed Apr 24, 2019 6:53 am

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

Postby ndesktop » Thu May 23, 2019 5:26 am

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.
ndesktop
Master
 
Posts: 748
Joined: Thu Dec 03, 2015 10:10 am

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

Postby tgayet » Fri May 24, 2019 9:05 am

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
tgayet
Techie
 
Posts: 27
Joined: Wed Apr 24, 2019 6:53 am

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

Postby fqyyang » Fri May 22, 2020 2:31 pm

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 .
fqyyang
Newbie
 
Posts: 3
Joined: Fri May 22, 2020 2:24 pm

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

Postby magreenblatt » Fri May 22, 2020 3:11 pm

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.
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm

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

Postby fqyyang » Tue May 26, 2020 7:04 pm

Thanks a lot for the response. Could you please also show mew how to build libcef_dll_wrapper withou linking against libc++
fqyyang
Newbie
 
Posts: 3
Joined: Fri May 22, 2020 2:24 pm

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

Postby schandra09net » Wed Aug 04, 2021 12:10 pm

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?
schandra09net
Newbie
 
Posts: 6
Joined: Mon Aug 02, 2021 10:41 pm

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

Postby magreenblatt » Wed Aug 04, 2021 1:37 pm

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.
magreenblatt
Site Admin
 
Posts: 12379
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 5 guests