linkedin / linkedin/LiTr

TransformationOptions giving corrupt video

Open
#224 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
663
Forks
92
PR merge metrics
No merged PRs in 30d

Description

I don't know is this a right place to ask doubts, but I need your help. My problem is this lib has less documetation.
I want to:
1. Trim vieo
2. compress video (maintaining original aspect ratio, width height can be decreased)
3. adding my custom image at bottom left corner with some margin to bottom and left side. One thing I want to maintain constant ratio of bitmap overlay width and height to the height & width of video.
```
TransformationOptions transformationOptions = new TransformationOptions.Builder()
.setGranularity(MediaTransformer.GRANULARITY_DEFAULT)
.setVideoFilters(null)
.setSourceMediaRange(new MediaRange(1000,5000))
.build();
```
When adding ```null``` in place of ```TransformationOptions``` in ```mediaTransformer.transform``` it is working fine. But with above code it is not giving any error but producing an empty file. **Am I missing something?**

SORRY I'm beginner

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with TransformationOptions.Builder, MediaRange, and the MediaTransformer.transform call shown in the report, comparing the null-options path with the configured-options path. Reproduce the 1000–5000 source range case and determine why it produces an empty file; done means the configured transformation outputs valid video.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.