Skip to content
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

Error : Invalid output width and/or height #21

Closed
polokoio456 opened this issue Jan 5, 2021 · 2 comments
Closed

Error : Invalid output width and/or height #21

polokoio456 opened this issue Jan 5, 2021 · 2 comments

Comments

@polokoio456
Copy link

After I traced code, I found that I set the surface width or height could bigger than MediaVideoEncoder.getMaxSupportedWidth or MediaVideoEncoder.getMaxSupportedHeight.
( deepAR.setRenderSurface(holder.surface, width, height) ).

So, I faced this Error (Invalid output width and/or height), and I cannot record video.

I suggest it could public those func MediaVideoEncoder.getMaxSupportedHeight() and MediaVideoEncoder.getMaxSupportedWidth() to use by me.

Thus, I think I will not face this issue.

@nachiketghelani
Copy link

I am getting the same issue with the video record. In some of the devices working but in some of not so we need to set manually so video resolution not getting proper as per our expectation.

Can anyone help you out here?

@DishoD
Copy link
Contributor

DishoD commented Mar 12, 2021

You can set the resolution of the camera with cameraGrabber.setResolutionPreset(CameraResolutionPreset.P1280x720);. Also you cen set resolution of the output video with deepAR.startVideoRecording(String filePath, int outputWidth, int outputHeight). For more info read our Android API documentation.

@Sikter Sikter closed this as completed Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants