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

Customize Screen Size and Position in Live Stream #1784

Open
TaiBK15 opened this issue Mar 29, 2025 · 2 comments
Open

Customize Screen Size and Position in Live Stream #1784

TaiBK15 opened this issue Mar 29, 2025 · 2 comments

Comments

@TaiBK15
Copy link

TaiBK15 commented Mar 29, 2025

Hi @pedroSG94 ,

I would like to customize the screen size and position in the live stream. For example, if my output video size is 1080x1920, I want to adjust the captured screen to a specific size and position within that frame.

How can I achieve this using RootEncoder? Is there an option to set the screen dimensions and position dynamically?

I’ve attached an image for reference.

Thank you for your support!

Image

@pedroSG94
Copy link
Owner

pedroSG94 commented Mar 29, 2025

Hello,

It is not possible by default but you can create a filter to solve it.
Currently you have the BaseObjectFilterRender (used for ImageObjectFilterRender) which is close to your requirement:
https://github.com/pedroSG94/RootEncoder/blob/master/encoder/src/main/java/com/pedro/encoder/input/gl/render/filters/object/BaseObjectFilterRender.java
The idea is only use a texture and modify the scale and position vertex to your requirements.

Remember that filters affect to preview and output image

@TaiBK15
Copy link
Author

TaiBK15 commented Mar 30, 2025

Thanks for your answer. I will try your solution and check back to see if the requirement is solved.

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

2 participants