Re: [chromium-dev] Re: Building ffmpeg with hevc support

742 views
Skip to first unread message

Dale Curtis

unread,
Aug 15, 2016, 12:41:28 PM8/15/16
to brightne...@gmail.com, Chromium-dev
You'll need to modify the build_ffmpeg.py script to generate the configuration files you want for all the platforms you intend to run on. Afterward, you'll need to follow many of the steps in the README section on handling an upstream merge; which has details on how we update ffmpeg in Chrome. The key additional ones are using copy_config and generate_gyp (specify -g for gn; we haven't fixed the defaults yet). You may also need to set enable_hevc_demuxing=true as well.

https://cs.chromium.org/chromium/src/third_party/ffmpeg/README.chromium

Note: Since this is a configuration that Chrome/Chromium has no intention to support, it may break at any time. Good luck!

- dale

On Fri, Aug 12, 2016 at 11:17 AM, Sergey Podatelev <brightne...@gmail.com> wrote:
Actually, one thing that might help, is to enable all possible demuxers/decoders/parsers, — I don't care about licensing at this moment, and only evaluating the media support.
Is there an easy way to do this when building ffmpeg?


On Friday, August 12, 2016 at 9:09:03 PM UTC+3, Sergey Podatelev wrote:
Hello all,

I'm trying to build a ffmpeg.dylib for Chromium with hevc/h265 support enabled.
Here's my build process:

export GYP_GENERATORS=ninja; export GYP_DEFINES="branding=Chrome ffmpeg_component=shared_library"; export PYTHONPATH="$PWD/build";./tools/gyp/gyp -I build/common.gypi --depth=. ./third_party/ffmpeg/ffmpeg.gyp


ninja -v -C out/Release ffmpeg


I'm testing some .avi / .mkv files with Chromium player after the build, and get mixed results: sometimes I have no sound, sometimes I get no video.

The problem is that not only I'm not sure, where to set the needed flags/update config. files, but also I can't even find a build log that would provide the information about build flags, so I at least know, how the build was configured.

Can someone please point me to where I can find the more verbose build logs, and where to set the build config. options that are needed?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Sergey Podatelev

unread,
Aug 15, 2016, 12:47:48 PM8/15/16
to Chromium-dev, brightne...@gmail.com
Thank you Dale for such an elaborate answer.
I managed to build the way I need it, and now I'm indeed struggling with wiring hevc decoding through ffmpeg on desktop. Do you think there's someone I can reach out to on this topic?
Reply all
Reply to author
Forward
0 new messages