You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
After I traced code, I found that I set the surface width or height could bigger than
MediaVideoEncoder.getMaxSupportedWidth
orMediaVideoEncoder.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()
andMediaVideoEncoder.getMaxSupportedWidth()
to use by me.Thus, I think I will not face this issue.
The text was updated successfully, but these errors were encountered: