-
Notifications
You must be signed in to change notification settings - Fork 6k
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
How to extends DefaultHlsExtractorFactory? #5109
Comments
You can't extend it because it's final. But if you'd like to reuse the functionality, consider wrapping it in a new HlsExtractorsFactory. |
@tonihei actually i'd like to see example of realizing this #4861 (comment). |
These flags can be set when creating the DefaultHlsExtractorFactory in the constructor. Does that help? |
@tonihei May i use 2 flags for DefaultHlsExtractorFactory() constructor? |
Yes, these flags can be combined using the |
@tonihei i did: 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.t(SourceFile:479) 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.D(SourceFile:1261) 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.b(SourceFile:1111) 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.b(SourceFile:552) 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.a(SourceFile:647) 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:4536) 11-20 09:38:52.390 23124 23124 W System.err: at android.os.Handler.dispatchMessage(Handler.java:107) 11-20 09:38:52.390 23124 23124 W System.err: at android.os.Looper.loop(Looper.java:207) 11-20 09:38:52.390 23124 23124 W System.err: at android.os.HandlerThread.run(HandlerThread.java:61) 11-20 09:38:52.390 23124 23124 W System.err: Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, Format(0, null, null, video/avc, avc1.4D0032, -1, null, [2688, 1520, -1.0], [-1, -1]) 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.a(SourceFile:753) 11-20 09:38:52.390 23124 23124 W System.err: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.t(SourceFile:474) 11-20 09:38:52.390 23124 23124 W System.err: ... 8 more 11-20 09:38:52.390 23124 23124 W System.err: Caused by: android.media.MediaCodec$CodecException: Error 0x80001001 11-20 09:38:52.391 23124 23124 W System.err: at android.media.MediaCodec.native_configure(Native Method) 11-20 09:38:52.391 23124 23124 W System.err: at android.media.MediaCodec.configure(MediaCodec.java:1791) 11-20 09:38:52.391 23124 23124 W System.err: at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.a(SourceFile:483) 11-20 09:38:52.391 23124 23124 W System.err: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.a(SourceFile:8805) 11-20 09:38:52.391 23124 23124 W System.err: ... 9 more 11-20 09:38:52.391 23124 23124 I ExoPlayerImpl: Release 373346c [ExoPlayerLib/2.9.1] [F3311, F3311, Sony, 23] [goog.exo.core, goog.exo.ui, goog.exo.hls]` |
Looks like your device may just not support this format. It would be helpful to get the output of the EventLogger. Can you attach one with |
`11-21 12:02:32.386 21141 21141 E EventLogger: playerFailed [0.68, 0.00, window=0] 11-21 12:02:32.386 21141 21141 E EventLogger: com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, Format(0, null, null, video/avc, avc1.4D0032, -1, null, [2688, 1520, -1.0], [-1, -1]) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.t(SourceFile:479) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.D(SourceFile:1261) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.b(SourceFile:1111) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.b(SourceFile:552) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.a(SourceFile:647) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(SourceFile:4536) 11-21 12:02:32.386 21141 21141 E EventLogger: at android.os.Handler.dispatchMessage(Handler.java:107) 11-21 12:02:32.386 21141 21141 E EventLogger: at android.os.Looper.loop(Looper.java:207) 11-21 12:02:32.386 21141 21141 E EventLogger: at android.os.HandlerThread.run(HandlerThread.java:61) 11-21 12:02:32.386 21141 21141 E EventLogger: Caused by: com.google.android.exoplayer2.mediacodec.MediaCodecRenderer$DecoderInitializationException: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, Format(0, null, null, video/avc, avc1.4D0032, -1, null, [2688, 1520, -1.0], [-1, -1]) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.a(SourceFile:753) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.t(SourceFile:474) 11-21 12:02:32.386 21141 21141 E EventLogger: ... 8 more 11-21 12:02:32.386 21141 21141 E EventLogger: Caused by: android.media.MediaCodec$CodecException: Error 0x80001001 11-21 12:02:32.386 21141 21141 E EventLogger: at android.media.MediaCodec.native_configure(Native Method) 11-21 12:02:32.386 21141 21141 E EventLogger: at android.media.MediaCodec.configure(MediaCodec.java:1791) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.video.MediaCodecVideoRenderer.a(SourceFile:483) 11-21 12:02:32.386 21141 21141 E EventLogger: at com.google.android.exoplayer2.mediacodec.MediaCodecRenderer.a(SourceFile:8805) 11-21 12:02:32.386 21141 21141 E EventLogger: ... 9 more 11-21 12:02:32.387 21141 21141 I ExoPlayerImpl: Release 695c710 [ExoPlayerLib/2.9.1] [F3311, F3311, Sony, 23] [goog.exo.core, goog.exo.ui, goog.exo.hls] 11-21 12:02:32.387 21141 21141 E debug exoplayer: TYPE_RENDERER: Decoder init failed: OMX.MTK.VIDEO.DECODER.AVC, Format(0, null, null, video/avc, avc1.4D0032, -1, null, [2688, 1520, -1.0], [-1, -1])` If i missed something, here is full log file log android6.txt |
There should be more logging especially about tracks, state changes etc. Can you enable the INFO log level for the output? Or even better, provide a full bugreport (with "adb bugreport"). |
There was not any state changes as i think, playback does not start. We have "loading" and then onPlayerError. |
I hope this helps bugreport-2018-11-22-11-12-54.txt |
That bug report doesn't contain the failing playback. Can you try to get one immediately after the error occured? And also with the EventLogger attached. |
I did: I get: XML Stream specifications: |
The logs still don't tell anything new. But as said above, I suspect the device doesn't support the video resolution (2688x1520) and there is probably nothing we can do about that. |
Well, i took logs from Logcat. Why there does not shows what you need? And may be we have to correct our m3u8 for success on this phone? I also need to fix to not receive onPlayerError on other devices. I get it so often. |
We can't help you with content creation, but it's usually a good idea to have multiple formats (including low-res formats) such that all devices support at least one of them.
I was looking for the list of available formats and whether they are supported. This list should be reported when using the EventLogger. But it's not part of your logs. |
What should i do besides this: |
Have you done this before calling |
Now I did addAnalyticsListener after prepare. |
Everywhere just write that it solves some problems with hls streams (#3712 (comment)). But how to realize this? Can somebody show the example?
The text was updated successfully, but these errors were encountered: