deepmedia / deepmedia/Transcoder

Setting dataSource fails with 0x80000000 on Samsung devices

Open
#208 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
864
Forks
181
PR merge metrics
No merged PRs in 30d

Description

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:

- Samsung A14, Android 14
- Samsung Galaxy S8, Android 9

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.