shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

Support for FLAC in ISO-BMFF #39

Open bnge opened 5 years ago

bnge commented 5 years ago

Shaka-player on Chrome enables playback of encrypted FLAC in ISO-BMFF, will that also be a feature of shaka-player-embedded when it's out of beta?

TheModMaker commented 5 years ago

It is probably supported now, you just need to enable the codec from FFmpeg using the --codecs flag to ./configure. We limit the default codecs to H.264 and AAC by default since (a) those are the only ones we've tested hardware decode on and (b) they are the most common and reduces binary size. But you can enable any codec FFmpeg supports and there's a good chance it will work:

./configure --codecs h264,flac ...

Encryption support should only depend on the container, and we support encrypted MP4, so again it should work. Does it work for you? Can you provide any example content?

bnge commented 5 years ago

Excellent! I haven't tried it out, but I can provide example content within a day or two.

bnge commented 5 years ago

@TheModMaker I sent you an email with some example content.

bnge commented 5 years ago

Just an update as I've started testing a bit. Playback of FLAC in ISO-BMFF does work according to the pointers given by @TheModMaker above. I haven't tested with protected content yet, though.