[FFmpeg-devel] [PATCH 05/11] fate/audio: Add tests for APTX (HD)
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Mon Aug 30 00:27:38 EEST 2021
We have de- and encoders for APTX and APTX HD, yet not FATE tests.
This commit therefore adds a transcoding test to utilize them.
Furthermore, during creating these tests it turned out that
the duration is set incorrectly for APTX HD. This will be fixed
in a future commit.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
tests/fate/audio.mak | 14 ++++++++++++++
tests/ref/fate/aptx | 20 ++++++++++++++++++++
tests/ref/fate/aptx-hd | 16 ++++++++++++++++
3 files changed, 50 insertions(+)
create mode 100644 tests/ref/fate/aptx
create mode 100644 tests/ref/fate/aptx-hd
diff --git a/tests/fate/audio.mak b/tests/fate/audio.mak
index fd9905ca0a..dfa72288ae 100644
--- a/tests/fate/audio.mak
+++ b/tests/fate/audio.mak
@@ -1,3 +1,17 @@
+FATE_SAMPLES_AUDIO-$(call ALLYES, FILE_PROTOCOL WAV_DEMUXER PCM_S24LE_DECODER \
+ ARESAMPLE_FILTER APTX_ENCODER APTX_MUXER \
+ APTX_DEMUXER APTX_DECODER PCM_S16LE_ENCODER \
+ FRAMECRC_MUXER PIPE_PROTOCOL) \
+ += fate-aptx
+fate-aptx: CMD = transcode wav $(TARGET_SAMPLES)/audio-reference/divertimenti_2ch_96kHz_s24.wav aptx "-af aresample -c aptx" "-af aresample -c:a pcm_s16le -t 0.25"
+
+FATE_SAMPLES_AUDIO-$(call ALLYES, FILE_PROTOCOL WAV_DEMUXER PCM_S24LE_DECODER \
+ ARESAMPLE_FILTER APTX_HD_ENCODER \
+ APTX_HD_MUXER APTX_HD_DEMUXER APTX_HD_DECODER \
+ PCM_S32LE_ENCODER FRAMECRC_MUXER PIPE_PROTOCOL) \
+ += fate-aptx-hd
+fate-aptx-hd: CMD = transcode wav $(TARGET_SAMPLES)/audio-reference/divertimenti_2ch_96kHz_s24.wav aptx_hd "-af aresample -c aptx_hd" "-af aresample -c:a pcm_s32le -t 0.25" "" "" "" "aptx_hd"
+
FATE_BINKAUDIO-$(call DEMDEC, BINK, BINKAUDIO_DCT) += fate-binkaudio-dct
fate-binkaudio-dct: CMD = pcm -i $(TARGET_SAMPLES)/bink/binkaudio_dct.bik
fate-binkaudio-dct: REF = $(SAMPLES)/bink/binkaudio_dct.pcm
diff --git a/tests/ref/fate/aptx b/tests/ref/fate/aptx
new file mode 100644
index 0000000000..ff890f6943
--- /dev/null
+++ b/tests/ref/fate/aptx
@@ -0,0 +1,20 @@
+e36494e4eaa69dceb9746e784f928198 *tests/data/fate/aptx.aptx
+480000 tests/data/fate/aptx.aptx
+#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: pcm_s16le
+#sample_rate 0: 48000
+#channel_layout 0: 3
+#channel_layout_name 0: stereo
+0, 0, 0, 1024, 4096, 0x42e145b7
+0, 1024, 1024, 1024, 4096, 0xfe24da5f
+0, 2048, 2048, 1024, 4096, 0x5c9d2323
+0, 3072, 3072, 1024, 4096, 0xc7e155cf
+0, 4096, 4096, 1024, 4096, 0xff114281
+0, 5120, 5120, 1024, 4096, 0xd60bb6b0
+0, 6144, 6144, 1024, 4096, 0x2beaa892
+0, 7168, 7168, 1024, 4096, 0xc74c71ca
+0, 8192, 8192, 1024, 4096, 0xf49880cc
+0, 9216, 9216, 1024, 4096, 0x9eae2532
+0, 10240, 10240, 1024, 4096, 0x096863b2
+0, 11264, 11264, 736, 2944, 0x533118a3
diff --git a/tests/ref/fate/aptx-hd b/tests/ref/fate/aptx-hd
new file mode 100644
index 0000000000..825d0439b1
--- /dev/null
+++ b/tests/ref/fate/aptx-hd
@@ -0,0 +1,16 @@
+5cfb39f6d059dd0a906feabc12b3ac24 *tests/data/fate/aptx-hd.aptx_hd
+720000 tests/data/fate/aptx-hd.aptx_hd
+#tb 0: 1/48000
+#media_type 0: audio
+#codec_id 0: pcm_s32le
+#sample_rate 0: 48000
+#channel_layout 0: 3
+#channel_layout_name 0: stereo
+0, 0, 0, 1024, 8192, 0x85791bdb
+0, 1536, 1536, 1024, 8192, 0x8db6dfa9
+0, 3072, 3072, 1024, 8192, 0x617b2190
+0, 4608, 4608, 1024, 8192, 0x733c4d71
+0, 6144, 6144, 1024, 8192, 0xb254420c
+0, 7680, 7680, 1024, 8192, 0xc166b305
+0, 9216, 9216, 1024, 8192, 0x93e8a20e
+0, 10752, 10752, 1024, 8192, 0xd91c6790
--
2.30.2
More information about the ffmpeg-devel
mailing list