Could we not use
MediaInfo library in XBMC when scanning video files into the database?
See this request for MediaInfo tag reader library for DVDPlayer for more information =>
http://trac.xbmc.org/ticket/3824
MediaInfo supplies technical and can read tag information about a video or audio file containers.
MediaInfo is coded in C++, is cross-platform (Win32, Linux, and Mac), open source code (GPL/LGPL dual-license), and can be compiled into a .dll (Dynamicly Linked Library) on Windows, .so (Shared Object) on Linux, .dynlib (Dynamic Library) on Mac.
What information MediaInfo will get from looking at a container:
General: Title, Author, Director, Album, Track Number, Date, Duration, and much more.
Video: Codec, Resolution, Pixel Aspect Ratio, FPS, Bit-rate, and much more.
Audio: Codec, Sample Rate, Channels, Language, Bit-rate, ReplayGain, and much more.
Text Language of Subtitles (SRT, SSA, ASS, SAMI, and many more).
Chapters: Number of Chapters, List of Chapters (names).
Examples of just some of the supported formats:
Video: AVI, MKV, OGM, DV (RAW), MPEG-1, MPEG-2, MPEG-TS, MPEG-4, WMV, MOV, IFO/VOB (DVD-Video), CDXA (VCD/SVCD), Blu-ray and HD DVD files, and more.
Audio: MP3 (Id3v2), OGG, WAV, PCM, RA, AC3, DTS, AAC, M4A, AU, AIFF, WMA, APE/MAC, FLAC, and more.
Quote:about integration of metadata in MediaInfo, my goal is to have all the
metadata available in a file, so if data is present, what is request ("Right
now it allows for the following atoms (new atoms can be defined as well) Show
Name, Episode ID, Episode Number, Season Number, Cast Members, Producers,
Directors, Writers, Original Air Date, Original Network, Long Description (Plot),
Artwork, Video Kind (TV Show, Movie, Music Video) Rating, Genre.") is
easy to have.
Checkout the MediaInfo website for more information:
http://mediainfo.sourceforge.net
Source code (and SVN):
http://sourceforge.net/projects/mediainfo