[FFmpeg-devel] [PATCH] Use channel count if channel layout is undefined

Nicolas George george at nsup.org
Mon Jul 9 21:05:54 EEST 2018


Marcin Gorzel (2018-07-09):
> ./ffmpeg -i input_9ch.wav -filter:a:0
> pan="6c|c0=0.166*c0+0.166*c6|c1=c1|c2=c2|c3=c3|c4=c4|c5=c5" -y
> output_6ch.wav
> 
> Without the patch, the output in the first channel (c0) is noise. After
> applying the patch, I can verify that two sine tones are mixed together and
> scaled properly.

Ok, so this is with an explicit matrix provided.

> Could you explain what you mean by "the actual layouts are necessary to build
> the matrix"?

When the matrix is not explicitly provided, lswr computes it. For that,
it needs the channel layout, because you do not mix a rear channel the
same way as a subwoofer. This patch absolutely needs to be tested under
these circumstances too.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180709/46ed51c9/attachment.sig>


More information about the ffmpeg-devel mailing list