Page 1 of 1
prove VLC run success or failure
Posted: 03 Apr 2013 17:21
by willbs
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
Re: prove VLC run success or failure
Posted: 03 Apr 2013 17:35
by Rémi Denis-Courmont
Probably not. How do you define success anyway?...
Re: prove VLC run success or failure
Posted: 03 Apr 2013 17:58
by willbs
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
Re: prove VLC run success or failure
Posted: 03 Apr 2013 18:38
by TypX
add --file-logging it will create a vlc.log
Re: prove VLC run success or failure
Posted: 03 Apr 2013 20:31
by willbs
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
Re: prove VLC run success or failure
Posted: 03 Apr 2013 21:44
by Rémi Denis-Courmont
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.