diff mbox series

[FFmpeg-devel,5/6] fate/amr[nw]b: Add remux tests

Message ID AM7PR03MB6660FF1459FBE41DF0E32AEB8F4C9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit b0a895a368a202e8e5f5c12ede0dcdb9c46af321
Headers show
Series [FFmpeg-devel] avformat/Makefile: Add missing libamqp->urldecode dependency | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Jan. 6, 2022, 12:07 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/fate/amrnb.mak       |  8 +++++-
 tests/fate/amrwb.mak       |  8 +++++-
 tests/ref/fate/amrnb-remux | 58 ++++++++++++++++++++++++++++++++++++++
 tests/ref/fate/amrwb-remux | 58 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 130 insertions(+), 2 deletions(-)
 create mode 100644 tests/ref/fate/amrnb-remux
 create mode 100644 tests/ref/fate/amrwb-remux
diff mbox series

Patch

diff --git a/tests/fate/amrnb.mak b/tests/fate/amrnb.mak
index c0feec25dc..f4f74f14d9 100644
--- a/tests/fate/amrnb.mak
+++ b/tests/fate/amrnb.mak
@@ -30,7 +30,13 @@  FATE_AMRNB += fate-amrnb-12k2
 fate-amrnb-12k2: CMD = pcm -i $(TARGET_SAMPLES)/amrnb/12.2k.amr
 fate-amrnb-12k2: REF = $(SAMPLES)/amrnb/12.2k.pcm
 
+FATE_AMRNB_REMUX-$(call ALLYES, FILE_PROTOCOL AMR_DEMUXER AMR_PARSER    \
+                                AMR_MUXER FRAMECRC_MUXER PIPE_PROTOCOL) \
+                                += fate-amrnb-remux
+fate-amrnb-remux: CMD = transcode amr $(TARGET_SAMPLES)/amrnb/10.2k.amr amr "-c copy" "-c copy -t 1"
+
 $(FATE_AMRNB): CMP = stddev
 
 FATE_SAMPLES_AVCONV-$(call DEMDEC, AMR, AMRNB) += $(FATE_AMRNB)
-fate-amrnb: $(FATE_AMRNB)
+FATE_SAMPLES_FFMPEG += $(FATE_AMRNB_REMUX-yes)
+fate-amrnb: $(FATE_AMRNB) $(FATE_AMRNB_REMUX-yes)
diff --git a/tests/fate/amrwb.mak b/tests/fate/amrwb.mak
index b93835d76d..617cefca00 100644
--- a/tests/fate/amrwb.mak
+++ b/tests/fate/amrwb.mak
@@ -41,7 +41,13 @@  FATE_AMRWB += fate-amrwb-23k85-2
 fate-amrwb-23k85-2: CMD = pcm -i $(TARGET_SAMPLES)/amrwb/deus-23k85.awb
 fate-amrwb-23k85-2: REF = $(SAMPLES)/amrwb/deus-23k85.pcm
 
+FATE_AMRWB_REMUX-$(call ALLYES, FILE_PROTOCOL MOV_DEMUXER AMR_PARSER AMR_MUXER \
+                                AMR_DEMUXER FRAMECRC_MUXER PIPE_PROTOCOL)      \
+                                += fate-amrwb-remux
+fate-amrwb-remux: CMD = transcode mov $(TARGET_SAMPLES)/amrwb/seed-23k85.awb amr "-c copy" "-c copy -t 1"
+
 $(FATE_AMRWB): CMP = stddev
 
 FATE_SAMPLES_AVCONV-$(call DEMDEC, AMR, AMRWB) += $(FATE_AMRWB)
-fate-amrwb: $(FATE_AMRWB)
+FATE_SAMPLES_FFMPEG += $(FATE_AMRWB_REMUX-yes)
+fate-amrwb: $(FATE_AMRWB) $(FATE_AMRWB_REMUX-yes)
diff --git a/tests/ref/fate/amrnb-remux b/tests/ref/fate/amrnb-remux
new file mode 100644
index 0000000000..4a78c479f2
--- /dev/null
+++ b/tests/ref/fate/amrnb-remux
@@ -0,0 +1,58 @@ 
+55311d26f9bb6faa36d99ee7cd34ee05 *tests/data/fate/amrnb-remux.amr
+7674 tests/data/fate/amrnb-remux.amr
+#tb 0: 1/8000
+#media_type 0: audio
+#codec_id 0: amr_nb
+#sample_rate 0: 8000
+#channel_layout 0: 4
+#channel_layout_name 0: mono
+0,          0,          0,      160,       27, 0xc9970c51
+0,        160,        160,      160,       27, 0xbaa00d05
+0,        320,        320,      160,       27, 0xa8af0d60
+0,        480,        480,      160,       27, 0xb6750d9f
+0,        640,        640,      160,       27, 0xcd7d0e5f
+0,        800,        800,      160,       27, 0xaf740d0f
+0,        960,        960,      160,       27, 0xcb1c0f93
+0,       1120,       1120,      160,       27, 0xccfd0e02
+0,       1280,       1280,      160,       27, 0xb3e60d1e
+0,       1440,       1440,      160,       27, 0xbe510d70
+0,       1600,       1600,      160,       27, 0xbeb30d65
+0,       1760,       1760,      160,       27, 0xd4730f2b
+0,       1920,       1920,      160,       27, 0xa8540cd0
+0,       2080,       2080,      160,       27, 0xafdb0c14
+0,       2240,       2240,      160,       27, 0xd9930f24
+0,       2400,       2400,      160,       27, 0xbe5f0cec
+0,       2560,       2560,      160,       27, 0xb44b0c6d
+0,       2720,       2720,      160,       27, 0xdc160ec9
+0,       2880,       2880,      160,       27, 0xb8a20ce3
+0,       3040,       3040,      160,       27, 0xb9120c90
+0,       3200,       3200,      160,       27, 0xcdc70e7f
+0,       3360,       3360,      160,       27, 0xc7c20f06
+0,       3520,       3520,      160,       27, 0xda530f0e
+0,       3680,       3680,      160,       27, 0x90750abc
+0,       3840,       3840,      160,       27, 0xa4840b6d
+0,       4000,       4000,      160,       27, 0x96ed0ad1
+0,       4160,       4160,      160,       27, 0xb6b30c26
+0,       4320,       4320,      160,       27, 0x786909ce
+0,       4480,       4480,      160,       27, 0xa4ae0c7d
+0,       4640,       4640,      160,       27, 0x9ff90ba2
+0,       4800,       4800,      160,       27, 0x914c0c22
+0,       4960,       4960,      160,       27, 0xa8df0c9c
+0,       5120,       5120,      160,       27, 0xb67f0d8e
+0,       5280,       5280,      160,       27, 0xb6810cca
+0,       5440,       5440,      160,       27, 0xa6110c80
+0,       5600,       5600,      160,       27, 0xda0f0ecf
+0,       5760,       5760,      160,       27, 0xd6270e0d
+0,       5920,       5920,      160,       27, 0xd2150ffc
+0,       6080,       6080,      160,       27, 0xbd010da4
+0,       6240,       6240,      160,       27, 0xb9eb0e46
+0,       6400,       6400,      160,       27, 0xc8a80eb6
+0,       6560,       6560,      160,       27, 0xcc6b0cec
+0,       6720,       6720,      160,       27, 0xab190db0
+0,       6880,       6880,      160,       27, 0xb3f90ca7
+0,       7040,       7040,      160,       27, 0xa84a0cc9
+0,       7200,       7200,      160,       27, 0xcdca0e8d
+0,       7360,       7360,      160,       27, 0xaf8b0d1c
+0,       7520,       7520,      160,       27, 0xd9980e15
+0,       7680,       7680,      160,       27, 0xcf810f8e
+0,       7840,       7840,      160,       27, 0xb7810bd0
diff --git a/tests/ref/fate/amrwb-remux b/tests/ref/fate/amrwb-remux
new file mode 100644
index 0000000000..c350fc0b61
--- /dev/null
+++ b/tests/ref/fate/amrwb-remux
@@ -0,0 +1,58 @@ 
+3634e03f106db1da796059bde3258efc *tests/data/fate/amrwb-remux.amr
+31241 tests/data/fate/amrwb-remux.amr
+#tb 0: 1/16000
+#media_type 0: audio
+#codec_id 0: amr_wb
+#sample_rate 0: 16000
+#channel_layout 0: 4
+#channel_layout_name 0: mono
+0,          0,          0,      320,       61, 0xc8891fe9
+0,        320,        320,      320,       61, 0xc2562027
+0,        640,        640,      320,       61, 0xe46e207f
+0,        960,        960,      320,       61, 0xa27a1c46
+0,       1280,       1280,      320,       61, 0xf1d42007
+0,       1600,       1600,      320,       61, 0x50d61af4
+0,       1920,       1920,      320,       61, 0xbacf1eef
+0,       2240,       2240,      320,       61, 0xbd691d7b
+0,       2560,       2560,      320,       61, 0xfd1323a2
+0,       2880,       2880,      320,       61, 0x7ca01f0e
+0,       3200,       3200,      320,       61, 0x2f812276
+0,       3520,       3520,      320,       61, 0xaef41ca8
+0,       3840,       3840,      320,       61, 0x2560211f
+0,       4160,       4160,      320,       61, 0xd6ad1fd4
+0,       4480,       4480,      320,       61, 0x87d81d18
+0,       4800,       4800,      320,       61, 0x11531a44
+0,       5120,       5120,      320,       61, 0x83011d4f
+0,       5440,       5440,      320,       61, 0xca39211f
+0,       5760,       5760,      320,       61, 0xa0031e8d
+0,       6080,       6080,      320,       61, 0x0b8a1980
+0,       6400,       6400,      320,       61, 0xd2931e62
+0,       6720,       6720,      320,       61, 0x0f7820fd
+0,       7040,       7040,      320,       61, 0xcc8c2149
+0,       7360,       7360,      320,       61, 0x29f82236
+0,       7680,       7680,      320,       61, 0xf7a71f9c
+0,       8000,       8000,      320,       61, 0xa64f1cba
+0,       8320,       8320,      320,       61, 0x685321c1
+0,       8640,       8640,      320,       61, 0x48002221
+0,       8960,       8960,      320,       61, 0xef0a1f53
+0,       9280,       9280,      320,       61, 0x31e321a0
+0,       9600,       9600,      320,       61, 0xb49f1ead
+0,       9920,       9920,      320,       61, 0xe5bb1f9d
+0,      10240,      10240,      320,       61, 0xc5971d19
+0,      10560,      10560,      320,       61, 0x33182328
+0,      10880,      10880,      320,       61, 0xb791204e
+0,      11200,      11200,      320,       61, 0x5db81bd8
+0,      11520,      11520,      320,       61, 0x9f171da7
+0,      11840,      11840,      320,       61, 0xec4a1974
+0,      12160,      12160,      320,       61, 0x980620e1
+0,      12480,      12480,      320,       61, 0x74cf1d0c
+0,      12800,      12800,      320,       61, 0xea761ef7
+0,      13120,      13120,      320,       61, 0xa1da1cc7
+0,      13440,      13440,      320,       61, 0x68741b28
+0,      13760,      13760,      320,       61, 0x87991cee
+0,      14080,      14080,      320,       61, 0x955f1d0f
+0,      14400,      14400,      320,       61, 0x8eea1e69
+0,      14720,      14720,      320,       61, 0xadb21ede
+0,      15040,      15040,      320,       61, 0xace61e29
+0,      15360,      15360,      320,       61, 0x67441c17
+0,      15680,      15680,      320,       61, 0x7f1b1e7c