Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: VLC Player - Command Line Operation  (Read 5537 times)

0 Members and 1 Guest are viewing this topic.

kyle_engineer

    Topic Starter


    Intermediate
  • 010010110101100
  • Thanked: 4
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
VLC Player - Command Line Operation
« on: August 25, 2011, 09:44:04 PM »
Hey All,

So I'm trying to build a little .bat which will open VLC, run 1 video for a while, then run a second, then close VLC, and the .bat. [I'm doing this so that I can setup automated screen watching for a series of plasma TVs I maintain.] The only thing I'm running into really, is making sure that the aspect ratios are correct on the display. I am pretty sure that the videos are 4:3, so I'm editing them now and testing that, but for the sake of simplicity, is there a way to stretch or tile using VLC so that it covers the whole 16:9 display?

Here's the code I have now, if you have any ideas, I'd love to hear:

Code: [Select]
@echo off

set word=Inspecting
:CHECK
title %word% Computer Configureation...
set /a pingnum=15*%Random%/32768+1
ping -n %pingnum% 127.0.0.1
if exist %ProgramFiles%\VideoLAN\VLC\vlc.exe goto PROMPT
REM Install VLC Player - Skipped if already installed.
title Installing VLC Player...
cd C:\ScreenFix
vlc_installer.exe
set /p installed= Once you have completed installation, enter 'y'.
if %installed%=='y' echo Thank You...
set word=Re-inspecting
goto CHECK

cls

echo.
echo This will take 8 hours.
set /p ok=Is this OK? [y/n]
if %ok%=='n' goto END

REM Wash 1 (stuck pixel remover)
cd %ProgramFiles%\VideoLAN\VLC
vlc.exe -l -f --no-video-title-show C:\ScreenFix\media\wash1.vob
ping -n 21600 127.0.0.1
taskkill /f /im vlc.exe

REM Wash 3 (Color Balancing - removes slight ghosting)
vlc.exe -l -f --no-video-title-show C:\ScreenFix\media\wash3.vob
ping -n 7200 127.0.0.1
taskkill /f /im vlc.exe

:END
exit

Anyway, mind you this is a rough draft, but I do want it to be a little flashier than necessary, so ignore the pointlessness there.

The main thing that I want to know, is if there is anyone out there that uses VLC, that would be able to give me a hint.

Thanks,
Kyle  ;D

P.S.
  Also, anyone got any ideas on how to do the wait and kill better? Cause the little
 
Code: [Select]
vlc.exe -l -f --no-video-title-show C:\ScreenFix\media\wash1.vob
ping -n 21600 127.0.0.1
taskkill /f /im vlc.exe

won't work. "-l' makes VLC loop endlessly, so the .bat never gets to start counting the pings...  :P But I may have that under control. :)
"Any answer is only as good as it satisfies the question." - Me

0000000100101011000 -
010010010010000001001100010011110100110 001000000010110010100111101010101