Programming · TagLib#

TagLib#: Video, a work in progress…

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 $
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s