From a2881814b854edbae88dc6d55f1b242360db6283 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 4 Oct 2024 09:44:48 +0200 Subject: [PATCH] doc/ffmpeg.texi: add a diagram for the loopback decoder example --- doc/ffmpeg.texi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 1bb322634d..d11fe7c8f4 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -526,6 +526,38 @@ reads an input video and @end itemize +Such a transcoding pipeline can be represented with the following diagram: +@verbatim +┌──────────┬───────────────┐ +│ demuxer │ │ ┌─────────┐ ┌─────────┐ ┌────────────────────┐ +╞══════════╡ video stream │ │ video │ │ video │ │ null muxer │ +│ INPUT │ ├──⮞│ decoder ├──┬────────⮞│ encoder ├─┬─⮞│(discards its input)│ +│ │ │ └─────────┘ │ │(libx264)│ │ └────────────────────┘ +└──────────┴───────────────┘ │ └─────────┘ │ + ╭───────⮜──╯ ┌─────────┐ │ + │ │loopback │ │ + │ ╭─────⮜──────┤ decoder ├────⮜──╯ + │ │ └─────────┘ + │ │ + │ │ + │ │ ┌───────────────────┐ + │ │ │complex filtergraph│ + │ │ ╞═══════════════════╡ + │ │ │ ┌─────────────┐ │ + ╰─╫─⮞├─⮞│ hstack ├─⮞├╮ + ╰─⮞├─⮞│ │ ││ + │ └─────────────┘ ││ + └───────────────────┘│ + │ +┌──────────┬───────────────┐ ┌─────────┐ │ +│ muxer │ │ │ video │ │ +╞══════════╡ video stream │⮜─┤ encoder ├───────⮜──────────╯ +│ OUTPUT │ │ │ (ffv1) │ +│ │ │ └─────────┘ +└──────────┴───────────────┘ +@end verbatim + + @c man end DETAILED DESCRIPTION @anchor{Stream selection}