How to support dash .mp4 playback and H264 decoder in chromium

955 views
Skip to first unread message

pujari gupta

unread,
Jan 2, 2018, 2:52:04 AM1/2/18
to Chromium-dev
Dear All,

I have build the latest chromium on ubuntu and tried playing the dash mpd available on Dash Js player.
The chrome was throwing " MEDIA_ERR_SRC_NOT_SUPPORTED" error.

The dash manifest has .mp4 container format and H264 video codec and I read ( http://www.chromium.org/audio-video ) that both of this are not supported in chromium.

I am new to chromium source code and not sure how to enable those formats so that I can play the dash mpd content which has video codec H264.

Any help will be really helpful.


Thanks
Pujari

Mounir Lamouri

unread,
Jan 2, 2018, 4:48:28 AM1/2/18
to pujari gupta, Chromium-dev
Hi,

You can turn on proprietary codecs in Chromium builds by adding the followings to your GN args:
proprietary_codecs = true
ffmpeg_branding = "Chrome"

-- Mounir
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google
> Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to chromium-dev...@chromium.org.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/039eb7a7-6a1e-4a59-8286-2e8aa8c62e2f%40chromium.org.

pujari gupta

unread,
Jan 2, 2018, 5:36:06 AM1/2/18
to Chromium-dev, pujari...@gmail.com
Hi Mounir,
Thanks for your reply.

But how and where to set that flags.

I got " proprietary_codecs " flag define inside  "src/build/config/features.gni", I have set that flag to true.
But then I am getting build errors as ffmpeg_branding  is not set I guess.

How do I set ffmpeg_branding to chrome.

Can you please help me.


Thanks
Pujari

PhistucK

unread,
Jan 2, 2018, 5:43:09 AM1/2/18
to pujari...@gmail.com, Chromium-dev
Read this page for the definition of "GN args" -

And follow the reply of Mounir again. :)


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/a01bc8eb-267f-4b94-983c-4b93aa571fec%40chromium.org.

pujari gupta

unread,
Jan 2, 2018, 8:05:25 AM1/2/18
to Chromium-dev, pujari...@gmail.com
Thanks PhistucK and Mounir for your help.

I am able to play the dash mp4 content :)


PhistucK

pujari gupta

unread,
Jan 3, 2018, 5:32:43 AM1/3/18
to Chromium-dev, pujari...@gmail.com
Hi PhistucK and Mounir  ,

I need one more help.
I want to play a widevine encrypted streams on dash Js player.

I can see the widevine library is there inside source of chromium inside third party library, but then how to enable the widevine support.

Google chrome does has the widevine support.

So wondering whether any flag is there which can enable the widevine support.

Thanks
Pujari

PhistucK

unread,
Jan 3, 2018, 5:38:55 AM1/3/18
to pujari gupta, Chromium-dev
I am not a lawyer, but you should make sure you have a right to enable Widevine (same for H.264, obviously).

In terms of technique, you should be able to use the Widevine library that is supplied with Chrome in your Chromium (copy and paste), I believe.


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/e4c85851-fa4c-43e8-950a-f0631a71aca0%40chromium.org.

Archer Dai

unread,
Jan 9, 2019, 12:45:23 PM1/9/19
to Chromium-dev
Hello Pujari,
Have you solved the problem of dash player?

I'm also working on this project. It's okay for me to download M4S using QUIC, but it can't play properly.
Would it be convenient for you to share some details with me?

Thanks
Tongyu


在 2018年1月2日星期二 UTC+8下午3:52:04,pujari gupta写道:
Reply all
Reply to author
Forward
0 new messages