]> git.sesse.net Git - nageru-docs/blob - intro.rst
Update intro from README.
[nageru-docs] / intro.rst
1 Introduction
2 ============
3
4 Nageru is a live video mixer, based around the standard M/E workflow.
5
6 Features:
7
8  * High performance on modest hardware (720p60 with two input streams
9    on my Thinkpad X240 [1]_); almost all pixel processing is done on the GPU.
10
11  * High output quality; Lanczos3 scaling, subpixel precision everywhere,
12    white balance adjustment, mix of 16- and 32-bit floating point
13    for intermediate calculations, dithered output, optional 10-bit input
14    and output support.
15
16  * Proper sound support: Syncing of multiple unrelated sources through
17    high-quality resampling, multichannel mixing with separate effects
18    per-bus, cue out for headphones, dynamic range compression,
19    three-band graphical EQ (pluss a fixed low-cut), level meters conforming
20    to EBU R128, automation via MIDI controllers.
21
22  * Theme engine encapsulating the design demands of each individual
23    event; Lua code is responsible for setting up the pixel processing
24    pipelines, running transitions etc., so that the visual look is
25    consistent between operators.
26
27  * Comprehensive monitoring through Prometheus metrics.
28
29 .. [1] For reference, that is: Core i7 4600U (dualcore 2.10GHz, clocks down
30        to 800 MHz after 30 seconds due to thermal constraints), Intel HD Graphics
31        4400 (ie., without the extra L4 cache from Iris Pro), single-channel DDR3 RAM
32        (so 12.8 GB/sec theoretical memory bandwidth, shared between CPU and GPU).
33
34 .. _compile:
35
36 Compiling
37 ---------
38
39 The preferred way of getting Nageru is usually from your Linux distribution
40 of choice, but you can of course also compile it yourself (which will also
41 usually give you a newer version). It currently need:
42
43  - Movit, my GPU-based video filter library (https://movit.sesse.net).
44    You will need at least version 1.5.2.
45
46  - Qt 5.5 or newer for the GUI.
47
48  - QCustomPlot for the histogram display in the frame analyzer.
49
50  - libmicrohttpd for the embedded web server.
51
52  - x264 for encoding high-quality video suitable for streaming to end users.
53
54  - ffmpeg for muxing, and for encoding audio. You will need at least
55    version 3.1.
56
57  - Working OpenGL; Movit works with almost any modern OpenGL implementation.
58    Nageru has been tested with Intel on Mesa (you want 11.2 or newer, due
59    to critical stability bugfixes), and with NVIDIA's proprietary drivers.
60    AMD's proprietary drivers (fglrx) are known not to work due to driver bugs;
61    I am in contact with AMD to try to get this resolved.
62
63  - libzita-resampler, for resampling sound sources so that they are in sync
64    between sources, and also for oversampling for the peak meter.
65
66  - Lua, for driving the theme engine.
67
68  - libpci, for printing friendly PCI device names in an error message.
69
70
71 If on Debian stretch or something similar, you can install everything you need
72 with:
73
74   apt install qtbase5-dev libqt5opengl5-dev qt5-default libqcustomplot-dev \
75     pkg-config libmicrohttpd-dev libusb-1.0-0-dev liblua5.2-dev \
76     libzita-resampler-dev libva-dev libavcodec-dev libavformat-dev \
77     libswscale-dev libavresample-dev libmovit-dev libegl1-mesa-dev \
78     libasound2-dev libx264-dev libbmusb-dev protobuf-compiler \
79     libprotobuf-dev libpci-dev
80
81 Exceptions as of July 2017:
82
83   - You will need Movit from unstable; stretch only has 1.4.0.
84
85   - You will need bmusb from unstable; stretch only has 0.5.4.
86
87 The patches/ directory contains a patch that helps zita-resampler performance.
88 It is meant for upstream, but was not in at the time Nageru was released.
89 It is taken to be by Steinar H. Gunderson <sesse@google.com> (ie., my ex-work
90 email), and under the same license as zita-resampler itself.
91
92 To start it, just hook up your equipment, type “make” and then “./nageru”.