[FFmpeg-devel] [PATCH v2] avformat/avienc: add muxer option "write_channel_mask"

Michael Niedermayer michaelni at gmx.at
Sat Sep 12 13:43:32 CEST 2015


On Thu, Sep 10, 2015 at 04:43:42PM +0200, Tobias Rapp wrote:
> On 10.09.2015 15:28, Tobias Rapp wrote:
> >On 10.09.2015 14:57, Derek Buitenhuis wrote:
> >>On 9/10/2015 1:25 PM, Tobias Rapp wrote:
> >>>My use-case is handling recorded AVI files which have an
> >>>unknown/empty/unsupported channel layout. Instead of writing the guessed
> >>>channel layout into the output file, using "-write_channel_mask off"
> >>>allows to write an empty channel mask instead.
> >>
> >>Are such files even valid?
> >
> >I guess so as the docs at [1] say in chapter "Details about dwChannelMask":
> >
> >"If, for example in a multi-channel audio authoring application, no
> >speaker location is desired on any of the mono streams, the
> >dwChannelMask should explicitly be set to 0."
> >
> >BTW: I just noticed that FATE is failing after applying the patch so
> >I'll need to take a closer look and update the patch before it can be
> >applied.
> 
> Forgot to add a reference to AVClass in AVIContext. Attached an
> updated version of the patch.
> 
> /Tobias

>  avienc.c  |   23 +++++++++++++++++++++--
>  riff.h    |    5 +++++
>  riffenc.c |    5 +++--
>  3 files changed, 29 insertions(+), 4 deletions(-)
> 0965d232568ffd0c4ac8156de8efd547eb963cd7  0001-avformat-avienc-add-muxer-option-write_channel_mask.patch
> From 6b2c3feb43870398005ea307d6d9ee4736dd2d11 Mon Sep 17 00:00:00 2001
> From: Tobias Rapp <t.rapp at noa-audio.com>
> Date: Thu, 10 Sep 2015 14:04:18 +0200
> Subject: [PATCH] avformat/avienc: add muxer option "write_channel_mask"

applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150912/e839aca4/attachment.sig>


More information about the ffmpeg-devel mailing list