[FFmpeg-devel] [RFC] lavfi-audio test

Stefano Sabatini stefano.sabatini-lala at poste.it
Wed Jul 20 01:18:28 CEST 2011

On date Monday 2011-07-18 01:41:49 +0200, Stefano Sabatini encoded:
> In attachment a proof-of-concept patch for adding an audio lavfi test.
> The main problem is that we need to know which are the supported
> channel layouts conversions.
> Since the rematrixing code is currently contained in the aconvert
> filter (mnzaki ffmpeg clone on github), this information could be
> somehow exposed by the aconvert filter itself (e.g. through an
> OPT_EXIT function) or we may simply hardcode the supported conversions
> in the script itself (which seems safe enough).
> Thoughts? Mina?
> -- 
> FFmpeg = Formidable and Friendly Marvellous Power Erudite Guide

> From a81a8714d06af3514bfebfd1dadb70647f3af0ba Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Mon, 18 Jul 2011 01:27:17 +0200
> Subject: [PATCH] lavfi-test: add regression test for audio
> Not yet usable, we need to know which X->Y conversions are supported
> by the aconvert filter.

Added a check on the supported layout conversions, now I get:
$ make V=1 fate-lavfi-audiofmts_anull
TEST    lavfi-audiofmts_anull
./tests/fate-run.sh fate-lavfi-audiofmts_anull "" "" "/home/stefano/src/ffmpeg-mnzaki2" 'lavfitest' '' '' '' '' ''
/home/stefano/src/ffmpeg-mnzaki2/ffmpeg -v 0 -y -flags +bitexact -idct simple -sws_flags +accurate_rnd+bitexact -threads 1 -ar 44100 -ac 2 -sample_fmt s16 -i /home/stefano/src/ffmpeg-mnzaki2/./tests/data/asynth1.sw -flags +bitexact -idct simple -sws_flags +accurate_rnd+bitexact -threads 1 -dct fastint -af aformat=dbl:mono:packed,anull= -acodec pcm_f64le -sample_fmt dbl -f nut md5:
--- ./tests/ref/lavfi/audiofmts_anull	2011-07-18 00:51:31.000000000 +0200
+++ tests/data/fate/lavfi-audiofmts_anull	2011-07-20 01:13:54.000000000 +0200
@ -1 +1 @@
\ No newline at end of file
\ No newline at end of file
make: *** [fate-lavfi-audiofmts_anull] Error 

or in other words the -af aformat=dbl:mono:packed,anull filter is
crashing ffmpeg.

Mina, can you have a look?

This patch depends on the already posted lavfi-showfiltfmts (which I'm
resending), and is tested against the origin/audio-filters-20110716
FFmpeg = Formidable & Furious Minimalistic Pure Extended Game
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-lavfi-showfiltfmts-extend-output-format-for-specifyi.patch
Type: text/x-diff
Size: 5933 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110720/b8cacd04/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-lavfi-test-add-regression-test-stub-for-audio-filter.patch
Type: text/x-diff
Size: 2639 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110720/b8cacd04/attachment-0001.bin>

More information about the ffmpeg-devel mailing list