[FFmpeg-devel] [PATCH] Change default behaviour of scale filter from 'progressive' to 'auto'

Tim Nicholson nichot20 at yahoo.com
Tue Apr 17 11:15:15 CEST 2012

On 04/04/12 19:20, Reimar Döffinger wrote:
> On Wed, Apr 04, 2012 at 03:15:08PM +0100, Tim Nicholson wrote:
>> ----- Original Message -----
>>> From: Baptiste Coudurier <baptiste.coudurier at gmail.com>
>>> To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
>>> Cc: Tim Nicholson <nichot20 at yahoo.com>
>>> Sent: Wednesday, 4 April 2012, 2:48
>>> Subject: Re: [FFmpeg-devel] [PATCH] Change default behaviour of scale filter from 'progressive' to 'auto'
>>> On 04/03/2012 09:07 AM, Tim Nicholson wrote:
>> [....]
>>>>  diff --git a/tests/ref/vsynth1/dnxhd_1080i b/tests/ref/vsynth1/dnxhd_1080i
>>>>  index f8f6df0..de4732e 100644
>>>>  --- a/tests/ref/vsynth1/dnxhd_1080i
>>>>  +++ b/tests/ref/vsynth1/dnxhd_1080i
>>>>  @@ -1,4 +1,4 @@
>>>>   027c985483caab9397592bf27477dce1 *./tests/data/vsynth1/dnxhd-1080i.mov
>>>>   3031911 ./tests/data/vsynth1/dnxhd-1080i.mov
>>>>  -0c651e840f860592f0d5b66030d9fa32 *./tests/data/dnxhd_1080i.vsynth1.out.yuv
>>>>  -stddev:    6.29 PSNR: 32.15 MAXDIFF:   64 bytes:   760320/  7603200
>>>>  +3c3226518a0f56468bf56a6682e31fae *./tests/data/dnxhd_1080i.vsynth1.out.yuv
>>>>  +stddev:   14.22 PSNR: 25.07 MAXDIFF:  119 bytes:   760320/  7603200
>>> A default change that produces a difference like this is unacceptable IMHO.
>>> This is quite a big difference.
>> If this was a real world case would agree. However the fate test deliberately puts progressive material in an interlaced stream, and then back again. If you do the same round trip with interlaced material the results are very different. The results are only worse because the stream is being handled in the format it claims to be, rather than blindly handled progressively.
> However that is a rather real-world behaviour for DV and DNxHD files as
> far as I can tell.
> But regardless of that, I am very much against changing the test
> reference, that bad PSNR will make it hard to see actually codec
> bugs.
> Instead the command for the test case should be changed so that the
> scale filter is forced to use progressive scaling.

Thanks for all the input.

Attached a rebased version of the original patch, together with a patch
that changes the command of the test cases that originally failed fate,
in order for them to now pass after application of the original patch.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-default-setting-of-parameter-interl-1-auto.patch
Type: text/x-patch
Size: 2108 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120417/0c4ff33b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-modified-fate-test-parameters-to-force-progressive-s.patch
Type: text/x-patch
Size: 1846 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120417/0c4ff33b/attachment-0001.bin>

More information about the ffmpeg-devel mailing list