Streaming and recording
=======================
One of the primary purposes of Nageru is to prepare a stream
that is suitable for live broadcast. However, it is *not*
suitable for serving end-users directly; other software is
much more suitable.
Depending on the amount of CPU power and bandwidth in your
production machine (the one you run Nageru on) and other
machines you may have available, you can choose two different
approaches for streaming: **Transcoded** or **direct**.
.. _transcoded-streaming:
Transcoded streaming
--------------------
Transcoded streaming is in many ways the conceptually simplest from Nageru's point of
view. In this mode, Nageru outputs its “digital intermediate”
H.264 stream (see :ref:`digital-intermediate`), and you are
responsible for transcoding it into a format that is suitable
for streaming to clients. Thus, you can run Nageru on a regular
laptop and then use e.g. a short-term virtual machine in the cloud
to do the heavy lifting for video compression.
Nageru has a built-in HTTP server that listens on port 9095.
You can get the intermediate by using any filename; by default,
the NUT mux is used, so e.g. “http://yourserver.example.org:9095/stream.nut”
would be appropriate. The NUT mux is chosen because it is among
the few that can carry uncompressed audio easily. It is private
to FFmpeg, and thus understood by almost everything in the free
software world, but perhaps not by all other services. You can
change it with the “--http-mux” parameter, although you might
then also want to change the audio codec to using “--http-audio-codec”
and “--http-audio-bitrate” to something your mux can transport
(see below for more information about audio transcoding).
The stream can be transcoded by a number of programs, such as
`VLC `_, but Nageru also has its own
transcoder called **Kaeru**, named after the
Japanese verb *kaeru* (換える), meaning roughly to replace or exchange.
Kaeru is a command-line tool that is designed to transcode Nageru's streams.
Since it reuses Nageru's decoding and encoding code, it can do almost everything you can do
with :ref:`direct encoding `, including x264 speed control
and Metacube output (see the section on :ref:`Cubemap integration ` below).
Using Kaeru is similar to launching Nageru, e.g. to rescale a stream to 848x480
and output it to a 1.5 Mbit/sec H.264 stream suitable for most browsers in a \