prove VLC run success or failure

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.
willbs
New Cone
New Cone
Posts: 3
Joined: 03 Apr 2013 17:15

prove VLC run success or failure

Postby willbs » 03 Apr 2013 17:21

Is there a way to tell if VLC ran successfully or failed when playing a video/audio file, for example a *.mkv file

I am performing a test using powershell here is a line of code

start-process "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "\\$global:uutName\Documents\MKV.mkv"

this line runs successfully and the video plays but is there a way to prove/show that it ran successfully or failed

thanks in advance

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

Re: prove VLC run success or failure

Postby Rémi Denis-Courmont » 03 Apr 2013 17:35

Probably not. How do you define success anyway?...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

willbs
New Cone
New Cone
Posts: 3
Joined: 03 Apr 2013 17:15

Re: prove VLC run success or failure

Postby willbs » 03 Apr 2013 17:58

i guess if there are no errors, error file

is ther some kind of output log file if there is a failure?

i tried to play a file that wasn't there and got this in an error dialog

File reading failed:
VLC could not open the file "\\STG-53\Documents\ACC.AAC". (%m)
Your input can't be opened:
VLC is unable to open the MRL 'file://STG-53/Documents/ACC.AAC'. Check the log for details.

it says there is a log file but i can't find one

TypX
Developer
Developer
Posts: 287
Joined: 21 Oct 2011 15:59

Re: prove VLC run success or failure

Postby TypX » 03 Apr 2013 18:38

add --file-logging it will create a vlc.log

willbs
New Cone
New Cone
Posts: 3
Joined: 03 Apr 2013 17:15

Re: prove VLC run success or failure

Postby willbs » 03 Apr 2013 20:31

thanks that works fine, the final command in a batch file looks like this

"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" "\\UUT\Documents\MKV.mkav" "--file-logging"

vlc-log.txt appears in the c:\ folder

the word "error" apears in the log file if the playback fails or the file does not exist

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

Re: prove VLC run success or failure

Postby Rémi Denis-Courmont » 03 Apr 2013 21:44

That error means the file could not be opened for reading. You don't need to start VLC to check that.

It won't be so easy if the file is readable but corrupted.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 22 guests