diff mbox series

[FFmpeg-devel,2/2] doc/ffmpeg.texi: add a diagram for the loopback decoder example

Message ID 20241004074613.21038-2-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,1/2] doc/ffmpeg: rewrite the detailed description chapter | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Oct. 4, 2024, 7:46 a.m. UTC
---
 doc/ffmpeg.texi | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
diff mbox series

Patch

diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index e17c17bcd7..1ccc48bbad 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}