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

Unable to play AC3 URL using ffmpeg extension even after compiling the ffmpeg extension successfully #5788

Closed
rishabh14augshukla opened this issue Apr 22, 2019 · 3 comments

Comments

@rishabh14augshukla
Copy link

rishabh14augshukla commented Apr 22, 2019

Issue description

Unable to play AC3 URL using ffmpeg extension even after compiling the ffmpeg extension successfully.
I have successfully compiled the ffmpeg extension locally but when I am trying to play AC3 HLS URL. It is not calling FfmpegAudioRenderer.

Reproduction steps

I have followed all the instruction which is mentioned in the following link
https://github.com/google/ExoPlayer/tree/release-v2/extensions/ffmpeg
To setup ffmpeg extension locally and able to compile it locally successfully.

Also, set the extensionRendererMode parameter of the DefaultRenderersFactory constructor to EXTENSION_RENDERER_MODE_ON and EXTENSION_RENDERER_MODE_PREFER to give FfmpegAudioRenderer priority over MediaCodecAudioRenderer.

But still unable to hear the audio and able to play video.

Please let us know what we are missing here to play the AC3 URL or what we should suppose to do in terms of code changes.

Link to test content

https://www.hdpvrcapture.com/hdpvrcapture/samples/20090227_233850-H.264.m2ts.mp4

A full bug report captured from the device

We are only getting the toast message "Media includes audio track but none are playable by this device". We are not getting any error and exception.

Version of ExoPlayer being used

Using the latest version of the ExoPlayer v2.

Device(s) and version(s) of Android being used

Using the Samsung S7 and Nokia 8 devices they having the Android 8 and 9 version.

@ojw28
Copy link
Contributor

ojw28 commented Apr 23, 2019

That would normally indicate either that the extension is not being loaded correctly, or that FFmpeg was not compiled to include the AC3 decoder. Please:

  • Attach or email (to [email protected]) a full bug report captured using the ExoPlayer demo app shortly after an attempted playback. Such a bug report includes more useful information than you've provided.
  • Please try attaching a debugger and adding logging and break points in FfmpegAudioRenderer.supportsFormatInternal. Establishing which return statement is executed will help to diagnose the problem.

@andrewlewis - Should we add some logging to FfmpegAudioRenderer.supportsFormatInternal (and similar methods in other renderers that are using bundled software codecs) to indicate what the problem is, to make debugging this type of issue simpler in future?

ojw28 pushed a commit that referenced this issue Apr 26, 2019
ojw28 pushed a commit that referenced this issue Apr 26, 2019
@ojw28
Copy link
Contributor

ojw28 commented May 6, 2019

@rishabh14augshukla - Did you try the suggestions above?

@andrewlewis
Copy link
Collaborator

Closing due to inactivity. The commits referenced above mean that we log more useful diagnostic information for some cases where the extension fails to initialize.

@google google locked and limited conversation to collaborators Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants