@fredlackey/devutils 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
- package/src/commands/install.js +374 -36
- package/src/installs/adobe-creative-cloud.js +527 -25
- package/src/installs/adobe-creative-cloud.md +605 -0
- package/src/installs/appcleaner.js +303 -26
- package/src/installs/appcleaner.md +699 -0
- package/src/installs/apt-transport-https.js +390 -0
- package/src/installs/apt-transport-https.md +678 -0
- package/src/installs/atomicparsley.js +624 -26
- package/src/installs/atomicparsley.md +795 -0
- package/src/installs/aws-cli.js +779 -26
- package/src/installs/aws-cli.md +727 -0
- package/src/installs/balena-etcher.js +688 -26
- package/src/installs/balena-etcher.md +761 -0
- package/src/installs/bambu-studio.js +912 -26
- package/src/installs/bambu-studio.md +780 -0
- package/src/installs/bash-completion.js +554 -23
- package/src/installs/bash-completion.md +833 -0
- package/src/installs/bash.js +399 -26
- package/src/installs/bash.md +993 -0
- package/src/installs/beyond-compare.js +585 -26
- package/src/installs/beyond-compare.md +813 -0
- package/src/installs/build-essential.js +511 -26
- package/src/installs/build-essential.md +977 -0
- package/src/installs/ca-certificates.js +618 -0
- package/src/installs/ca-certificates.md +937 -0
- package/src/installs/caffeine.js +490 -26
- package/src/installs/caffeine.md +839 -0
- package/src/installs/camtasia.js +577 -25
- package/src/installs/camtasia.md +762 -0
- package/src/installs/chatgpt.js +458 -26
- package/src/installs/chatgpt.md +814 -0
- package/src/installs/chocolatey.js +447 -0
- package/src/installs/chocolatey.md +661 -0
- package/src/installs/chrome-canary.js +472 -26
- package/src/installs/chrome-canary.md +641 -0
- package/src/installs/chromium.js +645 -26
- package/src/installs/chromium.md +838 -0
- package/src/installs/claude-code.js +558 -26
- package/src/installs/claude-code.md +1173 -0
- package/src/installs/curl.js +361 -26
- package/src/installs/curl.md +714 -0
- package/src/installs/cursor.js +561 -26
- package/src/installs/cursor.md +970 -0
- package/src/installs/dbschema.js +674 -26
- package/src/installs/dbschema.md +925 -0
- package/src/installs/dependencies.md +435 -0
- package/src/installs/development-tools.js +600 -0
- package/src/installs/development-tools.md +977 -0
- package/src/installs/docker.js +1010 -25
- package/src/installs/docker.md +1109 -0
- package/src/installs/drawio.js +1001 -26
- package/src/installs/drawio.md +795 -0
- package/src/installs/elmedia-player.js +328 -25
- package/src/installs/elmedia-player.md +556 -0
- package/src/installs/ffmpeg.js +870 -25
- package/src/installs/ffmpeg.md +852 -0
- package/src/installs/file.js +464 -0
- package/src/installs/file.md +987 -0
- package/src/installs/gemini-cli.js +793 -26
- package/src/installs/gemini-cli.md +1153 -0
- package/src/installs/git.js +382 -26
- package/src/installs/git.md +907 -0
- package/src/installs/gitego.js +931 -26
- package/src/installs/gitego.md +1172 -0
- package/src/installs/go.js +913 -26
- package/src/installs/go.md +958 -0
- package/src/installs/google-chrome.js +801 -25
- package/src/installs/google-chrome.md +862 -0
- package/src/installs/gpg.js +412 -73
- package/src/installs/gpg.md +1056 -0
- package/src/installs/homebrew.js +1015 -26
- package/src/installs/homebrew.md +988 -0
- package/src/installs/imageoptim.js +950 -26
- package/src/installs/imageoptim.md +1119 -0
- package/src/installs/installers.json +2297 -0
- package/src/installs/jq.js +382 -26
- package/src/installs/jq.md +809 -0
- package/src/installs/keyboard-maestro.js +701 -26
- package/src/installs/keyboard-maestro.md +825 -0
- package/src/installs/latex.js +771 -26
- package/src/installs/latex.md +1095 -0
- package/src/installs/lftp.js +338 -26
- package/src/installs/lftp.md +907 -0
- package/src/installs/lsb-release.js +346 -0
- package/src/installs/lsb-release.md +814 -0
- package/src/installs/messenger.js +829 -26
- package/src/installs/messenger.md +900 -0
- package/src/installs/microsoft-office.js +550 -26
- package/src/installs/microsoft-office.md +760 -0
- package/src/installs/microsoft-teams.js +782 -25
- package/src/installs/microsoft-teams.md +886 -0
- package/src/installs/node.js +886 -26
- package/src/installs/node.md +1153 -0
- package/src/installs/nordpass.js +698 -26
- package/src/installs/nordpass.md +921 -0
- package/src/installs/nvm.js +977 -26
- package/src/installs/nvm.md +1057 -0
- package/src/installs/openssh.js +734 -64
- package/src/installs/openssh.md +1056 -0
- package/src/installs/pandoc.js +644 -26
- package/src/installs/pandoc.md +1036 -0
- package/src/installs/pinentry.js +492 -26
- package/src/installs/pinentry.md +1142 -0
- package/src/installs/pngyu.js +851 -26
- package/src/installs/pngyu.md +896 -0
- package/src/installs/postman.js +781 -26
- package/src/installs/postman.md +940 -0
- package/src/installs/procps.js +425 -0
- package/src/installs/procps.md +851 -0
- package/src/installs/safari-tech-preview.js +355 -25
- package/src/installs/safari-tech-preview.md +533 -0
- package/src/installs/sfnt2woff.js +640 -26
- package/src/installs/sfnt2woff.md +795 -0
- package/src/installs/shellcheck.js +463 -26
- package/src/installs/shellcheck.md +1005 -0
- package/src/installs/slack.js +722 -25
- package/src/installs/slack.md +865 -0
- package/src/installs/snagit.js +566 -25
- package/src/installs/snagit.md +844 -0
- package/src/installs/software-properties-common.js +372 -0
- package/src/installs/software-properties-common.md +805 -0
- package/src/installs/spotify.js +858 -25
- package/src/installs/spotify.md +901 -0
- package/src/installs/studio-3t.js +803 -26
- package/src/installs/studio-3t.md +918 -0
- package/src/installs/sublime-text.js +780 -25
- package/src/installs/sublime-text.md +914 -0
- package/src/installs/superwhisper.js +687 -25
- package/src/installs/superwhisper.md +630 -0
- package/src/installs/tailscale.js +727 -26
- package/src/installs/tailscale.md +1100 -0
- package/src/installs/tar.js +389 -0
- package/src/installs/tar.md +946 -0
- package/src/installs/termius.js +780 -26
- package/src/installs/termius.md +844 -0
- package/src/installs/terraform.js +761 -26
- package/src/installs/terraform.md +899 -0
- package/src/installs/tidal.js +752 -25
- package/src/installs/tidal.md +864 -0
- package/src/installs/tmux.js +328 -26
- package/src/installs/tmux.md +1030 -0
- package/src/installs/tree.js +393 -26
- package/src/installs/tree.md +833 -0
- package/src/installs/unzip.js +460 -0
- package/src/installs/unzip.md +879 -0
- package/src/installs/vim.js +403 -26
- package/src/installs/vim.md +1040 -0
- package/src/installs/vlc.js +803 -26
- package/src/installs/vlc.md +927 -0
- package/src/installs/vscode.js +825 -26
- package/src/installs/vscode.md +1002 -0
- package/src/installs/wget.js +415 -0
- package/src/installs/wget.md +791 -0
- package/src/installs/whatsapp.js +710 -25
- package/src/installs/whatsapp.md +854 -0
- package/src/installs/winpty.js +352 -0
- package/src/installs/winpty.md +620 -0
- package/src/installs/woff2.js +535 -26
- package/src/installs/woff2.md +977 -0
- package/src/installs/wsl.js +572 -0
- package/src/installs/wsl.md +699 -0
- package/src/installs/xcode-clt.js +520 -0
- package/src/installs/xcode-clt.md +351 -0
- package/src/installs/xcode.js +542 -26
- package/src/installs/xcode.md +573 -0
- package/src/installs/yarn.js +806 -26
- package/src/installs/yarn.md +1074 -0
- package/src/installs/yq.js +636 -26
- package/src/installs/yq.md +944 -0
- package/src/installs/yt-dlp.js +683 -26
- package/src/installs/yt-dlp.md +946 -0
- package/src/installs/yum-utils.js +297 -0
- package/src/installs/yum-utils.md +648 -0
- package/src/installs/zoom.js +740 -25
- package/src/installs/zoom.md +884 -0
- package/src/scripts/README.md +567 -45
- package/src/scripts/STATUS.md +208 -0
- package/src/scripts/afk.js +395 -7
- package/src/scripts/backup-all.js +731 -9
- package/src/scripts/backup-source.js +711 -8
- package/src/scripts/brewd.js +373 -7
- package/src/scripts/brewi.js +505 -9
- package/src/scripts/brewr.js +512 -9
- package/src/scripts/brews.js +462 -9
- package/src/scripts/brewu.js +488 -7
- package/src/scripts/c.js +185 -7
- package/src/scripts/ccurl.js +325 -8
- package/src/scripts/certbot-crontab-init.js +488 -8
- package/src/scripts/certbot-init.js +641 -9
- package/src/scripts/ch.js +339 -7
- package/src/scripts/claude-danger.js +253 -8
- package/src/scripts/clean-dev.js +419 -8
- package/src/scripts/clear-dns-cache.js +525 -7
- package/src/scripts/clone.js +417 -7
- package/src/scripts/code-all.js +420 -7
- package/src/scripts/count-files.js +195 -8
- package/src/scripts/count-folders.js +195 -8
- package/src/scripts/count.js +248 -8
- package/src/scripts/d.js +203 -7
- package/src/scripts/datauri.js +373 -8
- package/src/scripts/delete-files.js +363 -7
- package/src/scripts/docker-clean.js +410 -8
- package/src/scripts/dp.js +426 -7
- package/src/scripts/e.js +375 -9
- package/src/scripts/empty-trash.js +497 -7
- package/src/scripts/evm.js +428 -9
- package/src/scripts/fetch-github-repos.js +441 -10
- package/src/scripts/get-channel.js +329 -8
- package/src/scripts/get-course.js +384 -11
- package/src/scripts/get-dependencies.js +290 -9
- package/src/scripts/get-folder.js +783 -10
- package/src/scripts/get-tunes.js +411 -10
- package/src/scripts/get-video.js +352 -9
- package/src/scripts/git-backup.js +561 -9
- package/src/scripts/git-clone.js +477 -9
- package/src/scripts/git-pup.js +303 -7
- package/src/scripts/git-push.js +380 -8
- package/src/scripts/h.js +607 -9
- package/src/scripts/hide-desktop-icons.js +483 -7
- package/src/scripts/hide-hidden-files.js +522 -7
- package/src/scripts/install-dependencies-from.js +440 -9
- package/src/scripts/ips.js +647 -10
- package/src/scripts/iso.js +354 -8
- package/src/scripts/killni.js +561 -7
- package/src/scripts/ll.js +451 -8
- package/src/scripts/local-ip.js +310 -8
- package/src/scripts/m.js +508 -8
- package/src/scripts/map.js +293 -8
- package/src/scripts/mkd.js +287 -7
- package/src/scripts/ncu-update-all.js +441 -8
- package/src/scripts/nginx-init.js +702 -12
- package/src/scripts/npmi.js +366 -7
- package/src/scripts/o.js +495 -8
- package/src/scripts/org-by-date.js +321 -7
- package/src/scripts/p.js +208 -7
- package/src/scripts/packages.js +313 -8
- package/src/scripts/path.js +209 -7
- package/src/scripts/ports.js +582 -8
- package/src/scripts/q.js +290 -8
- package/src/scripts/refresh-files.js +378 -10
- package/src/scripts/remove-smaller-files.js +500 -8
- package/src/scripts/rename-files-with-date.js +517 -9
- package/src/scripts/resize-image.js +523 -9
- package/src/scripts/rm-safe.js +653 -8
- package/src/scripts/s.js +525 -9
- package/src/scripts/set-git-public.js +349 -7
- package/src/scripts/show-desktop-icons.js +459 -7
- package/src/scripts/show-hidden-files.js +456 -7
- package/src/scripts/tpa.js +265 -8
- package/src/scripts/tpo.js +264 -7
- package/src/scripts/u.js +489 -7
- package/src/scripts/vpush.js +422 -8
- package/src/scripts/y.js +267 -7
- package/src/utils/common/os.js +94 -2
- package/src/utils/ubuntu/apt.js +13 -7
- package/src/utils/windows/choco.js +82 -26
- package/src/utils/windows/winget.js +89 -27
|
@@ -0,0 +1,927 @@
|
|
|
1
|
+
# Installing VLC
|
|
2
|
+
|
|
3
|
+
## Dependencies
|
|
4
|
+
|
|
5
|
+
### macOS (Homebrew)
|
|
6
|
+
|
|
7
|
+
- **Required:**
|
|
8
|
+
- `homebrew` - Install via `dev install homebrew` or `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
|
|
9
|
+
- **Optional:** None
|
|
10
|
+
- **Auto-installed:** None
|
|
11
|
+
|
|
12
|
+
### Ubuntu (APT/Snap)
|
|
13
|
+
|
|
14
|
+
- **Required:** None (APT is pre-installed on Ubuntu/Debian systems)
|
|
15
|
+
- **Optional:**
|
|
16
|
+
- `vlc-plugin-access-extra` - Install via `sudo apt-get install vlc-plugin-access-extra` (for additional codec support)
|
|
17
|
+
- `libdvd-pkg` - Install via `sudo apt-get install libdvd-pkg` (for DVD playback support)
|
|
18
|
+
- **Auto-installed:**
|
|
19
|
+
- Various multimedia codecs (libavcodec, libavformat, etc.)
|
|
20
|
+
- Qt5 libraries for GUI
|
|
21
|
+
- Audio/video output libraries
|
|
22
|
+
|
|
23
|
+
### Raspberry Pi OS (APT/Snap)
|
|
24
|
+
|
|
25
|
+
- **Required:** None (APT is pre-installed on Raspberry Pi OS)
|
|
26
|
+
- **Optional:**
|
|
27
|
+
- `vlc-nox` - Install via `sudo apt-get install vlc-nox` (headless/command-line only version for servers)
|
|
28
|
+
- `vlc-plugin-base` - Install via `sudo apt-get install vlc-plugin-base` (additional plugin support)
|
|
29
|
+
- `vlc-plugin-video-output` - Install via `sudo apt-get install vlc-plugin-video-output` (additional video output modules)
|
|
30
|
+
- **Auto-installed:**
|
|
31
|
+
- ARM-optimized multimedia codecs
|
|
32
|
+
- Hardware acceleration libraries (MMAL for Raspberry Pi GPU)
|
|
33
|
+
- Qt5 libraries for GUI
|
|
34
|
+
|
|
35
|
+
### Amazon Linux (DNF/YUM)
|
|
36
|
+
|
|
37
|
+
- **Required:**
|
|
38
|
+
- EPEL repository - Automatically installed via `sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm` (AL2023/RHEL9) or `sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm` (AL2/RHEL8)
|
|
39
|
+
- RPM Fusion Free repository - Automatically installed via `sudo dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm` (AL2023/RHEL9) or `sudo yum install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm` (AL2/RHEL8)
|
|
40
|
+
- **Optional:** None
|
|
41
|
+
- **Auto-installed:**
|
|
42
|
+
- Multimedia codecs from RPM Fusion
|
|
43
|
+
- Qt5 libraries for GUI
|
|
44
|
+
- EPEL dependencies
|
|
45
|
+
|
|
46
|
+
### Windows (Chocolatey/winget)
|
|
47
|
+
|
|
48
|
+
- **Required:**
|
|
49
|
+
- `chocolatey` - Install via PowerShell (Administrator): `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))`
|
|
50
|
+
- Alternative: `winget` (pre-installed on Windows 10/11)
|
|
51
|
+
- **Optional:** None
|
|
52
|
+
- **Auto-installed:** None (VLC is a self-contained installation)
|
|
53
|
+
|
|
54
|
+
### Git Bash (Manual/Portable)
|
|
55
|
+
|
|
56
|
+
- **Required:**
|
|
57
|
+
- VLC installed on Windows host (see Windows section above)
|
|
58
|
+
- `chocolatey` on Windows - Install via PowerShell (Administrator): `Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))`
|
|
59
|
+
- **Optional:** None
|
|
60
|
+
- **Auto-installed:** None
|
|
61
|
+
|
|
62
|
+
## Overview
|
|
63
|
+
|
|
64
|
+
VLC is a free and open-source cross-platform multimedia player and framework developed by the VideoLAN project. It plays most multimedia files, DVDs, Audio CDs, VCDs, and various streaming protocols without requiring additional codec packs. VLC is renowned for its versatility, supporting formats like MPEG-2, MPEG-4, H.264, MKV, WebM, WMV, MP3, FLAC, and many more out of the box.
|
|
65
|
+
|
|
66
|
+
Key capabilities include:
|
|
67
|
+
|
|
68
|
+
- **Universal Playback**: Plays virtually any audio or video format without additional codecs
|
|
69
|
+
- **Streaming Support**: Handles network streams (HTTP, RTSP, RTMP, HLS, etc.)
|
|
70
|
+
- **Subtitle Support**: Automatic subtitle download and synchronization
|
|
71
|
+
- **Hardware Acceleration**: GPU-accelerated decoding for better performance
|
|
72
|
+
- **Privacy-Focused**: No spyware, ads, or user tracking
|
|
73
|
+
|
|
74
|
+
## Prerequisites
|
|
75
|
+
|
|
76
|
+
Before installing VLC on any platform, ensure:
|
|
77
|
+
|
|
78
|
+
1. **Internet connectivity** - Required to download packages
|
|
79
|
+
2. **Administrative privileges** - Required for system-wide installation
|
|
80
|
+
3. **Sufficient disk space** - At least 200 MB for the application and dependencies
|
|
81
|
+
|
|
82
|
+
## Platform-Specific Installation
|
|
83
|
+
|
|
84
|
+
### macOS (Homebrew)
|
|
85
|
+
|
|
86
|
+
#### Prerequisites
|
|
87
|
+
|
|
88
|
+
- macOS 10.15 (Catalina) or later
|
|
89
|
+
- Homebrew package manager installed
|
|
90
|
+
- At least 200 MB free disk space
|
|
91
|
+
|
|
92
|
+
If Homebrew is not installed, install it first:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
For Apple Silicon Macs (M1/M2/M3/M4), ensure Homebrew is in your PATH:
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
|
|
102
|
+
source ~/.zshrc
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
#### Installation Steps
|
|
106
|
+
|
|
107
|
+
Run the following command to install VLC:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
brew install --quiet --cask vlc
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
The `--quiet` flag suppresses non-essential output for cleaner automation. The `--cask` flag specifies the graphical application version. Homebrew handles the download from the official VideoLAN servers and places VLC in your Applications folder.
|
|
114
|
+
|
|
115
|
+
#### Verification
|
|
116
|
+
|
|
117
|
+
Confirm the installation succeeded:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
/Applications/VLC.app/Contents/MacOS/VLC --version
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
Expected output (version numbers may vary):
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gf50c77779e)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Alternatively, verify VLC is in Applications:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
ls -la /Applications/VLC.app
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### Troubleshooting
|
|
136
|
+
|
|
137
|
+
**Problem**: `VLC.app: No such file or directory` after installation
|
|
138
|
+
|
|
139
|
+
**Solution**: Homebrew may still be downloading or extracting. Wait a moment and check again. If the issue persists, reinstall:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
brew uninstall --cask vlc
|
|
143
|
+
brew install --quiet --cask vlc
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Problem**: "VLC can't be opened because Apple cannot check it for malicious software"
|
|
147
|
+
|
|
148
|
+
**Solution**: Right-click (or Control-click) on VLC in Applications, select "Open", then click "Open" in the dialog. This only needs to be done once.
|
|
149
|
+
|
|
150
|
+
**Problem**: Installation fails with permission errors
|
|
151
|
+
|
|
152
|
+
**Solution**: Fix Homebrew permissions:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
sudo chown -R $(whoami) $(brew --prefix)/*
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Problem**: Outdated version installed
|
|
159
|
+
|
|
160
|
+
**Solution**: Update Homebrew and upgrade VLC:
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
brew update && brew upgrade --cask vlc
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
### Ubuntu/Debian (APT)
|
|
169
|
+
|
|
170
|
+
#### Prerequisites
|
|
171
|
+
|
|
172
|
+
- Ubuntu 20.04 LTS or later, or Debian 11 (Bullseye) or later
|
|
173
|
+
- sudo privileges
|
|
174
|
+
- At least 500 MB free disk space (including dependencies)
|
|
175
|
+
|
|
176
|
+
#### Installation Steps
|
|
177
|
+
|
|
178
|
+
Run the following commands to update the package index and install VLC:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
|
182
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
The `DEBIAN_FRONTEND=noninteractive` environment variable and `-y` flag ensure fully unattended installation without prompts.
|
|
186
|
+
|
|
187
|
+
**Note**: The version available in Ubuntu/Debian official repositories may not be the absolute latest. Ubuntu 24.04 LTS includes VLC 3.0.20, while Ubuntu 22.04 LTS includes VLC 3.0.16. For most use cases, the repository version is sufficient and receives security updates.
|
|
188
|
+
|
|
189
|
+
#### Verification
|
|
190
|
+
|
|
191
|
+
Confirm the installation succeeded:
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
vlc --version
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Expected output (version numbers vary by distribution):
|
|
198
|
+
|
|
199
|
+
```
|
|
200
|
+
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab12c)
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Test that VLC launches correctly (headless check):
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
cvlc --version
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
The `cvlc` command runs VLC without the graphical interface, useful for verification on servers.
|
|
210
|
+
|
|
211
|
+
#### Troubleshooting
|
|
212
|
+
|
|
213
|
+
**Problem**: `E: Unable to locate package vlc`
|
|
214
|
+
|
|
215
|
+
**Solution**: Update the package index:
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
**Problem**: Need a newer version than available in repositories
|
|
222
|
+
|
|
223
|
+
**Solution**: Use the official VideoLAN PPA for the latest stable version:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
sudo DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:videolan/stable-daily
|
|
227
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
|
228
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
**Problem**: VLC crashes or has codec issues
|
|
232
|
+
|
|
233
|
+
**Solution**: Install additional codec libraries:
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc-plugin-access-extra libdvd-pkg
|
|
237
|
+
sudo DEBIAN_FRONTEND=noninteractive dpkg-reconfigure -f noninteractive libdvd-pkg
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Problem**: "No protocol specified" error when launching
|
|
241
|
+
|
|
242
|
+
**Solution**: This occurs when trying to run GUI VLC from a non-graphical session. Use `cvlc` for command-line operations or ensure you have a display server running.
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
### Raspberry Pi OS (APT)
|
|
247
|
+
|
|
248
|
+
#### Prerequisites
|
|
249
|
+
|
|
250
|
+
- Raspberry Pi OS (Bookworm or Bullseye), 32-bit or 64-bit
|
|
251
|
+
- Raspberry Pi 3 or later recommended (earlier models have limited performance)
|
|
252
|
+
- sudo privileges
|
|
253
|
+
- At least 500 MB free disk space
|
|
254
|
+
|
|
255
|
+
**Note**: Raspberry Pi OS (full desktop version) typically comes with VLC pre-installed. These steps are for Raspberry Pi OS Lite or if VLC was removed.
|
|
256
|
+
|
|
257
|
+
#### Installation Steps
|
|
258
|
+
|
|
259
|
+
Run the following commands to update the package index and install VLC:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
|
263
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
**ARM Architecture Note**: The Raspberry Pi OS repositories contain VLC builds specifically optimized for ARM processors. These builds include hardware acceleration patches for the Raspberry Pi's GPU, providing better video playback performance than generic ARM builds.
|
|
267
|
+
|
|
268
|
+
For Raspberry Pi OS Lite (headless), install the command-line version only:
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc-nox
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
The `vlc-nox` package provides VLC without X11 dependencies, suitable for headless streaming servers.
|
|
275
|
+
|
|
276
|
+
#### Verification
|
|
277
|
+
|
|
278
|
+
Confirm the installation succeeded:
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
vlc --version
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
Expected output (version numbers may vary):
|
|
285
|
+
|
|
286
|
+
```
|
|
287
|
+
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126)
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
For headless systems, verify the command-line player:
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
cvlc --version
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Check that hardware acceleration is available:
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
vlc -vvv --list 2>&1 | grep -i mmal
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
On Raspberry Pi, you should see `mmal` (Multi-Media Abstraction Layer) entries indicating GPU acceleration support.
|
|
303
|
+
|
|
304
|
+
#### Troubleshooting
|
|
305
|
+
|
|
306
|
+
**Problem**: VLC installed but video playback is choppy
|
|
307
|
+
|
|
308
|
+
**Solution**: Enable hardware acceleration by editing VLC preferences or use command-line options:
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
cvlc --codec=mmal_codec /path/to/video.mp4
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**Problem**: "No matching plugin found" errors
|
|
315
|
+
|
|
316
|
+
**Solution**: Install additional VLC plugins:
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc-plugin-base vlc-plugin-video-output
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
**Problem**: Out of memory errors during playback
|
|
323
|
+
|
|
324
|
+
**Solution**: Add swap space for memory-intensive operations:
|
|
325
|
+
|
|
326
|
+
```bash
|
|
327
|
+
sudo fallocate -l 1G /swapfile
|
|
328
|
+
sudo chmod 600 /swapfile
|
|
329
|
+
sudo mkswap /swapfile
|
|
330
|
+
sudo swapon /swapfile
|
|
331
|
+
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
**Problem**: Audio output not working
|
|
335
|
+
|
|
336
|
+
**Solution**: Set the correct audio output module:
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
cvlc --aout=alsa /path/to/audio.mp3
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
Or for HDMI audio:
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
cvlc --aout=hdmi /path/to/audio.mp3
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
### Amazon Linux/RHEL (DNF/YUM)
|
|
351
|
+
|
|
352
|
+
#### Prerequisites
|
|
353
|
+
|
|
354
|
+
- Amazon Linux 2023 (AL2023), Amazon Linux 2 (AL2), or RHEL 8/9
|
|
355
|
+
- sudo privileges
|
|
356
|
+
- At least 500 MB free disk space
|
|
357
|
+
|
|
358
|
+
**Important**: VLC is not available in the standard Amazon Linux or RHEL repositories. You must enable the EPEL (Extra Packages for Enterprise Linux) and RPM Fusion repositories to install VLC.
|
|
359
|
+
|
|
360
|
+
#### Installation Steps
|
|
361
|
+
|
|
362
|
+
**For Amazon Linux 2023 / RHEL 9:**
|
|
363
|
+
|
|
364
|
+
```bash
|
|
365
|
+
# Install EPEL repository
|
|
366
|
+
sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
|
367
|
+
|
|
368
|
+
# Install RPM Fusion Free repository (contains VLC)
|
|
369
|
+
sudo dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
|
|
370
|
+
|
|
371
|
+
# Install VLC
|
|
372
|
+
sudo dnf install -y vlc
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
**For Amazon Linux 2 / RHEL 8:**
|
|
376
|
+
|
|
377
|
+
```bash
|
|
378
|
+
# Install EPEL repository
|
|
379
|
+
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
|
380
|
+
|
|
381
|
+
# Install RPM Fusion Free repository (contains VLC)
|
|
382
|
+
sudo yum install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
|
|
383
|
+
|
|
384
|
+
# Install VLC
|
|
385
|
+
sudo yum install -y vlc
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
The `-y` flag automatically confirms all prompts, enabling fully non-interactive installation.
|
|
389
|
+
|
|
390
|
+
**Note for Amazon Linux 2023**: AL2023 is based on Fedora and uses DNF. The RHEL 9 repositories are compatible. For best results on EC2 instances, ensure your security groups allow outbound HTTPS access to the repository servers.
|
|
391
|
+
|
|
392
|
+
#### Verification
|
|
393
|
+
|
|
394
|
+
Confirm the installation succeeded:
|
|
395
|
+
|
|
396
|
+
```bash
|
|
397
|
+
vlc --version
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
Expected output (version numbers may vary):
|
|
401
|
+
|
|
402
|
+
```
|
|
403
|
+
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126)
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
Verify the command-line player works:
|
|
407
|
+
|
|
408
|
+
```bash
|
|
409
|
+
cvlc --version
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
#### Troubleshooting
|
|
413
|
+
|
|
414
|
+
**Problem**: `No match for argument: vlc`
|
|
415
|
+
|
|
416
|
+
**Solution**: Ensure RPM Fusion is properly installed. Check the repository list:
|
|
417
|
+
|
|
418
|
+
```bash
|
|
419
|
+
dnf repolist
|
|
420
|
+
```
|
|
421
|
+
|
|
422
|
+
You should see `rpmfusion-free` in the list. If not, reinstall the repository:
|
|
423
|
+
|
|
424
|
+
```bash
|
|
425
|
+
sudo dnf install -y https://download1.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
**Problem**: Dependency conflicts during installation
|
|
429
|
+
|
|
430
|
+
**Solution**: Clean the DNF cache and retry:
|
|
431
|
+
|
|
432
|
+
```bash
|
|
433
|
+
sudo dnf clean all
|
|
434
|
+
sudo dnf install -y vlc
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
**Problem**: Repository GPG key errors
|
|
438
|
+
|
|
439
|
+
**Solution**: Import the RPM Fusion GPG keys:
|
|
440
|
+
|
|
441
|
+
```bash
|
|
442
|
+
sudo rpm --import https://www.rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-el-$(rpm -E %rhel)
|
|
443
|
+
```
|
|
444
|
+
|
|
445
|
+
**Problem**: VLC fails to start on headless EC2 instances
|
|
446
|
+
|
|
447
|
+
**Solution**: For streaming or transcoding on headless servers, use the command-line interface:
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
cvlc --no-video /path/to/media.mp4
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
### Windows (Chocolatey)
|
|
456
|
+
|
|
457
|
+
#### Prerequisites
|
|
458
|
+
|
|
459
|
+
- Windows 10 or later (32-bit or 64-bit), or Windows 11
|
|
460
|
+
- Administrator PowerShell or Command Prompt
|
|
461
|
+
- Chocolatey package manager installed
|
|
462
|
+
- At least 200 MB free disk space
|
|
463
|
+
|
|
464
|
+
If Chocolatey is not installed, install it first by running this command in an Administrator PowerShell:
|
|
465
|
+
|
|
466
|
+
```powershell
|
|
467
|
+
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
#### Installation Steps
|
|
471
|
+
|
|
472
|
+
Run the following command in an Administrator PowerShell or Command Prompt:
|
|
473
|
+
|
|
474
|
+
```powershell
|
|
475
|
+
choco install vlc -y
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
The `-y` flag automatically confirms all prompts, enabling fully non-interactive installation. Chocolatey downloads VLC from the official VideoLAN servers and handles the installation silently.
|
|
479
|
+
|
|
480
|
+
**Alternative using winget** (built into Windows 10/11):
|
|
481
|
+
|
|
482
|
+
```powershell
|
|
483
|
+
winget install --id VideoLAN.VLC --silent --accept-package-agreements --accept-source-agreements
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
The `--silent` flag suppresses the installer GUI, and `--accept-package-agreements --accept-source-agreements` handles license acceptance automatically.
|
|
487
|
+
|
|
488
|
+
#### Verification
|
|
489
|
+
|
|
490
|
+
Open a new PowerShell or Command Prompt window (to refresh PATH), then run:
|
|
491
|
+
|
|
492
|
+
```powershell
|
|
493
|
+
vlc --version
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
Expected output (version numbers may vary):
|
|
497
|
+
|
|
498
|
+
```
|
|
499
|
+
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gf50c77779e)
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
If `vlc` is not recognized, use the full path:
|
|
503
|
+
|
|
504
|
+
```powershell
|
|
505
|
+
& "C:\Program Files\VideoLAN\VLC\vlc.exe" --version
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
#### Troubleshooting
|
|
509
|
+
|
|
510
|
+
**Problem**: `vlc: The term 'vlc' is not recognized`
|
|
511
|
+
|
|
512
|
+
**Solution**: Open a new terminal window to refresh environment variables. Alternatively, refresh the environment:
|
|
513
|
+
|
|
514
|
+
```powershell
|
|
515
|
+
refreshenv
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
If still not working, add VLC to your PATH manually or use the full path to the executable.
|
|
519
|
+
|
|
520
|
+
**Problem**: Installation fails with "package failed to install"
|
|
521
|
+
|
|
522
|
+
**Solution**: Run Chocolatey with verbose logging to diagnose:
|
|
523
|
+
|
|
524
|
+
```powershell
|
|
525
|
+
choco install vlc -y --debug --verbose
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
**Problem**: Antivirus blocks the download
|
|
529
|
+
|
|
530
|
+
**Solution**: Chocolatey downloads from official sources. Temporarily disable real-time scanning or add an exception for `C:\ProgramData\chocolatey`.
|
|
531
|
+
|
|
532
|
+
**Problem**: Upgrade fails or old version persists
|
|
533
|
+
|
|
534
|
+
**Solution**: Uninstall and reinstall:
|
|
535
|
+
|
|
536
|
+
```powershell
|
|
537
|
+
choco uninstall vlc -y
|
|
538
|
+
choco install vlc -y
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
**Problem**: winget reports "A newer version was found, but the install technology is different"
|
|
542
|
+
|
|
543
|
+
**Solution**: Uninstall the existing VLC installation from Windows Settings, then install fresh:
|
|
544
|
+
|
|
545
|
+
```powershell
|
|
546
|
+
winget uninstall VideoLAN.VLC
|
|
547
|
+
winget install --id VideoLAN.VLC --silent --accept-package-agreements --accept-source-agreements
|
|
548
|
+
```
|
|
549
|
+
|
|
550
|
+
---
|
|
551
|
+
|
|
552
|
+
### WSL (Ubuntu)
|
|
553
|
+
|
|
554
|
+
#### Prerequisites
|
|
555
|
+
|
|
556
|
+
- Windows 10 Build 19044 or higher, or Windows 11
|
|
557
|
+
- WSL 2 enabled with Ubuntu distribution installed
|
|
558
|
+
- WSLg enabled for GUI application support (Windows 11 or Windows 10 with updates)
|
|
559
|
+
- sudo privileges within WSL
|
|
560
|
+
|
|
561
|
+
**Important**: VLC is a graphical application. Running VLC in WSL requires GUI support through WSLg (Windows Subsystem for Linux GUI). Windows 11 includes WSLg by default. Windows 10 users need specific builds and updates for WSLg support.
|
|
562
|
+
|
|
563
|
+
#### Installation Steps
|
|
564
|
+
|
|
565
|
+
Open your WSL Ubuntu terminal and run:
|
|
566
|
+
|
|
567
|
+
```bash
|
|
568
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
|
569
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc
|
|
570
|
+
```
|
|
571
|
+
|
|
572
|
+
The installation process is identical to native Ubuntu since WSL Ubuntu uses the same package repositories.
|
|
573
|
+
|
|
574
|
+
**Note**: For headless operation (streaming/transcoding without GUI), install the command-line version:
|
|
575
|
+
|
|
576
|
+
```bash
|
|
577
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y vlc-nox
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
#### Verification
|
|
581
|
+
|
|
582
|
+
Confirm the installation succeeded:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
vlc --version
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
Expected output (version numbers vary by Ubuntu version):
|
|
589
|
+
|
|
590
|
+
```
|
|
591
|
+
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126)
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
Test GUI support (requires WSLg):
|
|
595
|
+
|
|
596
|
+
```bash
|
|
597
|
+
vlc &
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
If WSLg is working, a VLC window will appear on your Windows desktop.
|
|
601
|
+
|
|
602
|
+
#### Troubleshooting
|
|
603
|
+
|
|
604
|
+
**Problem**: "cannot open display" or "No protocol specified" error
|
|
605
|
+
|
|
606
|
+
**Solution**: WSLg may not be enabled or working. Verify WSLg status:
|
|
607
|
+
|
|
608
|
+
```bash
|
|
609
|
+
echo $DISPLAY
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
If empty, WSLg is not configured. On Windows 11, restart WSL:
|
|
613
|
+
|
|
614
|
+
```powershell
|
|
615
|
+
wsl --shutdown
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
Then reopen your WSL terminal.
|
|
619
|
+
|
|
620
|
+
**Problem**: VLC window appears but video playback fails
|
|
621
|
+
|
|
622
|
+
**Solution**: WSLg has limited GPU acceleration. For better performance, use Windows-native VLC for media playback and WSL VLC only for command-line operations:
|
|
623
|
+
|
|
624
|
+
```bash
|
|
625
|
+
cvlc --no-video /path/to/media.mp4
|
|
626
|
+
```
|
|
627
|
+
|
|
628
|
+
**Problem**: Audio not working in WSL VLC
|
|
629
|
+
|
|
630
|
+
**Solution**: WSLg includes PulseAudio support. Verify audio is routing correctly:
|
|
631
|
+
|
|
632
|
+
```bash
|
|
633
|
+
pactl info
|
|
634
|
+
```
|
|
635
|
+
|
|
636
|
+
If PulseAudio is not running, audio will not work in GUI applications.
|
|
637
|
+
|
|
638
|
+
**Problem**: Package installation fails with network errors
|
|
639
|
+
|
|
640
|
+
**Solution**: WSL may have DNS issues. Update resolv.conf:
|
|
641
|
+
|
|
642
|
+
```bash
|
|
643
|
+
echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
|
|
644
|
+
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
**Problem**: Need to access Windows files for playback
|
|
648
|
+
|
|
649
|
+
**Solution**: Windows drives are mounted under `/mnt/`. Access files like:
|
|
650
|
+
|
|
651
|
+
```bash
|
|
652
|
+
cvlc /mnt/c/Users/YourUsername/Videos/movie.mp4
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
---
|
|
656
|
+
|
|
657
|
+
### Git Bash (Windows Installation)
|
|
658
|
+
|
|
659
|
+
#### Prerequisites
|
|
660
|
+
|
|
661
|
+
- Windows 10 or later (64-bit)
|
|
662
|
+
- Git Bash installed (comes with Git for Windows)
|
|
663
|
+
- VLC installed on Windows (see Windows section)
|
|
664
|
+
|
|
665
|
+
**Note**: Git Bash runs in a MinGW environment on Windows. It does not require a separate VLC installation. Once VLC is installed on Windows using Chocolatey or winget, the `vlc` command becomes available in Git Bash through the Windows PATH.
|
|
666
|
+
|
|
667
|
+
#### Installation Steps
|
|
668
|
+
|
|
669
|
+
1. Install VLC on Windows using Chocolatey (requires Administrator PowerShell):
|
|
670
|
+
|
|
671
|
+
```bash
|
|
672
|
+
choco install vlc -y
|
|
673
|
+
```
|
|
674
|
+
|
|
675
|
+
2. Open Git Bash - the `vlc` command will be available because Git Bash inherits the Windows PATH.
|
|
676
|
+
|
|
677
|
+
If VLC is already installed on Windows but not accessible from Git Bash, add it to your PATH manually:
|
|
678
|
+
|
|
679
|
+
```bash
|
|
680
|
+
echo 'export PATH="$PATH:/c/Program Files/VideoLAN/VLC"' >> ~/.bashrc
|
|
681
|
+
source ~/.bashrc
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
#### Verification
|
|
685
|
+
|
|
686
|
+
In Git Bash, confirm VLC is accessible:
|
|
687
|
+
|
|
688
|
+
```bash
|
|
689
|
+
vlc --version
|
|
690
|
+
```
|
|
691
|
+
|
|
692
|
+
Expected output (version numbers may vary):
|
|
693
|
+
|
|
694
|
+
```
|
|
695
|
+
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gf50c77779e)
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
Test launching VLC:
|
|
699
|
+
|
|
700
|
+
```bash
|
|
701
|
+
vlc &
|
|
702
|
+
```
|
|
703
|
+
|
|
704
|
+
The VLC window should appear on your Windows desktop.
|
|
705
|
+
|
|
706
|
+
#### Troubleshooting
|
|
707
|
+
|
|
708
|
+
**Problem**: `vlc: command not found` in Git Bash
|
|
709
|
+
|
|
710
|
+
**Solution**: VLC may not be in PATH. Add it manually:
|
|
711
|
+
|
|
712
|
+
```bash
|
|
713
|
+
echo 'export PATH="$PATH:/c/Program Files/VideoLAN/VLC"' >> ~/.bashrc
|
|
714
|
+
source ~/.bashrc
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
Verify the path exists:
|
|
718
|
+
|
|
719
|
+
```bash
|
|
720
|
+
ls "/c/Program Files/VideoLAN/VLC/vlc.exe"
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
**Problem**: Path conversion issues with file arguments
|
|
724
|
+
|
|
725
|
+
**Solution**: Git Bash automatically converts Unix-style paths, which can cause issues. Use Windows-style paths or disable path conversion:
|
|
726
|
+
|
|
727
|
+
```bash
|
|
728
|
+
# Option 1: Use Windows-style paths
|
|
729
|
+
vlc "C:/Users/YourName/Videos/movie.mp4"
|
|
730
|
+
|
|
731
|
+
# Option 2: Disable path conversion for this command
|
|
732
|
+
MSYS_NO_PATHCONV=1 vlc /c/Users/YourName/Videos/movie.mp4
|
|
733
|
+
```
|
|
734
|
+
|
|
735
|
+
**Problem**: VLC opens but cannot find the media file
|
|
736
|
+
|
|
737
|
+
**Solution**: When passing file paths, use the Windows path format:
|
|
738
|
+
|
|
739
|
+
```bash
|
|
740
|
+
vlc "C:\Users\YourName\Videos\movie.mp4"
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
Or convert the path:
|
|
744
|
+
|
|
745
|
+
```bash
|
|
746
|
+
vlc "$(cygpath -w /c/Users/YourName/Videos/movie.mp4)"
|
|
747
|
+
```
|
|
748
|
+
|
|
749
|
+
**Problem**: VLC crashes when started from Git Bash
|
|
750
|
+
|
|
751
|
+
**Solution**: This is rare but can occur due to environment variable conflicts. Launch VLC directly:
|
|
752
|
+
|
|
753
|
+
```bash
|
|
754
|
+
"/c/Program Files/VideoLAN/VLC/vlc.exe" &
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
---
|
|
758
|
+
|
|
759
|
+
## Post-Installation Configuration
|
|
760
|
+
|
|
761
|
+
After installing VLC on any platform, consider these optional but useful configurations.
|
|
762
|
+
|
|
763
|
+
### Setting VLC as Default Media Player
|
|
764
|
+
|
|
765
|
+
**macOS:**
|
|
766
|
+
|
|
767
|
+
1. Right-click any media file in Finder
|
|
768
|
+
2. Select "Get Info"
|
|
769
|
+
3. Under "Open with", select VLC
|
|
770
|
+
4. Click "Change All" to apply to all files of that type
|
|
771
|
+
|
|
772
|
+
**Ubuntu/Debian/Raspberry Pi:**
|
|
773
|
+
|
|
774
|
+
```bash
|
|
775
|
+
xdg-mime default vlc.desktop video/mp4
|
|
776
|
+
xdg-mime default vlc.desktop audio/mpeg
|
|
777
|
+
```
|
|
778
|
+
|
|
779
|
+
**Windows:**
|
|
780
|
+
|
|
781
|
+
```powershell
|
|
782
|
+
# Set VLC as default for common video formats (requires admin)
|
|
783
|
+
assoc .mp4=VLC.mp4
|
|
784
|
+
assoc .mkv=VLC.mkv
|
|
785
|
+
assoc .avi=VLC.avi
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
Or use Windows Settings > Apps > Default apps.
|
|
789
|
+
|
|
790
|
+
### Enabling Hardware Acceleration
|
|
791
|
+
|
|
792
|
+
VLC can leverage GPU hardware for video decoding. Verify hardware acceleration is available:
|
|
793
|
+
|
|
794
|
+
**macOS:**
|
|
795
|
+
|
|
796
|
+
VLC automatically uses VideoToolbox on macOS. No configuration needed.
|
|
797
|
+
|
|
798
|
+
**Linux:**
|
|
799
|
+
|
|
800
|
+
Check available acceleration methods:
|
|
801
|
+
|
|
802
|
+
```bash
|
|
803
|
+
vlc -vvv --list 2>&1 | grep -E "(vaapi|vdpau|mmal)"
|
|
804
|
+
```
|
|
805
|
+
|
|
806
|
+
Enable VA-API (Intel/AMD GPUs) by setting preferences or using command line:
|
|
807
|
+
|
|
808
|
+
```bash
|
|
809
|
+
vlc --avcodec-hw=vaapi /path/to/video.mp4
|
|
810
|
+
```
|
|
811
|
+
|
|
812
|
+
**Windows:**
|
|
813
|
+
|
|
814
|
+
VLC uses DirectX Video Acceleration (DXVA2) automatically. Verify in Tools > Preferences > Input/Codecs > Hardware-accelerated decoding.
|
|
815
|
+
|
|
816
|
+
### Command-Line Streaming
|
|
817
|
+
|
|
818
|
+
VLC can stream media over the network. Example to stream a file over HTTP:
|
|
819
|
+
|
|
820
|
+
```bash
|
|
821
|
+
cvlc /path/to/video.mp4 --sout '#standard{access=http,mux=ts,dst=:8080}'
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
Access the stream from another device at `http://your-ip:8080`.
|
|
825
|
+
|
|
826
|
+
### Disabling Update Checks
|
|
827
|
+
|
|
828
|
+
For automated environments, disable VLC's update notifications:
|
|
829
|
+
|
|
830
|
+
**Linux:**
|
|
831
|
+
Create or edit `~/.config/vlc/vlcrc`:
|
|
832
|
+
|
|
833
|
+
```bash
|
|
834
|
+
mkdir -p ~/.config/vlc
|
|
835
|
+
echo "qt-updates-notif=0" >> ~/.config/vlc/vlcrc
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
**Windows:**
|
|
839
|
+
The setting is stored in the registry or can be set via VLC preferences (Tools > Preferences > Interface).
|
|
840
|
+
|
|
841
|
+
---
|
|
842
|
+
|
|
843
|
+
## Common Issues
|
|
844
|
+
|
|
845
|
+
### Issue: VLC Opens But No Video Displays
|
|
846
|
+
|
|
847
|
+
**Symptoms**: VLC window opens, audio plays, but video is black or missing
|
|
848
|
+
|
|
849
|
+
**Solutions**:
|
|
850
|
+
|
|
851
|
+
- Update graphics drivers to the latest version
|
|
852
|
+
- Try disabling hardware acceleration:
|
|
853
|
+
|
|
854
|
+
```bash
|
|
855
|
+
vlc --avcodec-hw=none /path/to/video.mp4
|
|
856
|
+
```
|
|
857
|
+
|
|
858
|
+
- On Linux, try a different video output:
|
|
859
|
+
|
|
860
|
+
```bash
|
|
861
|
+
vlc --vout=x11 /path/to/video.mp4
|
|
862
|
+
```
|
|
863
|
+
|
|
864
|
+
### Issue: No Audio Output
|
|
865
|
+
|
|
866
|
+
**Symptoms**: Video plays but no sound
|
|
867
|
+
|
|
868
|
+
**Solutions**:
|
|
869
|
+
|
|
870
|
+
- Check system volume and audio output device
|
|
871
|
+
- In VLC, go to Audio > Audio Device and select the correct output
|
|
872
|
+
- On Linux, specify the audio output:
|
|
873
|
+
|
|
874
|
+
```bash
|
|
875
|
+
vlc --aout=pulse /path/to/media.mp4
|
|
876
|
+
```
|
|
877
|
+
|
|
878
|
+
### Issue: Subtitle Timing Is Off
|
|
879
|
+
|
|
880
|
+
**Symptoms**: Subtitles appear too early or too late
|
|
881
|
+
|
|
882
|
+
**Solutions**:
|
|
883
|
+
|
|
884
|
+
- Use keyboard shortcuts: `G` to delay subtitles, `H` to speed them up
|
|
885
|
+
- Adjust in Tools > Track Synchronization > Subtitle track synchronization
|
|
886
|
+
|
|
887
|
+
### Issue: MKV Files Stutter or Skip
|
|
888
|
+
|
|
889
|
+
**Symptoms**: Playback of MKV files is choppy
|
|
890
|
+
|
|
891
|
+
**Solutions**:
|
|
892
|
+
|
|
893
|
+
- Enable file caching:
|
|
894
|
+
|
|
895
|
+
```bash
|
|
896
|
+
vlc --file-caching=1000 /path/to/video.mkv
|
|
897
|
+
```
|
|
898
|
+
|
|
899
|
+
- Reduce video quality settings or disable post-processing effects
|
|
900
|
+
|
|
901
|
+
### Issue: VLC Uses High CPU
|
|
902
|
+
|
|
903
|
+
**Symptoms**: CPU usage spikes during playback
|
|
904
|
+
|
|
905
|
+
**Solutions**:
|
|
906
|
+
|
|
907
|
+
- Enable hardware acceleration (see Post-Installation Configuration)
|
|
908
|
+
- Lower video output quality in Preferences
|
|
909
|
+
- On Raspberry Pi, ensure MMAL is being used for H.264 content
|
|
910
|
+
|
|
911
|
+
---
|
|
912
|
+
|
|
913
|
+
## References
|
|
914
|
+
|
|
915
|
+
- [VLC Official Website](https://www.videolan.org/)
|
|
916
|
+
- [VLC Official Download Page](https://www.videolan.org/vlc/)
|
|
917
|
+
- [VLC for Windows Download](https://www.videolan.org/vlc/download-windows.html)
|
|
918
|
+
- [VLC for macOS Download](https://www.videolan.org/vlc/download-macosx.html)
|
|
919
|
+
- [VLC for Ubuntu Download](https://www.videolan.org/vlc/download-ubuntu.html)
|
|
920
|
+
- [VLC Homebrew Cask](https://formulae.brew.sh/cask/vlc)
|
|
921
|
+
- [VLC Chocolatey Package](https://community.chocolatey.org/packages/vlc)
|
|
922
|
+
- [VLC Snap Package](https://snapcraft.io/vlc)
|
|
923
|
+
- [VLC on winget](https://winget.run/pkg/VideoLAN/VLC)
|
|
924
|
+
- [VLC Documentation Wiki](https://wiki.videolan.org/Documentation:Documentation/)
|
|
925
|
+
- [VLC Command-Line Help](https://wiki.videolan.org/VLC_command-line_help/)
|
|
926
|
+
- [RPM Fusion Repository](https://rpmfusion.org/)
|
|
927
|
+
- [Microsoft WSL GUI Apps Documentation](https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps)
|