Page 1 of 1

VLC inconsistent width, height, x, y via cli

Posted: 15 Jan 2015 10:54
by pprzemek
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

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

Posted: 16 Jan 2015 00:10
by pprzemek
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?

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

Posted: 18 Jan 2015 09:52
by Jean-Baptiste Kempf
File a bugreport.

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

Posted: 15 Feb 2015 18:52
by pprzemek

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

Posted: 16 Feb 2015 22:38
by Jean-Baptiste Kempf
Thanks.

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

Posted: 04 Mar 2015 17:35
by Apaco
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

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

Posted: 04 Mar 2015 23:26
by Jean-Baptiste Kempf
Jean-Baptiste - Will the DEVs see this? It may be helpful...or it may not.
It's complex :)

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

Posted: 05 Mar 2015 08:08
by pprzemek
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'

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

Posted: 05 Mar 2015 08:15
by dfuhrmann
Qt is not available on mac.

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

Posted: 05 Mar 2015 08:46
by pprzemek
Would be nice to be able to start VLC in the minimized for on mac.

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

Posted: 12 Mar 2015 20:47
by pprzemek
Yes it looks like VLC 0,0 point of reference is bottom left corner of the screen and it has to be 1,1.

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

Posted: 13 Mar 2015 09:48
by Jean-Baptiste Kempf
File a bug.

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

Posted: 23 Mar 2015 19:02
by pprzemek
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.

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

Posted: 25 Mar 2015 21:08
by pprzemek

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

Posted: 20 Sep 2015 19:45
by pprzemek
Has this bug been resolved? Thanks.