[FFmpeg-user] encode once, send to 2 locations?

Roger Pack rogerdpack2 at gmail.com
Fri Oct 26 23:29:40 CEST 2012


>> Similar to https://ffmpeg.org/trac/ffmpeg/ticket/1382, I'm wondering
>> if it's possible to take an incoming stream, transcode it *once* to
>> libx264, then basically send 1 copy to a server, and save 1 copy to a
>> file.  Is this possible?
>
> Not with ffmpeg alone at this time.
>
> Implementing a "tee" muxer and/or protocol¹ would not be difficult. It would
> be more a hack than proper design, but sometimes a hack today can help
> waiting for the proper design in three years.
>
> 1: both can be of use in slightly different situations, although since
> muxing is not usually an expensive operation, the muxer would probably cover
> most cases.

Yeah muxer seems the most common.  And I'd be happy for a hack

The ideal I suppose would be able to use filter_complex to send
streams "to this or that output" but a hack would be good for now.
Thanks!
-roger-


More information about the ffmpeg-user mailing list