ffmpeg/tests/ref/fate/iamf-5_1-demux
James Almer 7dabad079b avformat/iamf: byteswap values in OpusHeader
Clause 3.11.1 of IAMF[1] states the values are stored in big endian, in
contrast to the Ogg Encapsulation for Opus[2] where they are in little endian.

[1]https://aomediacodec.github.io/iamf/v1.0.0-errata.html#opus-specific
[2]https://datatracker.ietf.org/doc/html/rfc7845#section-5.1

Signed-off-by: James Almer <jamrial@gmail.com>
2024-07-18 23:27:20 -03:00

314 lines
6.2 KiB
Plaintext

#extradata 0: 19, 0x3a0e0490
#extradata 1: 19, 0x3a0e0490
#extradata 2: 19, 0x3a04048f
#extradata 3: 19, 0x3a04048f
#tb 0: 1/48000
#media_type 0: audio
#codec_id 0: opus
#sample_rate 0: 48000
#channel_layout_name 0: stereo
#tb 1: 1/48000
#media_type 1: audio
#codec_id 1: opus
#sample_rate 1: 48000
#channel_layout_name 1: stereo
#tb 2: 1/48000
#media_type 2: audio
#codec_id 2: opus
#sample_rate 2: 48000
#channel_layout_name 2: mono
#tb 3: 1/48000
#media_type 3: audio
#codec_id 3: opus
#sample_rate 3: 48000
#channel_layout_name 3: mono
[STREAM_GROUP]
index=0
id=0x12c
nb_streams=4
type=IAMF Audio Element
[COMPONENT]
nb_layers=2
audio_element_type=0
default_w=0
[SUBCOMPONENT]
channel_layout=stereo
output_gain_flags=0
output_gain=0/1
[/SUBCOMPONENT]
[SUBCOMPONENT]
channel_layout=5.1
output_gain_flags=0
output_gain=0/1
[/SUBCOMPONENT]
[SUBCOMPONENT]
name=demixing_info
nb_subblocks=1
type=1
parameter_id=998
parameter_rate=48000
duration=960
constant_subblock_duration=960
[PIECE]
subblock_duration=960
dmixp_mode=1
[/PIECE]
[/SUBCOMPONENT]
[SUBCOMPONENT]
name=recon_gain_info
nb_subblocks=1
type=2
parameter_id=101
parameter_rate=48000
duration=960
constant_subblock_duration=960
[PIECE]
subblock_duration=960
[/PIECE]
[/SUBCOMPONENT]
[/COMPONENT]
[STREAM]
index=0
id=0x0
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[STREAM]
index=1
id=0x1
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=1
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[STREAM]
index=2
id=0x2
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=1
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[STREAM]
index=3
id=0x3
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=1
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[/STREAM_GROUP]
[STREAM_GROUP]
index=1
id=0x2a
nb_streams=4
type=IAMF Mix Presentation
[COMPONENT]
nb_submixes=1
[SUBCOMPONENT]
en-us=test_mix_pres
[/SUBCOMPONENT]
[SUBCOMPONENT]
nb_elements=1
nb_layouts=2
default_mix_gain=0/256
[PIECE]
stream_id=300
default_mix_gain=0/256
headphones_rendering_mode=0
[SUBPIECE]
en-us=test_sub_mix_0_audio_element_0
[/SUBPIECE]
[SUBPIECE]
name=element_mix_config
nb_subblocks=0
type=0
parameter_id=100
parameter_rate=48000
duration=0
constant_subblock_duration=0
[/SUBPIECE]
[/PIECE]
[PIECE]
name=output_mix_config
nb_subblocks=0
type=0
parameter_id=100
parameter_rate=48000
duration=0
constant_subblock_duration=0
[/PIECE]
[PIECE]
sound_system=stereo
integrated_loudness=-5273/256
digital_peak=-2197/256
true_peak=0/1
dialogue_anchored_loudness=0/1
album_anchored_loudness=0/1
[/PIECE]
[PIECE]
sound_system=5.1
integrated_loudness=-5886/256
digital_peak=-2845/256
true_peak=0/1
dialogue_anchored_loudness=0/1
album_anchored_loudness=0/1
[/PIECE]
[/SUBCOMPONENT]
[/COMPONENT]
[STREAM]
index=0
id=0x0
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[STREAM]
index=1
id=0x1
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=1
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[STREAM]
index=2
id=0x2
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=1
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[STREAM]
index=3
id=0x3
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:non_diegetic=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=1
DISPOSITION:still_image=0
DISPOSITION:multilayer=0
[/STREAM]
[/STREAM_GROUP]