# videolan/vlc architecture

> Architecture diagram of the GitHub repository videolan/vlc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/videolan/vlc
- Repository: https://github.com/videolan/vlc

## Overview

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: [`src/player/player.c`](https://github.com/videolan/vlc/blob/master/src/player/player.c) (Player state), [`lib/core.c`](https://github.com/videolan/vlc/blob/master/lib/core.c) (libVLC runtime), [`modules/codec`](https://github.com/videolan/vlc/tree/master/modules/codec) (Codec modules), [`modules/demux/adaptive/PlaylistManager.cpp`](https://github.com/videolan/vlc/blob/master/modules/demux/adaptive/PlaylistManager.cpp) (Adaptive streaming)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User and API entry"]
  node_vlc["VLC application<br/>[vlc.c]"]
  node_libvlc["libVLC API<br/>[libvlc.h]"]
end

subgraph group_engine["Playback engine"]
  node_libvlc_impl["libVLC runtime<br/>[core.c]"]
  node_player["Player state<br/>[player.c]"]
  node_playlist["Playlist"]
  node_input["Input pipeline"]
end

subgraph group_media["Media processing"]
  node_access["Media access"]
  node_demux["Demultiplexing"]
  node_adaptive["Adaptive streaming"]
  node_dash["DASH handling<br/>[DASHManager.cpp]"]
  node_hls["HLS handling<br/>[HLSManager.cpp]"]
  node_codec["Codec modules"]
end

subgraph group_outputs["Playback and delivery"]
  node_audio_filter["Audio processing"]
  node_video_filter["Video processing"]
  node_audio_output["Audio output"]
  node_video_output["Video output"]
  node_stream_out["Stream output"]
end

subgraph group_interfaces["User interfaces"]
  node_qt_gui["Qt interface"]
  node_skins_gui["Skins interface<br/>[window_manager.cpp]"]
  node_controls["Control modules"]
end

node_user(("Viewer or caller"))
node_network(("Media source"))

node_user -->|"starts playback"| node_vlc
node_user -->|"controls playback"| node_qt_gui
node_user -->|"calls engine"| node_libvlc
node_vlc -.->|"runs engine"| node_libvlc_impl
node_libvlc -->|"exposes"| node_libvlc_impl
node_libvlc_impl -.->|"provides playback"| node_player
node_player -.->|"uses queue"| node_playlist
node_player -.->|"starts input"| node_input
node_input -.->|"opens source"| node_access
node_network -->|"provides stream"| node_access
node_access -.->|"supplies bytes"| node_demux
node_demux -.->|"dispatches streams"| node_codec
node_adaptive -.->|"supports DASH"| node_dash
node_adaptive -.->|"supports HLS"| node_hls
node_dash -->|"uses manager"| node_adaptive
node_adaptive -.->|"produces streams"| node_codec
node_codec -.->|"decodes audio"| node_audio_filter
node_codec -.->|"decodes video"| node_video_filter
node_audio_filter -.->|"processes audio"| node_audio_output
node_video_filter -.->|"processes video"| node_video_output
node_player -.->|"plays audio"| node_audio_output
node_player -.->|"renders video"| node_video_output
node_libvlc_impl -->|"streams media"| node_stream_out
node_libvlc_impl -->|"converts media"| node_codec
node_qt_gui -.->|"controls playback"| node_player
node_skins_gui -.->|"controls playback"| node_player
node_controls -.->|"controls playback"| node_player

click node_vlc "https://github.com/videolan/vlc/blob/master/bin/vlc.c"
click node_libvlc "https://github.com/videolan/vlc/blob/master/include/vlc/libvlc.h"
click node_libvlc_impl "https://github.com/videolan/vlc/blob/master/lib/core.c"
click node_player "https://github.com/videolan/vlc/blob/master/src/player/player.c"
click node_playlist "https://github.com/videolan/vlc/tree/master/src/playlist"
click node_input "https://github.com/videolan/vlc/tree/master/src/input"
click node_access "https://github.com/videolan/vlc/tree/master/modules/access"
click node_demux "https://github.com/videolan/vlc/tree/master/modules/demux"
click node_adaptive "https://github.com/videolan/vlc/blob/master/modules/demux/adaptive/PlaylistManager.cpp"
click node_dash "https://github.com/videolan/vlc/blob/master/modules/demux/dash/DASHManager.cpp"
click node_hls "https://github.com/videolan/vlc/blob/master/modules/demux/hls/HLSManager.cpp"
click node_codec "https://github.com/videolan/vlc/tree/master/modules/codec"
click node_audio_filter "https://github.com/videolan/vlc/tree/master/modules/audio_filter"
click node_video_filter "https://github.com/videolan/vlc/tree/master/modules/video_filter"
click node_audio_output "https://github.com/videolan/vlc/tree/master/modules/audio_output"
click node_video_output "https://github.com/videolan/vlc/tree/master/modules/video_output"
click node_stream_out "https://github.com/videolan/vlc/tree/master/modules/stream_out"
click node_qt_gui "https://github.com/videolan/vlc/blob/master/modules/gui/qt/player/player_controller.cpp"
click node_skins_gui "https://github.com/videolan/vlc/blob/master/modules/gui/skins2/src/window_manager.cpp"
click node_controls "https://github.com/videolan/vlc/tree/master/modules/control"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_vlc,node_libvlc,node_user toneBlue
class node_libvlc_impl,node_player,node_playlist,node_input toneAmber
class node_access,node_demux,node_adaptive,node_dash,node_hls,node_codec toneMint
class node_audio_filter,node_video_filter,node_audio_output,node_video_output,node_stream_out toneRose
class node_qt_gui,node_skins_gui,node_controls,node_network toneIndigo
```

## Components

### User and API entry

- [VLC application](https://github.com/videolan/vlc/blob/master/bin/vlc.c): `bin/vlc.c`
- [libVLC API](https://github.com/videolan/vlc/blob/master/include/vlc/libvlc.h): `include/vlc/libvlc.h`

### Playback engine

- [libVLC runtime](https://github.com/videolan/vlc/blob/master/lib/core.c): `lib/core.c`
- [Player state](https://github.com/videolan/vlc/blob/master/src/player/player.c): `src/player/player.c`
- [Playlist](https://github.com/videolan/vlc/tree/master/src/playlist): `src/playlist`
- [Input pipeline](https://github.com/videolan/vlc/tree/master/src/input): `src/input`

### Media processing

- [Media access](https://github.com/videolan/vlc/tree/master/modules/access): `modules/access`
- [Demultiplexing](https://github.com/videolan/vlc/tree/master/modules/demux): `modules/demux`
- [Adaptive streaming](https://github.com/videolan/vlc/blob/master/modules/demux/adaptive/PlaylistManager.cpp): `modules/demux/adaptive/PlaylistManager.cpp`
- [DASH handling](https://github.com/videolan/vlc/blob/master/modules/demux/dash/DASHManager.cpp): `modules/demux/dash/DASHManager.cpp`
- [HLS handling](https://github.com/videolan/vlc/blob/master/modules/demux/hls/HLSManager.cpp): `modules/demux/hls/HLSManager.cpp`
- [Codec modules](https://github.com/videolan/vlc/tree/master/modules/codec): `modules/codec`

### Playback and delivery

- [Audio processing](https://github.com/videolan/vlc/tree/master/modules/audio_filter): `modules/audio_filter`
- [Video processing](https://github.com/videolan/vlc/tree/master/modules/video_filter): `modules/video_filter`
- [Audio output](https://github.com/videolan/vlc/tree/master/modules/audio_output): `modules/audio_output`
- [Video output](https://github.com/videolan/vlc/tree/master/modules/video_output): `modules/video_output`
- [Stream output](https://github.com/videolan/vlc/tree/master/modules/stream_out): `modules/stream_out`

### User interfaces

- [Qt interface](https://github.com/videolan/vlc/blob/master/modules/gui/qt/player/player_controller.cpp): `modules/gui/qt/player/player_controller.cpp`
- [Skins interface](https://github.com/videolan/vlc/blob/master/modules/gui/skins2/src/window_manager.cpp): `modules/gui/skins2/src/window_manager.cpp`
- [Control modules](https://github.com/videolan/vlc/tree/master/modules/control): `modules/control`

### Other components

- **Viewer or caller**
- **Media source**

## Connections

- 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 (evidence: `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
