Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FORMAT_EXCEEDS_CAPABILITIES for switching tracks #2015

Closed
luxband opened this issue Oct 28, 2016 · 1 comment
Closed

FORMAT_EXCEEDS_CAPABILITIES for switching tracks #2015

luxband opened this issue Oct 28, 2016 · 1 comment
Labels

Comments

@luxband
Copy link

luxband commented Oct 28, 2016

Hi,
Stream has two tracks:
video H264 - MPEG-4 AVC (part 10) (h264) + audio-tracks MPEG Audio layer 1/2 (mpga)
Audio track is defined in exoplayer with flag FORMAT_EXCEEDS_CAPABILITIES.
When playing stream by default - the audio is not played.

Using in TrackSelector.onTrackSelectionsChanged explicitly switch to the audio track by TrackSelector.setSelectionOverride () - the audio track begins playing.

The same approach when playing stream that contains only one audio track (radio) does not always work - audio track not allways plays.
Prompt, in what could be the problem? Can I use tracks with flag FORMAT_EXCEEDS_CAPABILITIES for switching?

  • Exoplayer 2.0.4.
  • Devices on Amlogic S905 & S905X-H, Android 5.1
@ojw28
Copy link
Contributor

ojw28 commented Oct 30, 2016

FORMAT_EXCEEDS_CAPABILITIES indicates that the device has a decoder for the format, but this decoder indicates that it doesn't support the specific properties of the track. For audio this typically means the decoder doesn't support the sample rate + number of channels. For video this typically means the decoder doesn't support the resolution + frame-rate (and profile, in some cases).

If the device reports its capabilities accurately then attempting to enable a track labelled in this way is expected to fail. You can try and force enable it regardless if you think you know better, but as per the previous sentence, you should expect failure in absence of any other information you have.

For the sample stream that does work if you enable it regardless, I suggest you report the issue to Amlogic. If you're using the same streams as #2014, the issue is that the AudioCapabilities for their audio/mpeg-L2 decoder does not claim to support channels=1 and sample_rate=48000.

@ojw28 ojw28 closed this as completed Oct 30, 2016
@ojw28 ojw28 added the question label Oct 30, 2016
@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants