How videolan/vlc works
VLC is a cross-platform media player and multimedia engine, with libVLC providing an embeddable API. The principal workflow is selecting media, opening its source, demultiplexing and decoding streams, then rendering audio/video; users can also control playback through GUI or control modules, while the engine exposes playback, streaming, and conversion to applications. The graph includes adaptive-stream stages and output/streaming branches. Several core runtime paths are represented at their enclosing directories because their specific implementations were not sampled; edges rely on README capabilities or indexed source references.
Main entry points: player.c Player state · core.c libVLC runtime · codec Codec modules · PlaylistManager.cpp Adaptive streaming
Components 22
User and API entry
- VLC application
bin/vlc.c - libVLC API
include/vlc/libvlc.h
Playback engine
- libVLC runtime
lib/core.c - Player state
src/player/player.c - Playlist
src/playlist - Input pipeline
src/input
Media processing
- Media access
modules/access - Demultiplexing
modules/demux - Adaptive streaming
modules/demux/adaptive/PlaylistManager.cpp - DASH handling
modules/demux/dash/DASHManager.cpp - HLS handling
modules/demux/hls/HLSManager.cpp - Codec modules
modules/codec
Playback and delivery
- Audio processing
modules/audio_filter - Video processing
modules/video_filter - Audio output
modules/audio_output - Video output
modules/video_output - Stream output
modules/stream_out
User interfaces
- Qt interface
modules/gui/qt/player/player_controller.cpp - Skins interface
modules/gui/skins2/src/window_manager.cpp - Control modules
modules/control
Other components
- Viewer or caller
- Media source
Connections 27
- Viewer or caller → VLC application: starts playback
- Viewer or caller → Qt interface: controls playback
- Viewer or caller → libVLC API: calls engine
- VLC application → libVLC runtime: runs engine
- libVLC API → libVLC runtime: exposes
- libVLC runtime → Player state: provides playback
- Player state → Playlist: uses queue
- Player state → Input pipeline: starts input
- Input pipeline → Media access: opens source
- Media source → Media access: provides stream
- Media access → Demultiplexing: supplies bytes
- Demultiplexing → Codec modules: dispatches streams
- Adaptive streaming → DASH handling: supports DASH
- Adaptive streaming → HLS handling: supports HLS
- DASH handling → Adaptive streaming: uses manager
modules/demux/dash/DASHManager.cpp - Adaptive streaming → Codec modules: produces streams
- Codec modules → Audio processing: decodes audio
- Codec modules → Video processing: decodes video
- Audio processing → Audio output: processes audio
- Video processing → Video output: processes video
- Player state → Audio output: plays audio
- Player state → Video output: renders video
- libVLC runtime → Stream output: streams media
- libVLC runtime → Codec modules: converts media
- Qt interface → Player state: controls playback
- Skins interface → Player state: controls playback
- Control modules → Player state: controls playback