[FFmpeg-user] Sharing an audio encode among two outputs
Moritz Barsnick
barsnick at gmx.net
Mon Nov 7 14:08:41 EET 2016
On Mon, Nov 07, 2016 at 17:00:52 +0900, PSPunch wrote:
> Is there a way to brush this up, do the audio encode just once?
> A solution in a single process would be ideal. As CPU load is low
> anyway, I would prefer to keep this in a single instance if piping is
> the only solution.
I haven't tried, but the "tee" muxer should be able to do that. The
documentation even covers your specific case:
https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs#Teepseudo-muxer
See the part about "If you want to choose specific streams then use the
stream option." (Whereby it actually means the "select" option.)
HTH,
Moritz
More information about the ffmpeg-user
mailing list