Hi! I'm currently using version 2.6.4. When I call orientation methods via GlStreamInterface (e.g. setStreamIsPortrait, setIsStreamHorizontalFlip, setIsStreamVerticalFlip, setStreamRotation), the changes are also applied to the record encoder, not just the stream.
Looking at GlStreamInterface.draw(), both surfaceManagerEncoder and surfaceManagerEncoderRecord use the same orientation parameters:
// stream
mainRender.drawScreenEncoder(w, h, orientation, streamOrientation,
isStreamVerticalFlip, isStreamHorizontalFlip, streamViewPort)
// record — identical parameters
mainRender.drawScreenEncoder(w, h, orientation, streamOrientation,
isStreamVerticalFlip, isStreamHorizontalFlip, streamViewPort)
My use case: I want the recorded file to always follow the natural camera/preview orientation, while the stream orientation can be changed independently.
Preview already handles this correctly with its own variables (isPortraitPreview, isPreviewHorizontalFlip, etc.). Is there a way to achieve the same for record, or is this currently not supported?
Thank you!
Hi! I'm currently using version 2.6.4. When I call orientation methods via
GlStreamInterface(e.g.setStreamIsPortrait,setIsStreamHorizontalFlip,setIsStreamVerticalFlip,setStreamRotation), the changes are also applied to the record encoder, not just the stream.Looking at
GlStreamInterface.draw(), bothsurfaceManagerEncoderandsurfaceManagerEncoderRecorduse the same orientation parameters:My use case: I want the recorded file to always follow the natural camera/preview orientation, while the stream orientation can be changed independently.
Preview already handles this correctly with its own variables (
isPortraitPreview,isPreviewHorizontalFlip, etc.). Is there a way to achieve the same for record, or is this currently not supported?Thank you!