diff mbox series

[FFmpeg-devel,2/2] doc/muxers: add daud

Message ID 20240120141110.601060-2-stefasab@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/2] lavf/daudenc: clarify error messages | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to apply patch
andriy/configure_x86 warning Failed to apply patch

Commit Message

Stefano Sabatini Jan. 20, 2024, 2:11 p.m. UTC
---
 doc/muxers.texi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/doc/muxers.texi b/doc/muxers.texi
index a49853daf2..a9f2f6fe17 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -1312,6 +1312,32 @@  ffmpeg -re -i <input> -map 0 -map 0 -c:a libfdk_aac -c:v libx264 \
 -f dash /path/to/out.mpd
 @end example
 
+@section daud
+D-Cinema audio muxer.
+
+It accepts a single 6-channels audio stream resampled at 96000 Hz
+encoded with the @samp{pcm_24daud} codec.
+
+In addition, each muxed packet size must not be greater than 65535 bytes.
+
+@subsection Example
+Use @command{ffmpeg} to mux audio.
+
+The command convert the input audio to a @samp{5.1} channel layout
+resampled at 96000Hz:
+@example
+ffmpeg -i INPUT -af aresample=96000,pan=5.1,asetnsamples=3640 slow.302
+@end example
+
+The @samp{asetnsamples} filter is used to reduce the number of samples
+of each audio packet, with a size computed according to the formula:
+@example
+65535 / (@var{channels} * @var{encoded_sample_size}) = 655535 / (6 * 3) = 3640
+@end example
+
+The @var{encoded_sample_size} = 3 factor is due to sample size of the
+@samp{pcm_24daud} encoder.
+
 @anchor{fifo}
 @section fifo