[FFmpeg-devel] [RFC] lavf/tee per-output stream selection

Stefano Sabatini stefasab at gmail.com
Wed Jul 31 18:12:41 CEST 2013


On date Wednesday 2013-07-17 21:30:11 +0200, Stefano Sabatini encoded:
> Hi,
> 
> I need to be be able to send different streams to different tee
> outputs- In other words I need to select which streams should be
> routed to each tee output, while right now it is possible to specify
> the streams just once, and they will be the same for every output.
> 
> This allows to create outputs with different streams, while avoiding
> duplicated encoding and the need to run different processes
> communicating through pipes.
> 
> A possible design would involve a syntax like this:
> ffmpeg -i INPUT -c:v libx264 -c:a libvo-aacenc -tee_select "v|a" -f tee "out-v.ts|out-a.ts|out-av.ts"

Elaborating more on this, the syntax could be:
-f tee "[select=v]out-v.ts|[select=a]out-a.ts|out.ts"

There is the usual namespace problem. I'll try to provide an
implementation soon.
-- 
FFmpeg = Foolish and Frightening Mortal Pitiful Ecletic Ghost


More information about the ffmpeg-devel mailing list