aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2024-03-03 22:44:09 +0100
committerMarton Balint <cus@passwd.hu>2024-03-14 01:37:31 +0100
commit7196b12b2b61995b520e3adf2a554457a19f5144 (patch)
treecaa1d5edd270e664b7d8ba667a9b496acbc27fba /doc
parent9eebeea4dd7f91ddd695fcf35b0c9396d521ec84 (diff)
downloadffmpeg-7196b12b2b61995b520e3adf2a554457a19f5144.tar.gz
avformat/daudenc: force 2000 sample packet size with a bsf
The samples I found all have 2000 sample packets, and by forcing the packet size with a bsf we could automagically make muxing work for packets containing more than 3640 samples. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'doc')
-rw-r--r--doc/muxers.texi16
1 files changed, 5 insertions, 11 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi
index a697e4b153..31249abd0b 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -1397,23 +1397,17 @@ 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 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
+ffmpeg -i INPUT -af aresample=96000,pan=5.1 slow.302
@end example
-The @var{encoded_sample_size} = 3 factor is due to sample size of the
-@samp{pcm_24daud} encoder.
+For ffmpeg versions before 7.0 you might have to use the @samp{asetnsamples}
+filter to limit the muxed packet size, because this format does not support
+muxing packets larger than 65535 bytes (3640 samples). For newer ffmpeg
+versions audio is automatically packetized to 36000 byte (2000 sample) packets.
@section dv
DV (Digital Video) muxer.