Skip to content

Instantly share code, notes, and snippets.

@philippgitpush
Last active June 5, 2024 18:50
Show Gist options
  • Save philippgitpush/091d882cc83abbe46ef3da65ba570f93 to your computer and use it in GitHub Desktop.
Save philippgitpush/091d882cc83abbe46ef3da65ba570f93 to your computer and use it in GitHub Desktop.
Script for quickly starting VLC to view the video feed from a capture device, such as the Elgato Game Capture HD60 S+, with settings for aspect ratio and low latency
@echo off
cd "C:\Program Files\VideoLAN\VLC"
set /p include_audio=Include audio? (Y/N):
if /i "%include_audio%"=="Y" (
start "" vlc.exe --no-qt-privacy-ask --no-qt-updates-notif --no-video-title-show dshow:// :dshow-vdev="Game Capture HD60 S+" :dshow-adev="Digital Audio Interface (Game Capture HD60 S+)" :live-caching=120 :dshow-aspect-ratio=16\:9
) else (
start "" vlc.exe --no-qt-privacy-ask --no-qt-updates-notif --no-video-title-show dshow:// :dshow-vdev="Game Capture HD60 S+" :dshow-adev=none :live-caching=0 :dshow-aspect-ratio=16\:9
)
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment