VLC inconsistent width, height, x, y via cli

macOS specific usage questions
pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

VLC inconsistent width, height, x, y via cli

Postby pprzemek » 15 Jan 2015 10:54

Running this on mac osx via CLI produces very inconsistent results in regards to setting the initial position of the video box and its size. So far it manages to pop up in a different place every single time. Assuming

Code: Select all

--video-x=0 --video-y=0
video should pop up in the top left corner of the screen but that was not the case.

Could somebody shed some light on this. Thanks.

Code: Select all

vlc --height=188 --width=334 --video-x=0 --video-y=0 --video-on-top --no-macosx-video-autoresize --no-video-deco --no-video-title-show --no-embedded-video -vvv rtsp://xx.xxx.xxx.xxx:xx/stream

pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 16 Jan 2015 00:10

After further investigation is looks like the default behaviour for --video-x=X --video-y=X is offset based on the position of the previously placed video screen ... instead of the x,y position of the desktop?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC inconsistent width, height, x, y via cli

Postby Jean-Baptiste Kempf » 18 Jan 2015 09:52

File a bugreport.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 15 Feb 2015 18:52


Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC inconsistent width, height, x, y via cli

Postby Jean-Baptiste Kempf » 16 Feb 2015 22:38

Thanks.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Apaco
Blank Cone
Blank Cone
Posts: 10
Joined: 08 Feb 2011 00:22

Re: VLC inconsistent width, height, x, y via cli

Postby Apaco » 04 Mar 2015 17:35

Hello pprzemek,

2 things:

1) Older versions had trouble with the x or y coordinate being 0 (zero). I've verified that 2.2 also has this issue. Try 1,1 instead of 0,0.
2) The windows will be placed in the right place (using 1 instead of 0) if using the --no-autoscale command line option (in Windows) BUT the video is zoomed and cropped to the center of the video. See example image: https://www.dropbox.com/s/jdixj528w3qs5 ... .jpg?raw=1
These are my command lines to produce the picture:
vlc.exe udp://@233.3.3.1:3333 --no-embedded-video --qt-start-minimized --no-video-deco --width="640" --height="360" --video-x="1" --video-y="1"
vlc.exe udp://@233.3.3.1:3333 --no-autoscale --video-on-top --no-embedded-video --qt-start-minimized --no-video-deco --width="640" --height="360" --video-x="1" --video-y="1"

Jean-Baptiste - Will the DEVs see this? It may be helpful...or it may not.

Kind Regards

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC inconsistent width, height, x, y via cli

Postby Jean-Baptiste Kempf » 04 Mar 2015 23:26

Jean-Baptiste - Will the DEVs see this? It may be helpful...or it may not.
It's complex :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 05 Mar 2015 08:08

VLC fails to start with --qt-start-minimized on mac. As far as I can see --video-x="1" --video-y="1" seems to be making some sort of difference even without --no-autoscale.

Tested against OS X 10.10.x with nightly
VLC media player 2.2.1 Weatherwax (revision 2.2.0-8-gfae03b9)
VLC version 2.2.1 Weatherwax (2.2.0-8-gfae03b9)
Compiled by buildbot on jones.via.ecp.fr (Mar 4 2015 03:05:33)
Compiler: clang: warning: argument unused during compilation: '-mmacosx-version-min=10.6'
Last edited by pprzemek on 05 Mar 2015 08:33, edited 2 times in total.

dfuhrmann
Developer
Developer
Posts: 1183
Joined: 02 Jul 2012 11:09

Re: VLC inconsistent width, height, x, y via cli

Postby dfuhrmann » 05 Mar 2015 08:15

Qt is not available on mac.

pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 05 Mar 2015 08:46

Would be nice to be able to start VLC in the minimized for on mac.

pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 12 Mar 2015 20:47

Yes it looks like VLC 0,0 point of reference is bottom left corner of the screen and it has to be 1,1.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC inconsistent width, height, x, y via cli

Postby Jean-Baptiste Kempf » 13 Mar 2015 09:48

File a bug.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 23 Mar 2015 19:02

It looks like there is an issue with multiple screens and y position. If 2 or more screens are used and in the display configuration they are placed above or below the main screen so y should be negative or positive over the height of the main screen vlc instance/s is/are placed at the random position on the dedicated screen.

pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 25 Mar 2015 21:08


pprzemek
Blank Cone
Blank Cone
Posts: 40
Joined: 15 Jan 2015 08:39

Re: VLC inconsistent width, height, x, y via cli

Postby pprzemek » 20 Sep 2015 19:45

Has this bug been resolved? Thanks.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests