Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tractorcow/silverstripe-mediadata
Extracts video and audio data from files using getId3()
https://github.com/tractorcow/silverstripe-mediadata
Last synced: 3 months ago
JSON representation
Extracts video and audio data from files using getId3()
- Host: GitHub
- URL: https://github.com/tractorcow/silverstripe-mediadata
- Owner: tractorcow
- Created: 2012-03-05T23:16:49.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T04:04:58.000Z (over 8 years ago)
- Last Synced: 2024-08-20T05:27:22.038Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 398 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Media Metadata module for Silverstripe
This module allows metadata to be extracted from audio and video media files.
This module works best with the memoryimage module from . If
you have this installed then you can also extract, resize, and display embedded album art on pages.## Credits and Authors
* Damian Mooyman -
## 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.
The MediaData property of the File class contains these properties:
* FileName
* FilePath
* Title
* Artist
* Album
* Format
* Duration
* DurationString
* Bitrate
* FileSize
* MimeTypeThe following functions return additional data:
* 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 detailsAudio() will return an object with the following properties (if there is audio information):
* ChannelMode
* ChannelCount
* SampleRateVideo() will return an object with the following properties (if there is video/picture information):
* FrameRate
* Width
* Height
* PixelAspectRatioBoth the Audio() and Video() objects have these shared properties:
* Bitrate
* BitrateMode
* BitsPerSample
* Codec
* CompressionRatio
* Format
* Encoder
* IsLossless