--video-x and --video-y command line not working

*nix specific usage questions
calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

--video-x and --video-y command line not working

Postby calanor » 12 May 2010 11:45

Hello,
I am trying to start some instances of VLC and position in a particular place on the screen. However the --video-x and --video-y seems not to be working.

I use a "VLC media player 1.2.0-git Twoflower (revision exported) " compiled from git by myself for use with vaapi. The option width and height work properly, not the option --video-x and --video-y. The windows are the correct size but its positioned arbitrarily. With others binary installed versions like "1.0.4 Goldeneye" work properly.

Each line of the command--line its like this:

Code: Select all

cvlc --noaudio --no-video-deco --no-embedded-video --video-x=120 --video-y=80 --width=480 --height=360 --loop videos/11.ts
the option " --no-embedded-video " is an idea of this post about the same problem.

Has --video-x and --video-y options been removed?

Thanks

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

Re: --video-x and --video-y command line not working

Postby Rémi Denis-Courmont » 12 May 2010 19:27

You should try without a window manager (i.e. with plain bare X server). Usually, the WM will override the video position.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: --video-x and --video-y command line not working

Postby calanor » 14 May 2010 09:01

I use opebox with most options disabled and do not know how to use vlc without window manager. But, with vlc 1.0.5 downloaded from the repository , the positioning with --video-x and --video-y is correct.

Know You if exists a binary version of vlc compiled with support vappi / vdpau?

Thanks.

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: --video-x and --video-y command line not working

Postby calanor » 27 Aug 2010 00:40

Confirmed. Vlc 1.1.2 on Debian squeeze, the command line --video-x and --video-y not work. Older versión 0.9.x and 1.0.x work fine in same window manager.

Edit:
--video-x and --video-y with work fine in VLC 1.1.x for windows. ¿Fails only on Linux X-window?

zozizozu
Blank Cone
Blank Cone
Posts: 62
Joined: 26 Jul 2009 18:18

Re: --video-x and --video-y command line not working

Postby zozizozu » 06 Sep 2011 11:02

Hi all , i'm using vlc 1.1.11 and it looks it's still an issue.
I've also try compiling vlc => 1.2.0-git Twoflower (revision 1.1.0-pre1-4373-g3ae42e7)
Does anyone solved this without droping the window manager ?

Thanks

zozizozu
Blank Cone
Blank Cone
Posts: 62
Joined: 26 Jul 2009 18:18

Re: --video-x and --video-y command line not working

Postby zozizozu » 16 Sep 2011 14:03

You should try without a window manager (i.e. with plain bare X server). Usually, the WM will override the video position.
Unfortunally it did not work for me. Here is what i've done:

* echo vlc myMovie.avi --video-x=100 > .xinitrc
* sudo /etc/init.d/gdm stop
* startx

The video is going to x = 1441 ( that is my 2nd screen ) ...

zozizozu
Blank Cone
Blank Cone
Posts: 62
Joined: 26 Jul 2009 18:18

Re: --video-x and --video-y command line not working

Postby zozizozu » 23 Sep 2011 17:29

I have notice that the video window position depend on "where" i start vlc : if i run from a shell ( or a .sh ) that is on located on my left screen, video is opening on the this left screen, if i move the shell to my right screen and start again, video is on this 2nd screen ...

I also try on Mac vlc 1.1.11 and have the same trouble ...

And, yes, sorry, it's a up.

Thanks for your time.

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

Re: --video-x and --video-y command line not working

Postby Rémi Denis-Courmont » 23 Sep 2011 17:48

If you're trying to say that this is a bug, then you're more than welcome to fix it.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

zozizozu
Blank Cone
Blank Cone
Posts: 62
Joined: 26 Jul 2009 18:18

Re: --video-x and --video-y command line not working

Postby zozizozu » 23 Sep 2011 18:22

Sorry, i may bad explain myself ( you might have reconised my froggy english ), i don't know if it is a bug or no because i did not found nothing about this except this post.
You said it works for you without a window manager, for me not. If i am the only one where it's not working, my trouble, if you are the only one that can use this option, i guess it is a bug...
I was hoping that some users will have or not the same trouble, but it looks no one is intersted in this functionality.
For me it very important because it allow you to fullscreen on the appropriate screen when you have multiple ones ( i can not use qt and --qt-fullscreen-screennumber ).

Unfortunally, i think coding vlc is above my knowledge, but i can try if you tell me in witch files to look °)

For now, it can help, i solved this embeding vlc in a python wx frame that i can manipulate, that give me a pseudo-fullscreen because of the win manager...

calanor
Blank Cone
Blank Cone
Posts: 50
Joined: 08 May 2010 19:36

Re: --video-x and --video-y command line not working

Postby calanor » 27 Oct 2012 20:34

Hi!

I just tested the version 2.0.3 and continues with the same issue.

If you want to position the windows with --video-x and --video-y , I have only two options, or use a version prior to 1.1.0 (2010) or not use any window manager (I've tried several wm and none work).
In 2010 ChangLog explains:

commit 3c2a866a6de04525e874c3aabf027608f43a381c
Author: Rémi Denis-Courmont <remi@remlab.net>
Date: Sat Mar 6 18:38:25 2010 +0200

XCB/window: pass requested position to the X server



commit 764088d5b7cd19da4aa29d133ff3ad0905cfc716
Author: Rémi Denis-Courmont <remi@remlab.net>
Date: Sat Mar 6 18:36:21 2010 +0200

XCB: set window provider requested position from video-x and video-y

Note that only the Qt4 provider seem to use the values this far. Also,
most window managers will move the window wherever they see fit anyway.
Do not know much about programming, but it seems that these changes were the ones who caused the positioning not work with any wm.

I'm also very interested to work under a wm because I need the wm for other functions. Or someone tell me some wm where this works fine.

Thanks and sorry for my bad English.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests