vv
Small and simple video player, built on the iv library. Every decoder is pure Go.
Pictures of 8 to 16 bits in 4:2:0, 4:2:2 or 4:4:4 are shown with the stream's color matrix and range.
Raw H.264 and HEVC Annex B streams are read from a file or from stdin (-).
Sound goes to PulseAudio, else ALSA (Linux), OSS (FreeBSD), Core Audio (macOS) and WASAPI (Windows).
Without a sound device the video plays silently.
Installation
CGO_ENABLED=0 go install github.com/gen2brain/iv/cmd/vv@latest
Or download the latest binaries from the releases.
Keybindings
Pause
Step one frame (pauses)
Seek 5 seconds back / forward
Seek 1 minute back / forward
Go to the start
Toggle Fullscreen
Quit
Usage
Usage: vv [<flags>] file|-
--threads
Decoder threads, 0 is one less than GOMAXPROCS, 1 is serial [VV_THREADS]. (default "0")
--fps
Frame rate of raw Annex B streams that do not signal one [VV_FPS]. (default "25")
--matrix
Color matrix: auto (from the stream), 601, 709 or 2020 [VV_MATRIX]. (default "auto")
--loop
Play in a loop [VV_LOOP]. (default "false")
--fullscreen
Start in fullscreen [VV_FULLSCREEN]. (default "false")
--noaudio
Play without sound [VV_NOAUDIO]. (default "false")
--quiet
Do not print the playback status [VV_QUIET]. (default "false")
--bench
Decode and convert as fast as possible, without display [VV_BENCH]. (default "false")
In a terminal, vv prints the position, frame rates, drops and the frame path once per second; --quiet turns it off.
To use a config file, create file $XDG_CONFIG_HOME/vv/config, one flag per line (e.g. loop true).