deepmedia / Transcoder

🎞 Hardware-accelerated video transcoding using Android MediaCodec APIs. Supports cropping, concatenation, clipping, audio processing, video speed and much more.
https://opensource.deepmedia.io/transcoder
Apache License 2.0
785 stars 167 forks source link

Setting dataSource fails with 0x80000000 on Samsung devices #208

Open kackogut opened 3 weeks ago

kackogut commented 3 weeks ago

When trying to parse the .mov file on some devices Transcoder fails with: java.lang.RuntimeException: setDataSource failed: status = 0x80000000

Transcoder.into(resultFileAbsolutePath)
            .addDataSource(sourceFileAbsolutePath)
            .setVideoTrackStrategy(videoStrategy)
            .setListener(new TranscoderListener()
            {

I had the same error when trying to get file bitrate using mediaMetadataRetriever.setDataSource(sourceFileAbsolutePath()); so I guess you are using something simillar. But when I get the bitrate Transcoder and the library fails anyway.

I tried setting the dataSource different way, like using FileDescriptor but it doesn't work.

It works correctly on most devices that I tested with, but always fails on Samsung devices that I tested on:

natario1 commented 3 weeks ago

Can you attach the file?