1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 from flumotion.common import gstreamer, messages
23 from flumotion.common.i18n import N_, gettexter
24 from flumotion.worker.checks import check
25 from flumotion.component import feedcomponent
26
27
28 T_ = gettexter()
29
30
31 -class Dirac(feedcomponent.EncoderComponent):
32 checkTimestamp = True
33 checkOffset = True
34
36 d = check.do_check(self, check.checkPlugin, 'schro', 'gst-plugins-bad')
37
38 def check_schroenc_bug(result, component):
39 if gstreamer.get_plugin_version('schro') == (1, 0, 7, 0):
40 m = messages.Warning(
41 T_(N_("Version %s of the '%s' GStreamer plug-in "
42 "contains a bug.\n"), '1.0.7', 'schroenc'))
43 m.add(T_(N_("The downstream components might stay hungry.\n")))
44 m.add(T_(N_("The bug has been fixed during the transition of "
45 "'%s' to the '%s' plug-ins set. "
46 "Please upgrade '%s' to version %s, "
47 "which contains the fixed plug-in."),
48 'schroenc', 'gst-plugins-bad', 'schroenc', '0.10.14'))
49 component.addMessage(m)
50 return result
51 return d.addCallback(check_schroenc_bug, self)
52
54 return "ffmpegcolorspace ! schroenc name=encoder"
55
63