[FFmpeg-user] How to re-initialize an audio encoder on input attributes change.

Dennis Mungai dmngaie at gmail.com
Sat Sep 21 07:44:56 EEST 2019


Hello there,

Is it possible to restart an audio encoder on the CLI, such as aac and
libfdk_aac when used with an input stream, say udp, whose audio stream
attributes such as channel layouts and sample rates are liable to
change over time?

A point of reference would be the -reinit_filter 1 flag which
re-initializes the filter chain should input attributes change. Is
there such an option for audio encoders? And if so, how can this be
achieved?

Warm regards,

Dennis.


More information about the ffmpeg-user mailing list