1.

Solve : VLC Player - Command Line Operation?

Answer» 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

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... But I may have that under control.


Discussion

No Comment Found