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

FfmpegAudioRenderer doesn't skip incorrect frames but fails #5293

Closed
tipoc123 opened this issue Dec 21, 2018 · 1 comment
Closed

FfmpegAudioRenderer doesn't skip incorrect frames but fails #5293

tipoc123 opened this issue Dec 21, 2018 · 1 comment
Assignees

Comments

@tipoc123
Copy link

Issue description

I use ffmpeg extension. Player hangs up (at missed frames) if we use FfmpegAudioRenderer. But player behaves correctly (shows only artifacts and continues to play further) if we use MediaCodecAudioRenderer.

I recorded videos:
FfmpegAudioRenderer - https://yadi.sk/i/MiRAgs7ovRQ74g
MediaCodecAudioRenderer - https://yadi.sk/i/JBo-YWlR8LdLzA

Logcat shows:

12-21 19:44:14.257 E/ffmpeg_jni( 3400): Error in avcodec_send_packet: Invalid data found when processing input
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): Playback error.
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): com.google.android.exoplayer2.ExoPlaybackException: com.google.android.exoplayer2.ext.ffmpeg.FfmpegDecoderException: Error decoding (see logcat). Code: -1094995529
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.audio.SimpleDecoderAudioRenderer.render(SimpleDecoderAudioRenderer.java:303)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:536)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:303)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at android.os.Handler.dispatchMessage(Handler.java:98)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at android.os.Looper.loop(Looper.java:154)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at android.os.HandlerThread.run(HandlerThread.java:61)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): Caused by: com.google.android.exoplayer2.ext.ffmpeg.FfmpegDecoderException: Error decoding (see logcat). Code: -1094995529
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.ext.ffmpeg.FfmpegDecoder.decode(FfmpegDecoder.java:110)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.ext.ffmpeg.FfmpegDecoder.decode(FfmpegDecoder.java:33)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.decoder.SimpleDecoder.decode(SimpleDecoder.java:224)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.decoder.SimpleDecoder.run(SimpleDecoder.java:189)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.decoder.SimpleDecoder.access$000(SimpleDecoder.java:25)
12-21 19:44:14.267 E/ExoPlayerImplInternal( 3400): 	at com.google.android.exoplayer2.decoder.SimpleDecoder$1.run(SimpleDecoder.java:67)

Link to test content

http://stand.netup.tv/downloads/T2965/manifest.m3u8

Version of ExoPlayer being used

2.9.1

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

STB MiniA5X_Plus (chipset RK 3328)
Android 7.1.1

A full bug report captured from the device

bugreport.txt.zip

ojw28 pushed a commit that referenced this issue Jan 8, 2019
Also configure the FFmpeg context to ignore errors as far as possible (this
appears to have an effect only for certain decoders).

Issue: #5293
PiperOrigin-RevId: 227851397
@tipoc123
Copy link
Author

tipoc123 commented Jan 9, 2019

It's working with dev-v2. Thanks.

We are waiting for the next release 2.9.4.

ojw28 pushed a commit that referenced this issue Jan 15, 2019
Also configure the FFmpeg context to ignore errors as far as possible (this
appears to have an effect only for certain decoders).

Issue: #5293
PiperOrigin-RevId: 227851397
@google google locked and limited conversation to collaborators May 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants