Windows 7 command line control

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.
elcore181
New Cone
New Cone
Posts: 3
Joined: 25 Mar 2010 02:49

Windows 7 command line control

Postby elcore181 » 25 Mar 2010 02:55

Could someone please tell me how to control VLC with the command line.
I'am using Windows 7 64 Home Basic.
I assume you have to be in the directory where VLC is located which is C:\Program Files(x86)\VideoLAN\VLC
When I try to change to that directory I get:
The system cannot fild the specified path
I tried lauching vlc from C:\ with: VLC.exe, vlc.exe, VLC, vlc and nothing works.
Last edited by elcore181 on 25 Mar 2010 03:13, edited 1 time in total.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Windows 7 command line control

Postby Arite » 25 Mar 2010 03:11

Where have you installed VLC? If it is installed in the default location vlc.exe should be located in, assuming you have a 32-bit OS, "C:\Program Files\VideoLAN\VLC" (otherwise for 64-bit it will be "C:\Program Files (x86)\VideoLAN\VLC").

If you have a Command Prompt window open you need to navigate to the directory vlc.exe is located by doing e.g.:

Code: Select all

cd "C:\Program Files\VideoLAN\VLC"
Then you should be able to do e.g.:

Code: Select all

vlc C:\myfile.avi
Arite.
Don't use PMs for support questions.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Windows 7 command line control

Postby Arite » 25 Mar 2010 03:34

Make a new post by clicking the "Post Reply" button as supposed to editing your first post when replying.

Are you in a Command Prompt window? Is so entering (with quotes around the address):

Code: Select all

cd "C:\Program Files(x86)\VideoLAN\VLC"
Should change to that directory. Then just entering "vlc" or "vlc.exe" should start VLC (and you can add commandline arguments etc. to it).

Arite.
Don't use PMs for support questions.

elcore181
New Cone
New Cone
Posts: 3
Joined: 25 Mar 2010 02:49

Re: Windows 7 command line control

Postby elcore181 » 25 Mar 2010 03:41

I have Windows 7 64 bit home basic.
Got it, I was forgetting the space beteen the "Files" and "(x86)"
Thank you very very much.

I know this is a seperate issue but I'am trying to capture video from a Nikon point and shoot camera to a file but it's not showing up in capture devices.

sotextes
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2010 13:41

Re: Windows 7 command line control

Postby sotextes » 25 Mar 2010 13:54

Hello, I use the Media browser as Windows Media Center in Windows 7 32 and VLC media player 1.0.5, I use VLC media player as external Media player Browser, and I would like to know a command line for use in the parameters of the Media Browser to open the VLC media player in full screen and when to stop playing close to return to the Windows Media Center. On the website Media Broswer has a command line for this function in VLC but ja I tried it and does not work, this is — play-and-exit = Plays files and exits, someone could help me?

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Windows 7 command line control

Postby Arite » 25 Mar 2010 15:52

I have Windows 7 64 bit home basic.
Got it, I was forgetting the space beteen the "Files" and "(x86)"
Thank you very very much.
Glad it worked :).
I know this is a seperate issue but I'am trying to capture video from a Nikon point and shoot camera to a file but it's not showing up in capture devices.
Does clicking "Refresh list" make any difference?
Hello, I use the Media browser as Windows Media Center in Windows 7 32 and VLC media player 1.0.5, I use VLC media player as external Media player Browser, and I would like to know a command line for use in the parameters of the Media Browser to open the VLC media player in full screen and when to stop playing close to return to the Windows Media Center. On the website Media Broswer has a command line for this function in VLC but ja I tried it and does not work, this is — play-and-exit = Plays files and exits, someone could help me?
If you want to start in fullscreen use the --fullscreen commandline switch. Also --play-and-exit should work. So, for example, try something like:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" --fullscreen --play-and-exit INPUT
Where INPUT is the input file (e.g. "C:\myfile.avi").

Arite.
Don't use PMs for support questions.

sotextes
New Cone
New Cone
Posts: 5
Joined: 25 Mar 2010 13:41

Re: Windows 7 command line control

Postby sotextes » 25 Mar 2010 16:12

With this command it closes the player when it finishes playing, but when I stop playing it won't close the player, in this case the player is in audio, I wanted it closes when I think reproduction also

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

Re: Windows 7 command line control

Postby VLC_help » 25 Mar 2010 17:46

If you play stop, there is no way to close VLC since stop puts VLC to new state.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Windows 7 command line control

Postby Arite » 25 Mar 2010 19:02

As VLC_help said stopping the playlist changes VLC's state. An alternative would be to do something like:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" --fullscreen INPUT vlc://quit
vlc://quit is a special playlist item which closes VLC. The above will add vlc://quit to the playlist after INPUT, so if you press the "Next media in the playlist" button (the >>| one) it will also close VLC.

Arite.
Don't use PMs for support questions.

elcore181
New Cone
New Cone
Posts: 3
Joined: 25 Mar 2010 02:49

Re: Windows 7 command line control

Postby elcore181 » 25 Mar 2010 23:10

I gave up on using my Nikon point-and-shoot and just bought a cheap $20 webcam: Logitech C120
It didn't seam like it was recording anything at first. On playback I just got a black screen but I takes about 5 Sec then I get a picture.
I'am recording to mpg
How can I add a time/date to the frame?

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

Re: Windows 7 command line control

Postby VLC_help » 26 Mar 2010 17:36

How can I add a time/date to the frame?
Marquee should do the trick
viewtopic.php?f=4&t=71297


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests