This gem provides a native ruby extension to interface with the Mediainfo library.
The gem is designed as a drop-in replacement for the Mediainfo gem (original version here), but uses the MediaInfoLib directly in order to improve performance and reliability. Whenever possible the original API has been made available.
MediaInfo performs some detection on continuous file names (e.g., image sequences) and might therefore for example report video?
as true
where you expect it to be false
. If you want to disable this feature, instantiate with:
MediaInfoNative::MediaInfo.new(ignore_continuous_file_names: true)
The MediaInfoLib does not automatically install the libmediainfo.pc
file. You need to do this manually until I care to make the gem not fail when it doesn't exist.
Want to contribute? Great! Either use GitFlow as we do or
- Fork it.
- Create a branch (git checkout -b my_stuff)
- Commit your changes (git commit -am "Added new accessor")
- Push to the branch (git push origin my_markup)
- Open a Pull Request
- Enjoy a refreshing Mate and wait
- Profit!
The gem is licensed under the MIT License. See the LICENSE file for more information.
Parts of the code have been reused from the old Mediainfo or at least are heavily inspired from the old code (esp. the convenience API). The Mediainfo gem is licensed under the WTF Public License and we guess it is conformant with the terms of that license to re-license the code under the MIT license.