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

Tobias Rapp t.rapp at noa-archive.com
Thu Sep 10 16:43:42 CEST 2015

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-avienc-add-muxer-option-write_channel_mask.patch
Type: text/x-patch
Size: 4320 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150910/7332a99d/attachment.bin>

More information about the ffmpeg-devel mailing list