Page 1 of 1

Run a local video with command line

Posted: 07 Jun 2012 18:50
by dhinton322
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!

Re: Run a local video with command line

Posted: 07 Jun 2012 19:02
by nkoriyama
file:///D:\flashdrive\MediaForSites4.mov
three slashes are needed.

Re: Run a local video with command line

Posted: 07 Jun 2012 20:03
by dhinton322
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.

Re: Run a local video with command line

Posted: 07 Jun 2012 20:44
by dhinton322
I got it now, had a extra space in the folder name. Thanks again for you help.

Re: Run a local video with command line

Posted: 07 Jun 2012 21:31
by dhinton322
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?

Re: Run a local video with command line

Posted: 08 Jun 2012 12:04
by nkoriyama
Your double quotation marks usage is wrong. It's not an issue of VLC.