Not working on Redmi note 8 Pro
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 663
- Forks
- 92
- PR merge metrics
- No merged PRs in 30d
Description
```
MediaTransformer mediaTransformer = new MediaTransformer(mContext);
File linkedIn = new File(Environment.getExternalStorageDirectory() + "/kckc.mp4");
String id=String.valueOf(System.currentTimeMillis());
mediaTransformer.transform(id,
Uri.parse(uploadsPostModel.getFile().getAbsolutePath()),
linkedIn.getPath(),
null,
null,
new TransformationListener() {
@Override
public void onStarted(@NonNull String id) {
Log.e("///////", "onStarted");
}
@Override
public void onProgress(@NonNull String id, float progress) {
Log.e("///////", "onProgress" + progress);
}
@Override
public void onCompleted(@NonNull String id, @Nullable List trackTransformationInfos) {
Log.e("///////", "Completed");
}
@Override
public void onCancelled(@NonNull String id, @Nullable List trackTransformationInfos) {
Log.e("///////", "onCancelled");
}
@Override
public void onError(@NonNull String id, @Nullable Throwable cause, @Nullable List trackTransformationInfos) {
Log.e("///////", "onError" + cause);
}
},
MediaTransformer.GRANULARITY_NONE,
null);
```
In Some videos i get error Transformation job error com.linkedin.android.litr.exception.TrackTranscoderException
{color-format=2130708361, i-frame-interval=5, durationUs=2499966, mime=video/avc, profile=8, width=1920, bitrate=-128004, frame-rate=30, height=1080}
And for some video nothing happens any callback from listener is not executing.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the MediaTransformer.transform call and the TransformationListener callbacks shown in the report. Reproduce the issue on a Redmi Note 8 Pro with videos that trigger the TrackTranscoderException, then compare the error path with cases where no callback is invoked. Done means identifying and documenting a reproducible cause or correction for both behaviors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100