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

"Multiple renderer media clocks enabled" when use ffmpeg-extensions with all audio format #9753

Closed
DorisGM opened this issue Dec 3, 2021 · 4 comments
Assignees
Labels

Comments

@DorisGM
Copy link

DorisGM commented Dec 3, 2021

When I found our app occur "Multiple renderer media clocks enabled" bug. I update to the lastest version exoplayer (2.16.1) as #9675 . But i found it still occur when i use ffmpeg-extensions with all audio format.

2021-12-03 18:19:59.597 13693-14005/com.tv E/ExoPlayerImplInternal: Playback error
      com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
        at com.google.android.exoplayer2.DefaultMediaClock.onRendererEnabled(DefaultMediaClock.java:96)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderer(ExoPlayerImplInternal.java:2454)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2402)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2386)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handlePeriodPrepared(ExoPlayerImplInternal.java:2216)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:505)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:193)
        at android.os.HandlerThread.run(HandlerThread.java:65)
     Caused by: java.lang.IllegalStateException: Multiple renderer media clocks enabled.
        at com.google.android.exoplayer2.DefaultMediaClock.onRendererEnabled(DefaultMediaClock.java:96) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderer(ExoPlayerImplInternal.java:2454) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2402) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2386) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handlePeriodPrepared(ExoPlayerImplInternal.java:2216) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:505) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.os.HandlerThread.run(HandlerThread.java:65) 
2021-12-03 18:19:59.612 13693-13693/com.excellence.premium.tv E/EventLogger: playerFailed [eventTime=7.19, mediaPos=0.00, window=0, period=0, errorCode=ERROR_CODE_UNSPECIFIED
      com.google.android.exoplayer2.ExoPlaybackException: Unexpected runtime error
        at com.google.android.exoplayer2.DefaultMediaClock.onRendererEnabled(DefaultMediaClock.java:96)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderer(ExoPlayerImplInternal.java:2454)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2402)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2386)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handlePeriodPrepared(ExoPlayerImplInternal.java:2216)
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:505)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:193)
        at android.os.HandlerThread.run(HandlerThread.java:65)
     Caused by: java.lang.IllegalStateException: Multiple renderer media clocks enabled.
        at com.google.android.exoplayer2.DefaultMediaClock.onRendererEnabled(DefaultMediaClock.java:96) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderer(ExoPlayerImplInternal.java:2454) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2402) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.enableRenderers(ExoPlayerImplInternal.java:2386) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handlePeriodPrepared(ExoPlayerImplInternal.java:2216) 
        at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:505) 
        at android.os.Handler.dispatchMessage(Handler.java:102) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.os.HandlerThread.run(HandlerThread.java:65) 
    ]

Enviorment:

  • ExoPlayer version number : 2.16.1
  • Android version: 9.0
  • Android device Amlogic S905X
@DorisGM
Copy link
Author

DorisGM commented Dec 3, 2021

By the way , I already send the ts file to dev.exoplayer@gmail.com. Please check it. Thanks.

@ojw28
Copy link
Contributor

ojw28 commented Dec 3, 2021

Are you specifying any track selection overrides to DefaultTrackSelector, or does this happen just by trying to play the content without doing this? Can you reproduce it in the ExoPlayer demo app?

@ojw28 ojw28 self-assigned this Dec 3, 2021
@DorisGM
Copy link
Author

DorisGM commented Dec 6, 2021

We don't specifying any track selection overrides to DefaultTrackSelector. I can't reproduce by the exoplayer demo app with decoderwithExtensionsDebug (build variant). But i want to know when i build app with withdecoderwithExtensionsDebug ,does it include all video format by ffmepg extensions? Because of I found only when our app include ffmpeg extensions with all video format, the video can't play

@DorisGM
Copy link
Author

DorisGM commented Dec 6, 2021

Thanks for you tips. I found us set track multiple. I'll close this issue

@DorisGM DorisGM closed this as completed Dec 6, 2021
@google google locked and limited conversation to collaborators Feb 5, 2022
@ojw28 ojw28 removed the needs triage label Mar 6, 2022
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

3 participants