1
0
Fork 0

fate/iamf: add an ambisonic test

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-01-23 12:34:52 -03:00
parent 8157b5d405
commit e8759580b1
5 changed files with 83 additions and 0 deletions

View File

@ -24,6 +24,15 @@ fate-iamf-7_1_4: CMD = transcode wav $(SRC) iamf "-auto_conversion_filters \
-/stream_group $(TARGET_PATH)/tests/data/streamgroups/mix_presentation-7_1_4 \
-streamid 0:0 -streamid 1:1 -streamid 2:2 -streamid 3:3 -streamid 4:4 -streamid 5:5 -streamid 6:6 -map [FRONT] -map [BACK] -map [CENTER] -map [LFE] -map [SIDE] -map [TOP_FRONT] -map [TOP_BACK] -c:a flac -t 1" "-c:a copy -map 0"
FATE_IAMF += fate-iamf-ambisonic_1
fate-iamf-ambisonic_1: tests/data/asynth-44100-4.wav tests/data/filtergraphs/iamf_ambisonic_1 tests/data/streamgroups/audio_element-ambisonic_1 tests/data/streamgroups/mix_presentation-ambisonic_1
fate-iamf-ambisonic_1: SRC = $(TARGET_PATH)/tests/data/asynth-44100-4.wav
fate-iamf-ambisonic_1: CMD = transcode wav $(SRC) iamf "-auto_conversion_filters \
-/filter_complex $(TARGET_PATH)/tests/data/filtergraphs/iamf_ambisonic_1 \
-/stream_group $(TARGET_PATH)/tests/data/streamgroups/audio_element-ambisonic_1 \
-/stream_group $(TARGET_PATH)/tests/data/streamgroups/mix_presentation-ambisonic_1 \
-streamid 0:0 -streamid 1:1 -streamid 2:2 -streamid 3:3 -map [MONO0] -map [MONO1] -map [MONO2] -map [MONO3] -c:a flac -t 1" "-c:a copy -map 0"
FATE_IAMF-$(call TRANSCODE, FLAC, IAMF, WAV_DEMUXER PCM_S16LE_DECODER) += $(FATE_IAMF)
FATE_FFMPEG += $(FATE_IAMF-yes)

View File

@ -0,0 +1,4 @@
[0:a]channelmap=0:mono[MONO0];
[0:a]channelmap=1:mono[MONO1];
[0:a]channelmap=2:mono[MONO2];
[0:a]channelmap=3:mono[MONO3];

View File

@ -0,0 +1,66 @@
0b66877e65e3e5bae46887aced977593 *tests/data/fate/iamf-ambisonic_1.iamf
57006 tests/data/fate/iamf-ambisonic_1.iamf
#extradata 0: 34, 0x3615025b
#extradata 1: 34, 0x3615025b
#extradata 2: 34, 0x3615025b
#extradata 3: 34, 0x3615025b
#tb 0: 1/44100
#media_type 0: audio
#codec_id 0: flac
#sample_rate 0: 44100
#channel_layout_name 0: mono
#tb 1: 1/44100
#media_type 1: audio
#codec_id 1: flac
#sample_rate 1: 44100
#channel_layout_name 1: mono
#tb 2: 1/44100
#media_type 2: audio
#codec_id 2: flac
#sample_rate 2: 44100
#channel_layout_name 2: mono
#tb 3: 1/44100
#media_type 3: audio
#codec_id 3: flac
#sample_rate 3: 44100
#channel_layout_name 3: mono
0, 0, 0, 4608, 1396, 0x0dcb5677
1, 0, 0, 4608, 1396, 0x0dcb5677
2, 0, 0, 4608, 1396, 0x0dcb5677
3, 0, 0, 4608, 1396, 0x0dcb5677
0, 4608, 4608, 4608, 1439, 0xc46b5ac5
1, 4608, 4608, 4608, 1439, 0xc46b5ac5
2, 4608, 4608, 4608, 1439, 0xc46b5ac5
3, 4608, 4608, 4608, 1439, 0xc46b5ac5
0, 9216, 9216, 4608, 1377, 0x5b2a55fe
1, 9216, 9216, 4608, 1377, 0x5b2a55fe
2, 9216, 9216, 4608, 1377, 0x5b2a55fe
3, 9216, 9216, 4608, 1377, 0x5b2a55fe
0, 13824, 13824, 4608, 1380, 0x045550d3
1, 13824, 13824, 4608, 1380, 0x045550d3
2, 13824, 13824, 4608, 1380, 0x045550d3
3, 13824, 13824, 4608, 1380, 0x045550d3
0, 18432, 18432, 4608, 1568, 0xa2bc45f4
1, 18432, 18432, 4608, 1568, 0xa2bc45f4
2, 18432, 18432, 4608, 1568, 0xa2bc45f4
3, 18432, 18432, 4608, 1568, 0xa2bc45f4
0, 23040, 23040, 4608, 1388, 0x96c85007
1, 23040, 23040, 4608, 1388, 0x96c85007
2, 23040, 23040, 4608, 1388, 0x96c85007
3, 23040, 23040, 4608, 1388, 0x96c85007
0, 27648, 27648, 4608, 1419, 0x4d4d466a
1, 27648, 27648, 4608, 1419, 0x4d4d466a
2, 27648, 27648, 4608, 1419, 0x4d4d466a
3, 27648, 27648, 4608, 1419, 0x4d4d466a
0, 32256, 32256, 4608, 1765, 0xacb84b24
1, 32256, 32256, 4608, 1765, 0xacb84b24
2, 32256, 32256, 4608, 1765, 0xacb84b24
3, 32256, 32256, 4608, 1765, 0xacb84b24
0, 36864, 36864, 4608, 1531, 0x996458aa
1, 36864, 36864, 4608, 1531, 0x996458aa
2, 36864, 36864, 4608, 1531, 0x996458aa
3, 36864, 36864, 4608, 1531, 0x996458aa
0, 41472, 41472, 4608, 923, 0xa7225edf
1, 41472, 41472, 4608, 923, 0xa7225edf
2, 41472, 41472, 4608, 923, 0xa7225edf
3, 41472, 41472, 4608, 923, 0xa7225edf

View File

@ -0,0 +1,2 @@
type=iamf_audio_element:id=1:st=0:st=1:st=2:st=3:audio_element_type=scene,
layer=ch_layout=ambisonic 1,

View File

@ -0,0 +1,2 @@
type=iamf_mix_presentation:id=2:stg=0:annotations=en-us=Mix_Presentation,
submix=parameter_id=100:parameter_rate=48000|element=stg=0:parameter_id=100:headphones_rendering_mode=stereo:annotations=en-us=Stereo_Submix|layout=sound_system=stereo,