Skip to content

gfreezy/aac-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AAC Viewer

A command-line tool for viewing AAC (Advanced Audio Coding) file structures. This tool can parse and display ADTS (Audio Data Transport Stream) header information and raw data from AAC files.

Features

  • Parse and display ADTS header information
  • Support viewing multiple data blocks
  • Optional display of raw hexadecimal data
  • Colored output for better readability

Installation

Ensure you have the Rust toolchain installed on your system, then clone this repository and build:

git clone <repository-url>
cd aac-viewer
cargo build --release

Usage

Basic usage:

./target/release/aac-viewer -f <aac-file>

Parameters:

  • -f, --file <FILE>: AAC file path (required)
  • -b, --blocks <NUMBER>: Number of data blocks to display (default: 1, show all if 0)
  • -x, --hex: Display raw hexadecimal data

Examples:

# View the first data block of the file
./target/release/aac-viewer -f audio.aac

# View the first 3 data blocks
./target/release/aac-viewer -f audio.aac -b 3

# View data blocks with hexadecimal data
./target/release/aac-viewer -f audio.aac -x

Output Description

The tool displays the following ADTS header information:

  • Sync Word
  • MPEG Version
  • Layer
  • Protection Bit
  • Profile
  • Sampling Frequency
  • Channel Configuration
  • Frame Length
  • Buffer Fullness
  • Number of Raw Data Blocks

If the -x option is used, the raw hexadecimal data of the frame will also be displayed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages