Run a local video with command line

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.
dhinton322
New Cone
New Cone
Posts: 4
Joined: 07 Jun 2012 18:38

Run a local video with command line

Postby dhinton322 » 07 Jun 2012 18:50

I thought this would be easy, but I must be missing something, I am trying to run VLC from a command line. It will eventually be a batch file. The command I am running is, "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe file: //D:\flashdrive\MediaForSites4.mov" and it gives me an error:

File reading failed:
VLC could not open the file "\\D:\flashdrive\MediaForSites4.mov". (%m)
Your input can't be opened:
VLC is unable to open the MRL 'file://D:\flashdrive\MediaForSites4.mov'. Check the log for details.


The file does run if I open VLC, browse and browse to that file. I am using VLC 2.0.1 and windows 7

Any help?

Thanks in advance!

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Run a local video with command line

Postby nkoriyama » 07 Jun 2012 19:02

file:///D:\flashdrive\MediaForSites4.mov
three slashes are needed.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

dhinton322
New Cone
New Cone
Posts: 4
Joined: 07 Jun 2012 18:38

Re: Run a local video with command line

Postby dhinton322 » 07 Jun 2012 20:03

tried : C:\Program Files (x86)\VideoLAN\VLC\vlc.exe file:///D:\flashdrive\MediaForSites4.mov

Got Error:File reading failed:
VLC could not open the file "D:\flashdrive\MediaForSites4.mov". (%m)
Your input can't be opened:
VLC is unable to open the MRL 'file:///D:\flashdrive\MediaForSites4.mov'. Check the log for details.

dhinton322
New Cone
New Cone
Posts: 4
Joined: 07 Jun 2012 18:38

Re: Run a local video with command line

Postby dhinton322 » 07 Jun 2012 20:44

I got it now, had a extra space in the folder name. Thanks again for you help.

dhinton322
New Cone
New Cone
Posts: 4
Joined: 07 Jun 2012 18:38

Re: Run a local video with command line

Postby dhinton322 » 07 Jun 2012 21:31

now when I put the command in batch file, "C:\Program Files (x86)"\VideoLAN\VLC\vlc.exe --fullscreen --loop file:///D:\flashdrive\MediaForSites4.mov, the file runs but gives an error:
File reading failed:
VLC could not open the file "VideoLAN\VLC\vlc.exe". (%m)
Your input can't be opened:
VLC is unable to open the MRL 'file:///VideoLAN/VLC/vlc.exe'. Check the log for details.

any help with that?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Run a local video with command line

Postby nkoriyama » 08 Jun 2012 12:04

Your double quotation marks usage is wrong. It's not an issue of VLC.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 16 guests