[FFmpeg-devel] [RFC] lavf/tee per-output stream selection
Michael Niedermayer
michaelni at gmx.at
Sat Aug 3 13:01:36 CEST 2013
On Sat, Aug 03, 2013 at 12:22:35PM +0200, Stefano Sabatini wrote:
> On date Wednesday 2013-07-31 18:12:41 +0200, Stefano Sabatini encoded:
> > 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.
> > > gi
> > > 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.
>
> In attachment.
> --
> FFmpeg = Funny and Fascinating Marvellous Prodigious Emblematic Game
> doc/muxers.texi | 5 +++++
> libavformat/tee.c | 43 +++++++++++++++++++++++++++++++++++++------
> 2 files changed, 42 insertions(+), 6 deletions(-)
> bd71c3240f2963c03669a59b26a2eb22f933fc52 0002-lavf-tee-add-special-select-option.patch
> From ce21456c8e778ddea3f4c2017c9c987978195c5f Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefasab at gmail.com>
> Date: Sat, 3 Aug 2013 11:23:59 +0200
> Subject: [PATCH] lavf/tee: add special select option
>
> TODO: bump micro
> ---
> doc/muxers.texi | 5 +++++
> libavformat/tee.c | 43 +++++++++++++++++++++++++++++++++++++------
> 2 files changed, 42 insertions(+), 6 deletions(-)
>
> diff --git a/doc/muxers.texi b/doc/muxers.texi
> index 7c5a1c8..37a1734 100644
> --- a/doc/muxers.texi
> +++ b/doc/muxers.texi
> @@ -844,6 +844,11 @@ The BNF description of the bitstream filters specification is given by:
> @var{BSF} ::= @var{BSF_NAME}[+ at var{STREAM_SPECIFIER}]
> @var{BSFS} ::= @var{BSF}[, at var{BSFS}]
> @end example
> +
> + at item select
> +Select the streams that should be mapped to the slave output,
> +specified by a stream specifier. If not specified, this defaults to
> +all the input streams.
> @end table
might be a good idea to add an example too
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
DNS cache poisoning attacks, popular search engine, Google internet authority
dont be evil, please
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130803/cd01cfd7/attachment.asc>
More information about the ffmpeg-devel
mailing list