Skip to content

Enhancement: Extract audio technical properties (bitrate, sample rate, duration) #21

Description

@rpuneet

Summary

exiftool extracts technical audio properties that imx currently doesn't expose.

Missing Properties (MP3)

Property exiftool Value imx
MPEGAudioVersion 1 -
AudioLayer 3 -
AudioBitrate 192 kbps -
SampleRate 44100 -
ChannelMode Single Channel -
Duration 5.07 s (approx) -

Use Cases

  • Media library applications need bitrate/sample rate info
  • Duration is essential for audio players
  • Channel mode (mono/stereo) affects playback

Technical Approach

MP3 frame header contains: bitrate, sample rate, channel mode
Duration = file size / bitrate (approximate)

Acceptance Criteria

  • Extract audio properties from MP3 frame headers
  • Add similar support for FLAC (sample rate, channels from StreamInfo)
  • Consider adding to MP4/M4A as well
  • Unit tests

Priority

Low - Enhancement, not a bug. Marking as such.

Note

This is an enhancement, not a bug fix. Lower priority than the decoding issues.

Activity

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