1 import conduit
2 import conduit.datatypes.File as File
3
4
5
6
7 PRESET_ENCODINGS = {
8 "divx":{"vcodec":"mpeg4","acodec":"ac3","arate":44100,"abitrate":"64k","format":"avi","vtag":"DIVX","file_extension":"avi", "fps":15},
9
10 "ogg":{"vcodec":"theora","acodec":"vorbis","format":"ogg","file_extension":"ogg"},
11
12 "flv":{"arate":22050,"abitrate":32,"format":"flv","acodec":"mp3","mencoder":True,"file_extension":"flv"}
13 }
14
16 """
17 @returns: True if the given mimetype string represents a video file
18 """
19 if mimetype.startswith("video/"):
20 return True
21 elif mimetype == "application/ogg":
22 return True
23 else:
24 return False
25
27
28 _name_ = "file/video"
29
31 File.File.__init__(self, URI, **kwargs)
32 self._title = None
33 self._description = None
34
37
40
42 """
43 @returns: the video's description
44 """
45 return self._description
46
48 self._description = description
49
54
59