Skip to content

Is it possible to have independent orientation for record and stream? #2088

@Luqmanjohan

Description

@Luqmanjohan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions