Skip to content

Conversation

maff91
Copy link

@maff91 maff91 commented Nov 4, 2020

See issue #107

Starting with Android 11 (tested on the emulator x86_64 and Pixel 2) apparently MediaMuxer is automatically stopped in the native code when receiving empty "End of stream" buffer.

Therefore, when joining multiple clips the mixer gets stoped after receiving the last buffer of the first file. After it can't receive any more data and fails with
E/MediaAdapter: pushBuffer called before start
and then
java.lang.IllegalStateException: writeSampleData returned an error

Solution: Don't feed "End of stream" buffers io the muxer.

Thank you, appreciate any feedback 😁

Android 11 stops automatically when receives one.
@maff91 maff91 force-pushed the fix-android-11-join-videos branch from 3b25120 to 6e44d91 Compare November 22, 2020 14:09
NiekAkerboom referenced this pull request in NiekAkerboom/Transcoder Jan 7, 2021
Android 11 stops automatically when it receives
one. This commit has been copied from
https://github.com/natario1/Transcoder/pull/108
Base automatically changed from master to main March 17, 2021 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant