New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592114 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 571155



Sign in to add a comment

Implement MojoDemuxerStream::EnableBitstreamConverter

Project Member Reported by alokp@chromium.org, Mar 4 2016

Issue description

We need to enable it for AAC and H264 on chromecast hardware decoders.

The current CmaRenderer enables the bitstream converter here:
https://code.google.com/p/chromium/codesearch#chromium/src/chromecast/renderer/media/cma_renderer.cc&sq=package:chromium&q=cmarender&l=278
https://code.google.com/p/chromium/codesearch#chromium/src/chromecast/renderer/media/cma_renderer.cc&sq=package:chromium&q=cmarender&l=342

It might simply be a matter of adding this API to media.interfaces.DemuxerStream.
 
Yeah, we actually have EnableBitstreamConverter() in media::DemuxerStream. This makes a lot of sense.

Comment 2 by alokp@chromium.org, Mar 7 2016

While it may be quite easy to simply expose media::DemuxerStream::EnableBitstreamConverter as a mojo media.interfaces.DemuxerStream API, but I find EnableBitstreamConverter interface a bit weird:

There is no way to disable BitStreamConverter once enabled. While the current renderers/decoders enable it based on the current decoder config, it seems to be designed with the assumption that a particular decoder will always need it irrespective of the type of decoder config. In fact FFmpegDemuxerStream::InitBitstreamConverter already checks the codec if and enables it for only AAC, H264, and HEVC.

It might make sense to just add media::DemuxerStream::Initialize(bool enable_bitstream_converter) and let the implementation for DemuxerStream handle enable/disable bitstream conversion internally.

Comment 4 by alokp@chromium.org, Mar 8 2016

Status: Fixed (was: Assigned)

Sign in to add a comment