Command-line: Select location/monitor to open player?

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.
GeeZuZz
Blank Cone
Blank Cone
Posts: 17
Joined: 01 Oct 2006 19:12

Command-line: Select location/monitor to open player?

Postby GeeZuZz » 19 Mar 2008 07:11

Is there any way i can choose where the player should show up, using command line?

I want the player to always show up on my secondary monitor (TV). I can figure out the X/Y coordinates for that monitor if necessary.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Command-line: Select location/monitor to open player?

Postby VLC_help » 19 Mar 2008 15:22

--directx-device= might work.

GeeZuZz
Blank Cone
Blank Cone
Posts: 17
Joined: 01 Oct 2006 19:12

Re: Command-line: Select location/monitor to open player?

Postby GeeZuZz » 19 Mar 2008 21:34

Hi,

I tried:

Code: Select all

vlc.exe http://10.0.0.9/video.m3u --directx-device="\\.\DISPLAY2"
But that didn't work (tried changing display number from 0-3, same results).

Is there anything i need to put in before --directx-device? Is DISPLAY2 just an example, or is that the actual naming windows uses? If not, where can i find out what my display devices are called?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Command-line: Select location/monitor to open player?

Postby VLC_help » 20 Mar 2008 16:52

Settings -> Preferemces and Video -> Output modules -> DirectX, tick Advanced options and dropdown box should display all device names (I assume you are using DirectX video output module).

GeeZuZz
Blank Cone
Blank Cone
Posts: 17
Joined: 01 Oct 2006 19:12

Re: Command-line: Select location/monitor to open player?

Postby GeeZuZz » 20 Mar 2008 23:22

Settings -> Preferemces and Video -> Output modules -> DirectX, tick Advanced options and dropdown box should display all device names (I assume you are using DirectX video output module).
I'm using DirectX yes, and i've tried all displays listed, but VLC window pops up the same place on same monitor every time.. :(

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Command-line: Select location/monitor to open player?

Postby VLC_help » 22 Mar 2008 17:29

Settings -> Preferences and Video has Video X/Y coordinate sections which might do the trick (--video-x= and --video-y= from command line).

GeeZuZz
Blank Cone
Blank Cone
Posts: 17
Joined: 01 Oct 2006 19:12

Re: Command-line: Select location/monitor to open player?

Postby GeeZuZz » 28 Mar 2008 01:40

Settings -> Preferences and Video has Video X/Y coordinate sections which might do the trick (--video-x= and --video-y= from command line).
Tried changing those as well, but it did not do any difference... Window still shows up on the "default" place.

BTW; I wasn't aware that when launching VLC from command line with parameters, the parameters where actually saved in the options. Isn't it possiblet to make them only apply for the current process?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Command-line: Select location/monitor to open player?

Postby VLC_help » 28 Mar 2008 23:55

Options-styles:
--option A global option that is set for the duration of the program.
-option A single letter version of a global --option.
:option An option that only applies to the stream directly before it
and that overrides previous settings.
http://wiki.videolan.org/VLC_command-line_help
but there have been some issues https://trac.videolan.org/vlc/ticket/1106 so I am not sure if those options work as they should.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 48 guests