Skip to content

Use even numbers for resultWidth & resultHeight (video transcoding) #1429

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guillermomuntaner
Copy link

@guillermomuntaner guillermomuntaner commented Jan 30, 2017

Had an issue (reproduced in your App) when transcoding from a 620x714 video input to a scaled down 555x640 output. The encoder was throwing during configuration. After some research this is apparently caused by odd output sizes (in the sample 555). Just by rounding to nearest even number this issue gets fixed.

I added the rounding code to the VideoEditorActivity.java since is where those values are being computed and the rounding happens, but this could be done/checked later on during transcoding in MediaController.

Had an issue (reproduced in your App) when transcoding from a 620x714 video input to a scaled down 555x640 output. The encoder was throwing during configuration. After some research this is apparently caused by odd output sizes (in the sample 555). Just by rounding to nearest even number this issue gets fixed.

I added the rounding code to the VideoEditorActivity.java since is where those values are being computed and the rounding happens, but this could be done/checked later on during transcoding in MediaController.
@guillermomuntaner guillermomuntaner changed the title Use even numbers for resultWidth & resultHeight Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant