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

No Player resize (Static player size) #37

Closed
Soromeister opened this issue Feb 24, 2023 · 4 comments
Closed

No Player resize (Static player size) #37

Soromeister opened this issue Feb 24, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@Soromeister
Copy link

Is your feature request related to a problem? Please describe.
I open different video files of different resolutions. Concrete example: 1 video at 1080p and 1 video at 2160p
When opening the 1080p file, the window opens up in 1080p. If I open up the video at 2160p, the player window is much larger, occupying the entire screen. Player window should retain the 1080p size when opening 2160p video files (also for smaller sizes).

Describe the solution you'd like
Opening videos will always maintain the set values for the window, like for example setting the window size to 1920x1080 will open any video with the window size of 1920x1080p, regardless if the video is larger or smaller.

Describe alternatives you've considered
Other video players like MPV-Net has this. Also PotPlayer or KMPlayer.

Additional context
If this is possible to do, it is not clear in the documentation and information should be made available on how to implement it.

@Soromeister Soromeister added the enhancement New feature or request label Feb 24, 2023
@tsl0922
Copy link
Owner

tsl0922 commented Feb 24, 2023

Does the mpv --autofit and it's related options meet your needs? I'm going to implement them in #27

@hooke007
Copy link

hooke007 commented Apr 3, 2023

It should be https://mpv.io/manual/master/#options-auto-window-resize

@Soromeister
Copy link
Author

Any progress on this? Both --autofit and --auto-window-resize are ignored so far.

@tsl0922
Copy link
Owner

tsl0922 commented Nov 12, 2023

--auto-window-resize is supported now.

To make player window size static, add auto-window-resize=no to mpv.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants