pixop / video-compare

Split screen video comparison tool using FFmpeg and SDL2
GNU General Public License v2.0
1.02k stars 45 forks source link

Prevent window size to be bigger than desktop resolution #8

Closed 1024mb closed 3 years ago

1024mb commented 3 years ago

If I have a 1080p monitor and then open a 1080p file, the window size is so big I can't see the window's title bar anymore and because of that I can't resize the window. Similar happens if I open a 4K video file, with those I can't even see the entire window.

To add to this, as with 4K files if I hold click and drag the mouse the title bar appears and then I can resize, after resizing the slider is not well synchronized with the mouse.

jonfryd commented 3 years ago

Hi @1024mb,

I recently added the -w [width]x[height] option for specifying the window size. It can be used to downscale the signal to a smaller frame which fits your display (I use it when working on remote desktops myself).

ghost commented 2 years ago

It would be better if we only need to assign the width or height (keeping the ratio).

jonfryd commented 2 years ago

@ffffwh: agreed, good idea!

I'll look into it at some point.

jonfryd commented 2 years ago

@ffffwh,

So I've implemented what you suggested in https://github.com/pixop/video-compare/commit/afa00d0063cb56a02da8f0f06a211721d886f0e2.

I'm planning to release a new version for Windows tomorrow.