Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Media Info Bundle Laravel Package

ac/media-info-bundle

Symfony bundle wrapping the mediainfo CLI to extract multimedia metadata. Configure the mediainfo binary path, then scan files to get a normalized, structured PHP array (keys lowercased). Includes a console command to export scan results (e.g., YAML).

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Metadata-Driven Features: Enables rapid development of media analysis tools (e.g., video/audio metadata extraction for content platforms, libraries, or archives).
  • Roadmap Acceleration: Reduces time-to-market for features requiring media metadata (e.g., smart tagging, format validation, or compliance checks).
  • Build vs. Buy: Avoids reinventing the wheel for media parsing; leverages a mature CLI tool (mediainfo) with a lightweight PHP wrapper.
  • Use Cases:
    • Content Management Systems (CMS): Auto-populate metadata fields (e.g., duration, codec, resolution) from uploaded files.
    • Digital Asset Management (DAM): Index media files programmatically for search/filtering.
    • Quality Assurance (QA): Validate media files against technical specs (e.g., "reject MP4s with H.265 codec").
    • Analytics: Extract metadata for usage reports (e.g., "most streamed video formats").

When to Consider This Package

  • Adopt if:

    • Your PHP/Laravel app needs reliable, structured media metadata (e.g., for files like MP4, MKV, FLAC).
    • You’re time-constrained and prefer a pre-built solution over custom parsing (e.g., regex, FFmpeg/PHP libraries).
    • Your team lacks expertise in low-level media parsing or CLI integration.
    • You’re building a server-side tool (not a frontend library like ffmpeg.js).
  • Look Elsewhere if:

    • You need real-time client-side parsing (use JavaScript libraries like mediainfo.js or ffmpeg.wasm).
    • Your use case requires advanced editing/transcoding (e.g., trimming, format conversion—use FFmpeg directly).
    • You’re in a highly regulated environment where CLI dependencies (mediainfo) are blocked.
    • You need active maintenance/support (this package has low stars/activity; evaluate alternatives like [php-mediainfo](https://github.com/PhilippeDe Ryck/php-mediainfo)).
    • Your files are non-standard (e.g., proprietary formats not supported by mediainfo).

How to Pitch It (Stakeholders)

For Executives: "This package lets us extract structured metadata (e.g., duration, codec, resolution) from videos/audio files in seconds—no custom code needed. For example, if we’re building a video upload feature, we can auto-fill fields like ‘length’ or ‘format’ using this wrapper around the mediainfo CLI tool. It’s a 10x faster alternative to building a parser from scratch, and it integrates seamlessly with our Laravel stack. The cost? Minimal: just install the package and configure the path to mediainfo (already installed on most Linux servers). This directly supports [X Initiative], where we need to [Y use case]."

For Engineering: *"This is a lightweight Symfony/Laravel bundle that wraps the mediainfo CLI tool to return PHP arrays of media metadata. Key benefits:

  • Zero dependencies beyond mediainfo (widely available on Linux/macOS).
  • Structured output: Normalized keys (e.g., file.general.duration) for easy database storage.
  • Battle-tested: Uses a stable CLI tool with broad format support (MP4, WebM, FLAC, etc.).
  • Simple integration: Service container injection or manual instantiation. Tradeoff: Requires mediainfo installed on the server (but that’s a one-time setup). For [Project Z], this avoids the complexity of parsing media files manually or using heavier libraries like FFmpeg for metadata-only tasks."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime