Search packages, repositories and app categories

Package detailsv0.12.0+2

media_info

Determine multimedia file properties like width, height, duration

AndroidiOS
30-day downloads
143
Likes
41
Pub points
130

Install package

flutter pub add media_info

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The media_info package provides a Flutter plugin to extract detailed properties from multimedia files, such as video width, height, duration, bitrate, and codec information. It leverages native platform capabilities on Android and iOS to deliver accurate metadata without requiring additional dependencies. Ideal for applications that need to analyze or display media file details before playback or processing. The package is lightweight and integrates seamlessly into existing Flutter projects using the standard pub package manager.

Use cases

  • Video metadata extraction
  • Media file analysis before playback
  • Content validation in media apps
  • Dynamic UI adjustments based on media dimensions
  • Automated media processing workflows

Key features

  • Supports both Android and iOS platforms
  • Extracts video resolution, duration, and codec details
  • Lightweight and easy to integrate
  • Uses native platform APIs for accuracy
  • Provides consistent data across devices

Suitable for

  • Developers building media players
  • Apps requiring media file inspection
  • Content management systems with media assets
  • Educational or creative tools handling multimedia
  • Applications needing responsive media layouts

Considerations

  • Requires platform-specific permissions for file access
  • Limited to supported media formats by underlying OS
  • May not work with encrypted or proprietary formats
  • Performance depends on file size and complexity
  • No real-time streaming metadata support

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

media_info

Pub

Utilizes platform code to determine audio, video & photo properties.

Depending on the underlying platform version, various workarounds will be applied to fetch the fields.

Currently supported properties:

  • width
  • height
  • frame rate
  • duration (in milliseconds)
  • mime type
  • number of tracks

Additionally, thumbnails can be generated.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package