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

IllegalArgumentException: bufferInfo must specify a valid buffer offset, size and presentation time #197

Closed
MeiLaoban opened this issue Jul 18, 2024 · 2 comments
Labels
bug Something isn't working needs-info

Comments

@MeiLaoban
Copy link

The problem with android 10 is that there are always errors when the video is nearly compressed.

java.lang.IllegalArgumentException: bufferInfo must specify a valid buffer offset, size and presentation time
at android.media.MediaMuxer.writeSampleData(MediaMuxer.java:682)
at com.otaliastudios.transcoder.sink.DefaultDataSink.writeTrack(DefaultDataSink.java:163)
at com.otaliastudios.transcoder.internal.utils.EosIgnoringDataSink.writeTrack(eos.kt:28)
at com.otaliastudios.transcoder.internal.data.Writer.step(Writer.kt:50)
at com.otaliastudios.transcoder.internal.pipeline.Pipeline.executeStep(Pipeline.kt:51)
at com.otaliastudios.transcoder.internal.pipeline.Pipeline.execute(Pipeline.kt:28)
at com.otaliastudios.transcoder.internal.Segment.advance(Segment.kt:18)
at com.otaliastudios.transcoder.internal.transcode.DefaultTranscodeEngine.transcode(DefaultTranscodeEngine.kt:114)
at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine$Companion.transcode(TranscodeEngine.kt:48)
at com.otaliastudios.transcoder.internal.transcode.TranscodeEngine.transcode(Unknown Source:2)
at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:102)
at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:99)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)

@natario1
Copy link
Member

Can you provide a sample video and the code that you use to replicate the error?

@natario1 natario1 changed the title java.lang.IllegalArgumentException: bufferInfo must specify a valid buffer offset, size and presentation time IllegalArgumentException: bufferInfo must specify a valid buffer offset, size and presentation time Aug 11, 2024
@natario1 natario1 added the bug Something isn't working label Aug 11, 2024
@natario1
Copy link
Member

I think this should be fixed by #159 and #201, let me know if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-info
Projects
None yet
Development

No branches or pull requests

2 participants