Window Size and Position Are Not Quite Working (w/ Examples)

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
xluryan
Blank Cone
Blank Cone
Posts: 10
Joined: 29 Feb 2016 23:28

Window Size and Position Are Not Quite Working (w/ Examples)

Postby xluryan » 01 Mar 2016 22:15

`
I've searched the forum and researched all the CLI options, but I can't quite seem to get this working exactly as I'd like.

My goal: get VLC to start with no interface (only a title bar, min/max/close buttons, and the video), and start with a set window size, at a set position.

If I use a dummy interface (-I dummy):

Code: Select all

vlc.exe -I dummy --dummy-quiet --video-on-top --no-audio --zoom=0.7 --video-x=1430 --video-y=30 video.mp4
  • - the window is un-closable; I can click the X in the corner, but nothing happens
    - positioning works (--video-x, --video-y)
    - size (--width, --height) does not work, unless I turn off video autoresizing (--no-autoscale),
    - however, I can manipulate the size via the (--zoom) option, which is totally acceptable
If I use the Qt minimal interface (--qt-minimal-view):

Code: Select all

vlc.exe --qt-minimal-view --qt-video-autoresize --video-on-top --no-audio --zoom=0.7 video.mp4
  • - positioning does not work
    - window size does not work, but again, I can trick it using the (--qt-video-autoresize) and (--zoom) options
    - the window does close as it should when I click the X
The Lua interface (-I lua --lua-intf) doesn't support anything (that I know of... ?), so it's out.

So, is there any way I can resolve the other two interface's shortcomings?
`
Last edited by xluryan on 02 Mar 2016 17:31, edited 1 time in total.

xluryan
Blank Cone
Blank Cone
Posts: 10
Joined: 29 Feb 2016 23:28

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby xluryan » 02 Mar 2016 16:39

`
In the interim, I have created an AutoHotKey script that works for what I'm trying to do.

I am still interested in finding a way to do this natively with VLC, but this will work for now:

Code: Select all

VLC := "C:\Program Files\VideoLAN\VLC\vlc.exe" Run %VLC% --qt-minimal-view --qt-video-autoresize --video-on-top --zoom=0.7 video.mp4 Sleep,1000 WinMove,video.mp4,,1430,30
Hopefully that helps someone out.
`

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby mederi » 02 Mar 2016 22:19

Does it help if you use --no-embedded-video option?

xluryan
Blank Cone
Blank Cone
Posts: 10
Joined: 29 Feb 2016 23:28

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby xluryan » 03 Mar 2016 15:39

Does it help if you use --no-embedded-video option?
That does work... kind of...

That creates two VLC windows: one with the video and the other with the controls (despite using --qt-minimal-view). The video window does actually show up where I position it with the (--video-x) and (--video-y) options. Do you know if there's an option to suppress the window with the controls?

Also, another issue I'm finding is that you can only close the video window by closing the control window. Clicking the X on the video window does nothing. That's the same behavior as using the dummy interface like I described in the first post.
`

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby mederi » 03 Mar 2016 18:09

--qt-start-minimized
Right-click context menu works.
Known issue:
https://trac.videolan.org/vlc/ticket/11500
https://trac.videolan.org/vlc/ticket/13179

xluryan
Blank Cone
Blank Cone
Posts: 10
Joined: 29 Feb 2016 23:28

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby xluryan » 03 Mar 2016 21:19

--qt-start-minimized
Right-click context menu works.
Known issue:
https://trac.videolan.org/vlc/ticket/11500
https://trac.videolan.org/vlc/ticket/13179
Ok, cheers mate. Glad that bug is already documented. I think for now I'll stick with the AHK script as it's a little cleaner and doesn't involve a 2nd minimized window.

Cheers for all your replies!
`

Early Riser
New Cone
New Cone
Posts: 4
Joined: 03 Jul 2016 15:12
VLC version: 3.0.0 32 bit
Operating System: XP Pro 64

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby Early Riser » 11 Sep 2018 20:57

I am using 32 bit version 3.0.0 Vetinari and the "--width= --height= " parameters still do NOT WORK AT ALL. I've tried every combination of parameters up to and including [ "C:\location\vlc.exe" --no-qt-video-autoresize --qt-start-minimized --no-embedded-video --width=xxx --height=xxx "video file or URL stream" ]. No matter what I do, any new window ALWAYS opens the same size as the last one that was closed. This is a long standing bug and has yet to be fixed. At least the maximize parameter works correctly.

LordLiverpool
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Oct 2019 22:28

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby LordLiverpool » 27 Dec 2019 18:37

Still not working in 3.0.8.

vlc_debugger
New Cone
New Cone
Posts: 1
Joined: 24 Aug 2020 18:00

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby vlc_debugger » 24 Aug 2020 18:28

bump... :twisted:

hi, regarding the Windows Size/Position properties and the --qt-video-autoresize, i'm trying to create a VLC ( 3.0.8 ) seamless experience with the XFCE4 Windows Manager in the Xubuntu 18.04 LTS:

1st approach (via custom configuration file): vlc --config myconfig.conf
results:
- neither the size and position worked
- autoresize works

2nd approach (via application input args): vlc --no-qt-video-autoresize --width 600 --height 300 --video-x 1 --video-y 1
results:
- neither the size and position worked
- autoresize works

3rd approach (via application input args with a dummy interface - preferred): vlc -I "dummy" --width 600 --height 300 --video-x 1 --video-y 1
results:
- neither the size and position worked
- autoresize doesn't worked since the propriety only exists in the qt interface

Since i'm using a 3rd party tool (as a workaround) to control the vlc window size and position (devilspie2), the dummy interface works almost like expected.

So, i would like to know if it is possible to enable or disable the auto resize property when the vlc is launched with a dummy interface?

Rémi Denis-Courmont
Developer
Developer
Posts: 15248
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby Rémi Denis-Courmont » 24 Aug 2020 19:03

Position never worked on Linux. Window managers almost universally ignore the requested position so the non-feature was dropped altogether.

Code: Select all

vlc --no-embedded-video --width 600 --height 300
works for me in 4.0. It's known broken in 3.x; you can use --zoom instead of with and height.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ITNavigate
New Cone
New Cone
Posts: 1
Joined: 29 Dec 2020 01:11

Re: Window Size and Position Are Not Quite Working (w/ Examples)

Postby ITNavigate » 29 Dec 2020 01:14

Position never worked on Linux. Window managers almost universally ignore the requested position so the non-feature was dropped altogether.

Code: Select all

vlc --no-embedded-video --width 600 --height 300
works for me in 4.0. It's known broken in 3.x; you can use --zoom instead of with and height.
Is this also true of Windows?

Can the documentation (https://wiki.videolan.org/VLC_command-line_help) please be updated if this is the case?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 16 guests