Skip to content

Library completely broken since 0.10.0 on some devices #138

@alaegin

Description

@alaegin

Hello!
We have just started to use this library and realized that it's completely broken on some devices since 0.10.0.

Prerequisites:

  • CameraView library for video recording. Default settings with Camera2 Engine.
  • OnePlus 5 and OnePlus 7 Pro. Both use Android 10. (Also tested on Honor 9X (STK-LX1) and it works fine there).

The main problem is that the library crashes unexpectedly in some cases or transcode video with artifacts.

  • 0.9.1 works fine
  • 0.10.0 - 0.10.2 print Validator has decided that the input is fine and transcoding is not necessary. and don't transcode video at all. Link
  • 0.10.3 fails with several random issues listed below

We have several cases:

  1. Library crashes with exception java.lang.IllegalStateException: Failed to stop the muxer. Link
  2. Library crashes with exception TranscodeEngine: Unexpected error while transcoding. java.nio.BufferOverflowException. Link
  3. Library transcode video with artifacts. Link to video

The code we use to call Transcoder:

Transcoder.into(filesProvider.getTempResultFile().absolutePath)
    .apply {
        files.forEach { addDataSource(it.absolutePath) }
    }
    .setListener(...)
    .transcode().get()

It seems that rewriting #118 of the transcoder pipeline broke something important.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions