Linux command
vlc 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Play a media file
vlc [file]
Play multiple files
vlc [file1] [file2] [file3]
Play a URL/stream
vlc [https://example.com/stream.m3u8]
Play in fullscreen
vlc --fullscreen [file]
Play without GUI
cvlc [file]
Loop playback
vlc --loop [file]
Play at specific volume
vlc --volume=[200] [file]
Stream to HTTP
vlc [file] --sout '#standard{access=http,mux=ts,dst=:8080}'
说明
VLC is a free, open-source multimedia player supporting virtually all audio and video formats without external codecs. It can play local files, discs, streams, and capture devices. Beyond playback, VLC includes powerful streaming and transcoding capabilities. It can serve as a streaming server, convert between formats, and apply various filters and effects. The command-line interface provides full access to VLC's features for scripting and automation. Use cvlc for headless operation without starting the GUI. VLC's media library and playlist features help organize large collections, while its network streaming supports protocols like HTTP, RTSP, and HLS.
参数
- --fullscreen, -f
- Start in fullscreen mode
- --loop, -L
- Loop playlist
- --repeat, -R
- Repeat current item
- --random, -Z
- Random playback
- --volume _N_
- Set volume (0-1024, 256 = 100%)
- --play-and-exit
- Exit after playing
- --start-time _N_
- Start at N seconds
- --stop-time _N_
- Stop at N seconds
- --rate _N_
- Playback speed (1.0 = normal)
- --no-video
- Audio only
- --no-audio
- Video only
- --sout _chain_
- Stream output chain
- --intf _interface_
- Interface module (qt, ncurses, dummy)
- -I dummy, --intf=dummy
- No interface (background)
FAQ
What is the vlc command used for?
VLC is a free, open-source multimedia player supporting virtually all audio and video formats without external codecs. It can play local files, discs, streams, and capture devices. Beyond playback, VLC includes powerful streaming and transcoding capabilities. It can serve as a streaming server, convert between formats, and apply various filters and effects. The command-line interface provides full access to VLC's features for scripting and automation. Use cvlc for headless operation without starting the GUI. VLC's media library and playlist features help organize large collections, while its network streaming supports protocols like HTTP, RTSP, and HLS.
How do I run a basic vlc example?
Run `vlc [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --fullscreen, -f do in vlc?
Start in fullscreen mode