mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Video windows open incorrectly when videos larger than monitor

Open kax4 opened this issue 13 years ago • 14 comments

mpv git-8fc0b618, open 1080p videos on my Macbook air it look like this: Screen Shot 2013-03-06 at 10 50 01 PM Before: Screen Shot 2013-03-06 at 10 49 29 PM

kax4 avatar Mar 06 '13 16:03 kax4

The above commit should fix it, I didn't realize this regression because I'm running on a 27" iMac. Let me know if it's fixed for you.

pigoz avatar Mar 10 '13 16:03 pigoz

Thanks it fine now, can you have a look at --ao=sdl file open with sdl kind of freeze.

kax4 avatar Mar 11 '13 01:03 kax4

Regression with lasted git 66693662800443fd3e28c57f665d50b232b46596

kax4 avatar Jun 26 '13 12:06 kax4

seems to be a problem again

pigoz avatar Jun 30 '13 14:06 pigoz

I can't reproduce this. It works well here, can you provide config and flags?

pigoz avatar Jun 30 '13 16:06 pigoz

My config file:

osd-duration=3500
prefer-ipv4=yes
autosub-match=fuzzy
use-filedir-conf=yes
correct-pts=yes
msgcolor=yes
osd-font="MyriadPro-Semibold"
osd-font-size=39
slang=eng,en,vi
alang=jp,jpn,en,eng,vi,vie

It only happen at first once enter full screen then return to windows it seem normal, here a screen capture.

kax4 avatar Jul 01 '13 16:07 kax4

Hey! Sorry for taking so much. After thinking about it, in my opinion this constraining to the screen size should be removed. mpv has another option called --autofit-larger that roughly does the same thing.

I pushed this new implementation to a branch called cocoa-resize. Do you think you could test if this (combined with --autofit-larger) is ok for your needs and give me some feedback?

Thank you!

pigoz avatar Jul 09 '13 21:07 pigoz

No problem at all. Use --autofit-larger=100% seem nice but a small part of windows open under the Dock, is it good to remove that code i mean all other player i seen resize the videos when it larger anyway and aren't people expected that than an over size windows with close button nowhere to see. btw: mpv windows not show in Exposé when use with --ontop

kax4 avatar Jul 10 '13 17:07 kax4

That is because --autofit-larger uses the screen frame, not the visible frame. Using a smaller value (I saw most people using around 80%) may lead to better results.

pigoz avatar Jul 10 '13 18:07 pigoz

Pushed another commit which should make the situation better by always showing the titlebar. Using --no-border will disregard any correction.

pigoz avatar Jul 10 '13 20:07 pigoz

With commit 9c6c5a890c437e65ebc8b6c026c9a9b2d48bc70f titlebar look a bit better, right part of windows appear in white ~1s when videos start playing also go from fullscreen to windows make it normal again i remember it was remove with 3e79e9a12e8fffcc73efe18fd7f3bcdea8a80b06. 2 1

kax4 avatar Jul 11 '13 14:07 kax4

I pushed again the cocoa-resize branch. It should be be bugfree now.

pigoz avatar Jul 29 '13 19:07 pigoz

Yes it fix the white flicker but strange i can't reproduce it with master git ca678dce4d3170a65ac184574bd12130aed06e82 either.

kax4 avatar Jul 29 '13 20:07 kax4

pushed ff3b98d to master containing a fix

pigoz avatar Jul 30 '13 18:07 pigoz