Skip to content

How to programmatically get info about e.g. the streams in a file before decoding it. #131

Open

Description

@olilarkin

Hello,

Thanks for the tremendous effort on IAMF.

I am integrating support into my project @SpatialAudioKit . I would like to be able to probe an iamf or mp4 file with iamf stream before decoding it, in order to set up audio routings. It's not immediately obvious how i can do this. Can you provide any pointers?

thanks

oli

Activity

  1. yilun-zhangs commented on Feb 5, 2025

    @yilun-zhangs
    Collaborator

    Hi @olilarkin
    Unfortunately, even there is one interface IAMF_decoder_get_stream_info() already, but it could not provide more detail information.

    We will consider to expand IAMF_StreamInfo{} to include elements numbers, element type, channels, layout, ambisonics orders, etc..

  2. yilun-zhangs commented on Feb 5, 2025

    @yilun-zhangs
    Collaborator

    Hi @olilarkin

    I have checked that ffmpeg supports to probe basic information
    I am not sure if ffmpeg could satisfy your requirement before libiamf support it.

    Thanks.

  3. olilarkin commented on Feb 5, 2025

    @olilarkin
    Author

    Thanks, i am aware of ffprobe/libavformat, unfortunately the license is probably too prohibitive. It would be great to get that functionality in libaimf!

    Whilst i have your attention i wondered if AOMediaCodec/iamf-tools@c6521c7 indicates that another IAMF decoder will be open sourced?

  4. yilun-zhangs commented on Feb 6, 2025

    @yilun-zhangs
    Collaborator

    Hi @jwcullen
    The decoder mentioned in that commit will be open sourced? I think the decoder is used to generated rendered reference file for each TC in tests directory, right?

    Hi @olilarkin
    Regarding the probe function, we will continue to consider it.
    Thanks.

  5. jwcullen commented on Feb 26, 2025

    @jwcullen
    Collaborator

    So the encoder in iamf-tools needed a lot of decoder components in order to measure loudness and produce the test rendered wav files. Some things were closed source, but it made sense to open-source it and provide an API around it (currently WIP). It should be treated as an alternative implementation, not the reference decoder.

    @olilarkin What type of stuff would you specifically want to probe?

  6. olilarkin commented on Feb 26, 2025

    @olilarkin
    Author

    I want to be able to visualize the spatial signal in an iamf file, using my engine @SpatialAudioKit, so i need to know how to configure the routing and hook e.g. the ambisonic stream if it exists.

  7. trsonic commented on Jul 31, 2026

    @trsonic

    Hi @olilarkin! A while ago we added a probe function in iamf-tools. See https://github.com/AOMediaCodec/iamf-tools/blob/main/docs/iamf_probe_main.md .

  8. yilun-zhangs commented on Aug 3, 2026

    @yilun-zhangs
    Collaborator

    Hi @olilarkin
    I also made a PR: #172 to output detail iamf stream info at decoder side.

  9. olilarkin commented on Aug 3, 2026

    @olilarkin
    Author

    thanks, i will check them out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions