diff mbox series

[FFmpeg-devel,3/3] fate/atrac: Add atrac->aea, atrac->matroska remux tests

Message ID AS8P250MB0744F886334A8F2E46AC1D808F282@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit d1e446f2e139a694901602d9dc16ad8f4d6d2be2
Headers show
Series [FFmpeg-devel,1/3] avformat/aeadec: Export title | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished

Commit Message

Andreas Rheinhardt March 15, 2024, 4:43 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 tests/fate/atrac.mak                | 12 +++-
 tests/ref/fate/atrac-aea-remux      | 94 +++++++++++++++++++++++++++++
 tests/ref/fate/atrac-matroska-remux | 94 +++++++++++++++++++++++++++++
 3 files changed, 198 insertions(+), 2 deletions(-)
 create mode 100644 tests/ref/fate/atrac-aea-remux
 create mode 100644 tests/ref/fate/atrac-matroska-remux
diff mbox series

Patch

diff --git a/tests/fate/atrac.mak b/tests/fate/atrac.mak
index 1c91357559..592d1819df 100644
--- a/tests/fate/atrac.mak
+++ b/tests/fate/atrac.mak
@@ -37,8 +37,16 @@  FATE_ATRAC_ALL = $(FATE_ATRAC1-yes) $(FATE_ATRAC3-yes) $(FATE_ATRAC3P-yes)
 
 $(FATE_ATRAC_ALL): CMP = oneoff
 
-FATE_SAMPLES_AVCONV += $(FATE_ATRAC_ALL)
+FATE_ATRAC_REMUX-$(call REMUX, AEA) += fate-atrac-aea-remux
+fate-atrac-aea-remux: CMD = transcode aea $(TARGET_SAMPLES)/atrac1/test_tones_small.aea \
+                            aea "-c copy" "-c copy -t 1"
 
-fate-atrac:   $(FATE_ATRAC_ALL)
+FATE_ATRAC_REMUX-$(call REMUX, MATROSKA, AEA_DEMUXER ATRAC1_DECODER) += fate-atrac-matroska-remux
+fate-atrac-matroska-remux: CMD = transcode aea $(TARGET_SAMPLES)/aea/chirp.aea \
+                                 matroska "-c copy" "-c copy -t 1"
+
+FATE_SAMPLES_FFMPEG += $(FATE_ATRAC_ALL) $(FATE_ATRAC_REMUX-yes)
+
+fate-atrac:   $(FATE_ATRAC_ALL) $(FATE_ATRAC_REMUX-yes)
 fate-atrac3:  $(FATE_ATRAC3-yes)
 fate-atrac3p: $(FATE_ATRAC3P-yes)
diff --git a/tests/ref/fate/atrac-aea-remux b/tests/ref/fate/atrac-aea-remux
new file mode 100644
index 0000000000..45bab7abbb
--- /dev/null
+++ b/tests/ref/fate/atrac-aea-remux
@@ -0,0 +1,94 @@ 
+1fd2eaaebf44772f959c25b58eda9b5d *tests/data/fate/atrac-aea-remux.aea
+100000 tests/data/fate/atrac-aea-remux.aea
+#tb 0: 1/44100
+#media_type 0: audio
+#codec_id 0: atrac1
+#sample_rate 0: 44100
+#channel_layout_name 0: stereo
+0,          0,          0,      512,      424, 0x3b6509a4
+0,        512,        512,      512,      424, 0x3b6509a4
+0,       1024,       1024,      512,      424, 0x3b6509a4
+0,       1536,       1536,      512,      424, 0x3b6509a4
+0,       2048,       2048,      512,      424, 0x3b6509a4
+0,       2560,       2560,      512,      424, 0x3b6509a4
+0,       3072,       3072,      512,      424, 0x3b6509a4
+0,       3584,       3584,      512,      424, 0x3b6509a4
+0,       4096,       4096,      512,      424, 0x3b6509a4
+0,       4608,       4608,      512,      424, 0x3b6509a4
+0,       5120,       5120,      512,      424, 0x3b6509a4
+0,       5632,       5632,      512,      424, 0x3b6509a4
+0,       6144,       6144,      512,      424, 0x3b6509a4
+0,       6656,       6656,      512,      424, 0x3b6509a4
+0,       7168,       7168,      512,      424, 0x3b6509a4
+0,       7680,       7680,      512,      424, 0x3b6509a4
+0,       8192,       8192,      512,      424, 0x3b6509a4
+0,       8704,       8704,      512,      424, 0x3b6509a4
+0,       9216,       9216,      512,      424, 0x3b6509a4
+0,       9728,       9728,      512,      424, 0x3b6509a4
+0,      10240,      10240,      512,      424, 0x3b6509a4
+0,      10752,      10752,      512,      424, 0x3b6509a4
+0,      11264,      11264,      512,      424, 0x3b6509a4
+0,      11776,      11776,      512,      424, 0x3b6509a4
+0,      12288,      12288,      512,      424, 0x3b6509a4
+0,      12800,      12800,      512,      424, 0x3b6509a4
+0,      13312,      13312,      512,      424, 0x3b6509a4
+0,      13824,      13824,      512,      424, 0x3b6509a4
+0,      14336,      14336,      512,      424, 0x3b6509a4
+0,      14848,      14848,      512,      424, 0x3b6509a4
+0,      15360,      15360,      512,      424, 0x3b6509a4
+0,      15872,      15872,      512,      424, 0x3b6509a4
+0,      16384,      16384,      512,      424, 0x3b6509a4
+0,      16896,      16896,      512,      424, 0x3b6509a4
+0,      17408,      17408,      512,      424, 0x3b6509a4
+0,      17920,      17920,      512,      424, 0x3b6509a4
+0,      18432,      18432,      512,      424, 0x3b6509a4
+0,      18944,      18944,      512,      424, 0x3b6509a4
+0,      19456,      19456,      512,      424, 0x3b6509a4
+0,      19968,      19968,      512,      424, 0x3b6509a4
+0,      20480,      20480,      512,      424, 0x3b6509a4
+0,      20992,      20992,      512,      424, 0x3b6509a4
+0,      21504,      21504,      512,      424, 0x3b6509a4
+0,      22016,      22016,      512,      424, 0x3b6509a4
+0,      22528,      22528,      512,      424, 0x3b6509a4
+0,      23040,      23040,      512,      424, 0x3b6509a4
+0,      23552,      23552,      512,      424, 0x3b6509a4
+0,      24064,      24064,      512,      424, 0x3b6509a4
+0,      24576,      24576,      512,      424, 0x3b6509a4
+0,      25088,      25088,      512,      424, 0x3b6509a4
+0,      25600,      25600,      512,      424, 0x3b6509a4
+0,      26112,      26112,      512,      424, 0x3b6509a4
+0,      26624,      26624,      512,      424, 0x3b6509a4
+0,      27136,      27136,      512,      424, 0x3b6509a4
+0,      27648,      27648,      512,      424, 0x3b6509a4
+0,      28160,      28160,      512,      424, 0x3b6509a4
+0,      28672,      28672,      512,      424, 0x3b6509a4
+0,      29184,      29184,      512,      424, 0x3b6509a4
+0,      29696,      29696,      512,      424, 0x3b6509a4
+0,      30208,      30208,      512,      424, 0x3b6509a4
+0,      30720,      30720,      512,      424, 0x3b6509a4
+0,      31232,      31232,      512,      424, 0x9699a148
+0,      31744,      31744,      512,      424, 0x4b15b57e
+0,      32256,      32256,      512,      424, 0x690fbe86
+0,      32768,      32768,      512,      424, 0x8980bea4
+0,      33280,      33280,      512,      424, 0xc792c244
+0,      33792,      33792,      512,      424, 0x57e1bac4
+0,      34304,      34304,      512,      424, 0xe813bebe
+0,      34816,      34816,      512,      424, 0x022cbf4e
+0,      35328,      35328,      512,      424, 0x36e1bdce
+0,      35840,      35840,      512,      424, 0x243dbdf4
+0,      36352,      36352,      512,      424, 0x8eeebba8
+0,      36864,      36864,      512,      424, 0x8088bbac
+0,      37376,      37376,      512,      424, 0xf75fbc8c
+0,      37888,      37888,      512,      424, 0x9678c284
+0,      38400,      38400,      512,      424, 0x45edbc50
+0,      38912,      38912,      512,      424, 0xe9ffbe1e
+0,      39424,      39424,      512,      424, 0x694bbdf0
+0,      39936,      39936,      512,      424, 0x3f1ab970
+0,      40448,      40448,      512,      424, 0x6114bbbe
+0,      40960,      40960,      512,      424, 0xf67cc210
+0,      41472,      41472,      512,      424, 0x9d9cbf4c
+0,      41984,      41984,      512,      424, 0x72ecbe4e
+0,      42496,      42496,      512,      424, 0x1bb4be96
+0,      43008,      43008,      512,      424, 0x467cbc1c
+0,      43520,      43520,      512,      424, 0x1b2abc80
+0,      44032,      44032,      512,      424, 0xd0e3befc
diff --git a/tests/ref/fate/atrac-matroska-remux b/tests/ref/fate/atrac-matroska-remux
new file mode 100644
index 0000000000..b34e801806
--- /dev/null
+++ b/tests/ref/fate/atrac-matroska-remux
@@ -0,0 +1,94 @@ 
+1e0eab5c5cb6ee0a77ff9c4611a3044b *tests/data/fate/atrac-matroska-remux.matroska
+450932 tests/data/fate/atrac-matroska-remux.matroska
+#tb 0: 1/1000
+#media_type 0: audio
+#codec_id 0: atrac1
+#sample_rate 0: 44100
+#channel_layout_name 0: stereo
+0,          0,          0,       11,      424, 0x3b6509a4
+0,         12,         12,       11,      424, 0x3b6509a4
+0,         23,         23,       11,      424, 0x3b6509a4
+0,         35,         35,       11,      424, 0x3b6509a4
+0,         46,         46,       11,      424, 0x3b6509a4
+0,         58,         58,       11,      424, 0x3b6509a4
+0,         70,         70,       11,      424, 0x3b6509a4
+0,         81,         81,       11,      424, 0x3b6509a4
+0,         93,         93,       11,      424, 0x3b6509a4
+0,        104,        104,       11,      424, 0x3b6509a4
+0,        116,        116,       11,      424, 0x3b6509a4
+0,        128,        128,       11,      424, 0x3b6509a4
+0,        139,        139,       11,      424, 0x3b6509a4
+0,        151,        151,       11,      424, 0x3b6509a4
+0,        163,        163,       11,      424, 0x3b6509a4
+0,        174,        174,       11,      424, 0x3b6509a4
+0,        186,        186,       11,      424, 0x3b6509a4
+0,        197,        197,       11,      424, 0x3b6509a4
+0,        209,        209,       11,      424, 0x3b6509a4
+0,        221,        221,       11,      424, 0x3b6509a4
+0,        232,        232,       11,      424, 0x3b6509a4
+0,        244,        244,       11,      424, 0x3b6509a4
+0,        255,        255,       11,      424, 0x3b6509a4
+0,        267,        267,       11,      424, 0x3b6509a4
+0,        279,        279,       11,      424, 0x3b6509a4
+0,        290,        290,       11,      424, 0x3b6509a4
+0,        302,        302,       11,      424, 0x3b6509a4
+0,        313,        313,       11,      424, 0x3b6509a4
+0,        325,        325,       11,      424, 0x3b6509a4
+0,        337,        337,       11,      424, 0x3b6509a4
+0,        348,        348,       11,      424, 0x3b6509a4
+0,        360,        360,       11,      424, 0x3b6509a4
+0,        372,        372,       11,      424, 0x3b6509a4
+0,        383,        383,       11,      424, 0x3b6509a4
+0,        395,        395,       11,      424, 0x3b6509a4
+0,        406,        406,       11,      424, 0x3b6509a4
+0,        418,        418,       11,      424, 0x3b6509a4
+0,        430,        430,       11,      424, 0x3b6509a4
+0,        441,        441,       11,      424, 0x3b6509a4
+0,        453,        453,       11,      424, 0x3b6509a4
+0,        464,        464,       11,      424, 0x3b6509a4
+0,        476,        476,       11,      424, 0x3b6509a4
+0,        488,        488,       11,      424, 0x3b6509a4
+0,        499,        499,       11,      424, 0x3b6509a4
+0,        511,        511,       11,      424, 0x3b6509a4
+0,        522,        522,       11,      424, 0x3b6509a4
+0,        534,        534,       11,      424, 0x3b6509a4
+0,        546,        546,       11,      424, 0x3b6509a4
+0,        557,        557,       11,      424, 0x3b6509a4
+0,        569,        569,       11,      424, 0x3b6509a4
+0,        580,        580,       11,      424, 0x3b6509a4
+0,        592,        592,       11,      424, 0x3b6509a4
+0,        604,        604,       11,      424, 0x3b6509a4
+0,        615,        615,       11,      424, 0x3b6509a4
+0,        627,        627,       11,      424, 0x3b6509a4
+0,        639,        639,       11,      424, 0x3b6509a4
+0,        650,        650,       11,      424, 0x3b6509a4
+0,        662,        662,       11,      424, 0x3b6509a4
+0,        673,        673,       11,      424, 0x3b6509a4
+0,        685,        685,       11,      424, 0x3b6509a4
+0,        697,        697,       11,      424, 0x3b6509a4
+0,        708,        708,       11,      424, 0x9699a148
+0,        720,        720,       11,      424, 0x4b15b57e
+0,        731,        731,       11,      424, 0x690fbe86
+0,        743,        743,       11,      424, 0x8980bea4
+0,        755,        755,       11,      424, 0xc792c244
+0,        766,        766,       11,      424, 0x57e1bac4
+0,        778,        778,       11,      424, 0xe813bebe
+0,        789,        789,       11,      424, 0x022cbf4e
+0,        801,        801,       11,      424, 0x36e1bdce
+0,        813,        813,       11,      424, 0x243dbdf4
+0,        824,        824,       11,      424, 0x8eeebba8
+0,        836,        836,       11,      424, 0x8088bbac
+0,        848,        848,       11,      424, 0xf75fbc8c
+0,        859,        859,       11,      424, 0x9678c284
+0,        871,        871,       11,      424, 0x45edbc50
+0,        882,        882,       11,      424, 0xe9ffbe1e
+0,        894,        894,       11,      424, 0x694bbdf0
+0,        906,        906,       11,      424, 0x3f1ab970
+0,        917,        917,       11,      424, 0x6114bbbe
+0,        929,        929,       11,      424, 0xf67cc210
+0,        940,        940,       11,      424, 0x9d9cbf4c
+0,        952,        952,       11,      424, 0x72ecbe4e
+0,        964,        964,       11,      424, 0x1bb4be96
+0,        975,        975,       11,      424, 0x467cbc1c
+0,        987,        987,       11,      424, 0x1b2abc80
+0,        998,        998,       11,      424, 0xd0e3befc