[FFmpeg-cvslog] avfilter: Dont partially merge lists

Michael Niedermayer michaelni at gmx.at
Tue Aug 6 14:40:43 CEST 2013


On Mon, Aug 05, 2013 at 10:45:51PM +0000, Carl Eugen Hoyos wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> 
> > > > avfilter: Dont partially merge lists
> > > 
> > > This patch changes the output of the following command:
> > > $ ffmpeg -i 5.1.ac3 -af aformat=channel_layouts=stereo out.wav
> > > A user believes that this is a bug:
> > > ffmpeg-user: "Preserving perceived loudness when downmixing 
> > > audio from 5.1 AC3 to stereo AAC"
> > 
> > when downmixing to s16 how could you preserve the loudness 
> > without risking cliping ?
> > mix 2 channels out[i] = in0[i] + in1[i]
> > assume in is +-32767
> 
> I understand but why was this different before this commit?

there where 2 resamplers, the first did 5.1 float-> stereo float
and did not compensate for cliping because float would nor clip

The alternative would be to always do downscale for cliping
avoidance because there _might_ be a convertion to s16/s32 later

iam happy with whatever our users prefer


> 
> Carl Eugen
> 
> _______________________________________________
> ffmpeg-cvslog mailing list
> ffmpeg-cvslog at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
> 

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- 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-cvslog/attachments/20130806/c78f0173/attachment.asc>


More information about the ffmpeg-cvslog mailing list