2017 © Pedro Peláez
 

library silverstripe-mediadata

image

tractorcow/silverstripe-mediadata

  • Thursday, August 2, 2018
  • by tractorcow
  • Repository
  • 1 Watchers
  • 4 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Media Metadata module for Silverstripe

This module allows metadata to be extracted from audio and video media files., (*1)

This module works best with the memoryimage module from https://github.com/tractorcow/silverstripe-memoryimage. If you have this installed then you can also extract, resize, and display embedded album art on pages., (*2)

Credits and Authors

Requirements

  • SilverStripe 2.4.5, may work on lower versions
  • PHP 5.2

Installation Instructions

  • Extract all files into the 'mediadata' folder under your Silverstripe root.
  • To extract extra metadata from a File object you can use the MediaData property to access it.

API

Full PHPDoc documentation is included for all classes, so please check the code if you'd like more information., (*3)

The MediaData property of the File class contains these properties:, (*4)

  • FileName
  • FilePath
  • Title
  • Artist
  • Album
  • Format
  • Duration
  • DurationString
  • Bitrate
  • FileSize
  • MimeType

The following functions return additional data:, (*5)

  • Picture() will extract an Image object if there is an embedded album art
  • Audio() will extract further audio specific details
  • Video() will extract further video specific details

Audio() will return an object with the following properties (if there is audio information):, (*6)

  • ChannelMode
  • ChannelCount
  • SampleRate

Video() will return an object with the following properties (if there is video/picture information):, (*7)

  • FrameRate
  • Width
  • Height
  • PixelAspectRatio

Both the Audio() and Video() objects have these shared properties:, (*8)

  • Bitrate
  • BitrateMode
  • BitsPerSample
  • Codec
  • CompressionRatio
  • Format
  • Encoder
  • IsLossless

The Versions

02/08 2018

3.0.x-dev

3.0.9999999.9999999-dev

  Sources   Download

12/07 2016

dev-master

9999999-dev

Extracts video and audio data from files using getId3()

  Sources   Download

BSD-3-Clause

The Requires

 

silverstripe video media