Weave 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

Mediainfo Bundle Laravel Package

mhor/mediainfo-bundle

mhor/mediainfo-bundle wraps the MediaInfo library for PHP, making it easy to extract technical metadata from audio and video files—codecs, duration, resolution, bitrate, and more—through a clean, bundle-integrated API. Useful for media catalogs, upload validation, and processing pipelines.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for media metadata extraction: the package answers a narrow but recurring question — "how do we get codec, duration, bitrate, resolution, aspect ratio, audio track and subtitle metadata out of uploaded video/audio files?" Buying (here: adopting) means skipping the DI wiring and service abstraction around the MediaInfo CLI, not skipping MediaInfo itself.
  • Feature scoping for media upload flows: informs whether to ship server-side validation ("reject uploads that aren't H.264/AAC, MP4"), automated transcoding triggers, or a "technical specs" panel in a DAM/CMS. These are classic roadmap items for video platforms, podcast hosts, e-learning, and marketing asset libraries.
  • Architecture decision on runtime dependency: adopting it encodes a commitment to having the mediainfo binary present on every app/worker/container that touches media. That's a real infrastructure and ops cost (image builds, base image choice, CI parity, autoscaling AMIs) that should be weighed at the platform level, not per feature.
  • Framework-fit decision: this is a Symfony bundle, not a Laravel package. For a Symfony shop it's a drop-in service. For a Laravel shop it's effectively "we will depend on php-mediainfo directly and write ~20 lines of service-provider glue" — a useful signal, because it means the bundle itself adds near-zero value outside Symfony.
  • Risk register entry: 6 stars, 0 dependents, low health score. This is a thin wrapper over a maintained library; the decision is really about tolerance for an unvetted, low-traffic dependency versus the trivial cost of inlining the same wiring yourself.

When to Consider This Package

Consider it when:

  • You are on Symfony (the bundle's only real value proposition is container/DI integration and config).
  • You need technical media inspection (container, codecs, bitrates, track languages) rather than subjective content analysis (thumbnails, scene detection, transcription).
  • You already run, or are willing to run, the MediaInfo CLI in your runtime images — ideally on queue workers processing media asynchronously, never on the request path.
  • The integration is a small slice of a bigger pipeline (upload → inspect → validate → transcode → publish) and you want to avoid spending sprint capacity on glue code.
  • You're comfortable vendoring or forking a near-static dependency if it goes stale.

Look elsewhere / do not adopt when:

  • You are on Laravel, or framework-agnostic — use mhor/php-mediainfo (or getID3, or php-ffmpeg) directly and write the service binding yourself; the bundle buys you nothing.
  • You need managed, cloud-native metadata extraction (AWS MediaConvert/Elemental, Mux, Cloudinary, Google Transcoder) — the ops burden of shipping and patching a CLI binary across a fleet rarely beats a per-minute API at scale, especially under autoscaling or serverless.
  • You need synchronous, high-throughput inspection on the request path — shelling out to a binary is a latency and blast-radius risk; batch it.
  • Dependency governance is strict (SBOM, security review, SLAs, active-maintainer requirements). 0 dependents and single-digit stars mean no community vetting, no CVE attention, and no one to escalate to.
  • You need frame-level or pixel-level work — that's FFmpeg territory, not MediaInfo.

How to Pitch It (Stakeholders)

For executives: MediaInfo is the industry-standard, free tool for reading what's inside a media file — codec, resolution, duration, bitrate, audio and subtitle tracks. This package is a small, MIT-licensed Symfony adapter that lets our application call it as a service. It accelerates the "upload validation" and "asset technical metadata" features by days, not months. The strategic caveat is maintenance: it has essentially no community footprint, so we should treat it as glue code we own, not as a vendor relationship. The real cost isn't the package — it's running the MediaInfo binary in our containers and keeping it patched.

For engineering: mhor/php-mediainfo is the substantive library; this bundle is Symfony DI and configuration sugar on top. Adopt it on Symfony to save a morning of wiring, pin the version, and plan to fork it if upstream goes quiet (it's small enough to own outright). On Laravel or a framework-agnostic service, skip the bundle and bind php-mediainfo yourself. Either way, run inspection on queue workers in a container that includes the mediainfo binary, add parity between local Docker and production images, and wrap calls with timeouts and size limits — a malformed or enormous file should fail the job, not the worker.

Recommendation: Adopt conditionally. Green-light for Symfony services where media inspection is one step in an async pipeline, with the expectation that we own the wrapper. Do not build a strategic dependency on it, and revisit if throughput or compliance requirements push us toward a managed media API.

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator