TagLib#: Video, a work in progress…
Posted by Brian on March 28, 2007
This is just a start, I’ve replaced AudioProperties with Properties, which contains {Duration, AudioBitrate, AudioSampleRate, AudioChannels, VideoWidth, VideoHeight, MediaTypes}, and added MediaTypes {Unknown, Audio, Video}. All I’ve really done so far was the massive code rename, but it should be relatively fast from here. See what about 10 lines of code gives us in ASF:
brian ~/Programming/taglib-sharp/examples $ mono ReadFromUri.exe /media/shared/Movies/Clips/Clinton\ Interview.wmv /media/shared/Movies/Clips/Clinton Interview.wmv Title: Artists: Performers: Composers: Album: Comment: Genres: Year: 0 Track: 0 TrackCount: 0 Disc: 0 DiscCount: 0 Lyrics: Audio Properties Length: 00:15:56.0840000 Bitrate: 32 SampleRate: 44100 Channels: 1 Video Properties Length: 00:15:56.0840000 Width: 320 Height: 240 Embedded Pictures: 0 --------------------------------------- Total running time: 00:00:00.2000030 Total files read: 1 Average time per file: 00:00:00.2000030 brian ~/Programming/taglib-sharp/examples $









