Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > 2eca861f24be6048290ed27335ec22aa > files > 748

flumotion-doc-0.6.1-1mdv2010.0.x86_64.rpm

<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>flumotion.component.encoders.theora.theora</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;flumotion ::
        <a href="flumotion.component-module.html">Package&nbsp;component</a> ::
        <a href="flumotion.component.encoders-module.html">Package&nbsp;encoders</a> ::
        <a href="flumotion.component.encoders.theora-module.html">Package&nbsp;theora</a> ::
        Module&nbsp;theora
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="flumotion.component.encoders.theora.theora-module.html">Module flumotion.component.encoders.theora.theora</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment"># -*- Mode: Python -*-</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"># vi:si:et:sw=4:sts=4:ts=4</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"># Flumotion - a streaming media server</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (C) 2004,2005,2006,2007 Fluendo, S.L. (www.fluendo.com).</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment"># All rights reserved.</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment"># This file may be distributed and/or modified under the terms of</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-comment"># the GNU General Public License version 2 as published by</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-comment"># the Free Software Foundation.</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-comment"># This file is distributed without any warranty; without even the implied</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-comment"># warranty of merchantability or fitness for a particular purpose.</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-comment"># See "LICENSE.GPL" in the source distribution for more information.</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-comment"># Licensees having purchased or holding a valid Flumotion Advanced</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-comment"># Streaming Server license may use this file in accordance with the</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-comment"># Flumotion Advanced Streaming Server Commercial License Agreement.</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-comment"># See "LICENSE.Flumotion" in the source distribution for more information.</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-comment"># Headers in this file shall remain intact.</tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">flumotion</tt><tt class="py-op">.</tt><tt id="link-0" class="py-name" targets="Module flumotion.admin.command.common=flumotion.admin.command.common-module.html,Package flumotion.common=flumotion.common-module.html,Module flumotion.common.common=flumotion.common.common-module.html"><a title="flumotion.admin.command.common
flumotion.common
flumotion.common.common" class="py-name" href="#" onclick="return doclink('link-0', 'common', 'link-0');">common</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Module flumotion.common.messages=flumotion.common.messages-module.html"><a title="flumotion.common.messages" class="py-name" href="#" onclick="return doclink('link-1', 'messages', 'link-1');">messages</a></tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">flumotion</tt><tt class="py-op">.</tt><tt id="link-2" class="py-name"><a title="flumotion.admin.command.common
flumotion.common
flumotion.common.common" class="py-name" href="#" onclick="return doclink('link-2', 'common', 'link-0');">common</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Module flumotion.common.i18n=flumotion.common.i18n-module.html"><a title="flumotion.common.i18n" class="py-name" href="#" onclick="return doclink('link-3', 'i18n', 'link-3');">i18n</a></tt> <tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Function flumotion.common.i18n.N_()=flumotion.common.i18n-module.html#N_"><a title="flumotion.common.i18n.N_" class="py-name" href="#" onclick="return doclink('link-4', 'N_', 'link-4');">N_</a></tt><tt class="py-op">,</tt> <tt id="link-5" class="py-name" targets="Function flumotion.common.i18n.gettexter()=flumotion.common.i18n-module.html#gettexter"><a title="flumotion.common.i18n.gettexter" class="py-name" href="#" onclick="return doclink('link-5', 'gettexter', 'link-5');">gettexter</a></tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">flumotion</tt><tt class="py-op">.</tt><tt id="link-6" class="py-name" targets="Module flumotion.admin.command.component=flumotion.admin.command.component-module.html,Package flumotion.component=flumotion.component-module.html,Module flumotion.component.bouncers.component=flumotion.component.bouncers.component-module.html,Module flumotion.component.component=flumotion.component.component-module.html,Module flumotion.manager.component=flumotion.manager.component-module.html"><a title="flumotion.admin.command.component
flumotion.component
flumotion.component.bouncers.component
flumotion.component.component
flumotion.manager.component" class="py-name" href="#" onclick="return doclink('link-6', 'component', 'link-6');">component</a></tt> <tt class="py-keyword">import</tt> <tt id="link-7" class="py-name" targets="Module flumotion.component.feedcomponent=flumotion.component.feedcomponent-module.html"><a title="flumotion.component.feedcomponent" class="py-name" href="#" onclick="return doclink('link-7', 'feedcomponent', 'link-7');">feedcomponent</a></tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">flumotion</tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Module flumotion.admin.command.worker=flumotion.admin.command.worker-module.html,Module flumotion.common.worker=flumotion.common.worker-module.html,Module flumotion.manager.worker=flumotion.manager.worker-module.html,Package flumotion.worker=flumotion.worker-module.html,Module flumotion.worker.worker=flumotion.worker.worker-module.html"><a title="flumotion.admin.command.worker
flumotion.common.worker
flumotion.manager.worker
flumotion.worker
flumotion.worker.worker" class="py-name" href="#" onclick="return doclink('link-8', 'worker', 'link-8');">worker</a></tt><tt class="py-op">.</tt><tt id="link-9" class="py-name" targets="Module flumotion.component.muxers.checks=flumotion.component.muxers.checks-module.html,Module flumotion.component.producers.checks=flumotion.component.producers.checks-module.html,Package flumotion.worker.checks=flumotion.worker.checks-module.html"><a title="flumotion.component.muxers.checks
flumotion.component.producers.checks
flumotion.worker.checks" class="py-name" href="#" onclick="return doclink('link-9', 'checks', 'link-9');">checks</a></tt> <tt class="py-keyword">import</tt> <tt id="link-10" class="py-name" targets="Module flumotion.worker.checks.check=flumotion.worker.checks.check-module.html"><a title="flumotion.worker.checks.check" class="py-name" href="#" onclick="return doclink('link-10', 'check', 'link-10');">check</a></tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"><tt class="py-name">__version__</tt> <tt class="py-op">=</tt> <tt class="py-string">"$Rev: 7161 $"</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line"><tt id="link-11" class="py-name" targets="Variable flumotion.worker.checks.audio.T_=flumotion.worker.checks.audio-module.html#T_"><a title="flumotion.worker.checks.audio.T_" class="py-name" href="#" onclick="return doclink('link-11', 'T_', 'link-11');">T_</a></tt> <tt class="py-op">=</tt> <tt id="link-12" class="py-name"><a title="flumotion.common.i18n.gettexter" class="py-name" href="#" onclick="return doclink('link-12', 'gettexter', 'link-5');">gettexter</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line"> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line"> </tt>
<a name="Theora"></a><div id="Theora-def"><a name="L32"></a><tt class="py-lineno">32</tt> <a class="py-toggle" href="#" id="Theora-toggle" onclick="return toggle('Theora');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="flumotion.component.encoders.theora.theora.Theora-class.html">Theora</a><tt class="py-op">(</tt><tt class="py-base-class">feedcomponent</tt><tt class="py-op">.</tt><tt class="py-base-class">ParseLaunchComponent</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Theora-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Theora-expanded"><a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">    <tt id="link-13" class="py-name" targets="Variable flumotion.component.converters.overlay.overlay.Overlay.checkTimestamp=flumotion.component.converters.overlay.overlay.Overlay-class.html#checkTimestamp,Variable flumotion.component.encoders.dirac.dirac.Dirac.checkTimestamp=flumotion.component.encoders.dirac.dirac.Dirac-class.html#checkTimestamp,Variable flumotion.component.encoders.theora.theora.Theora.checkTimestamp=flumotion.component.encoders.theora.theora.Theora-class.html#checkTimestamp,Variable flumotion.component.encoders.vorbis.vorbis010.Vorbis.checkTimestamp=flumotion.component.encoders.vorbis.vorbis010.Vorbis-class.html#checkTimestamp,Variable flumotion.component.feedcomponent.ParseLaunchComponent.checkTimestamp=flumotion.component.feedcomponent.ParseLaunchComponent-class.html#checkTimestamp,Variable flumotion.component.muxers.ogg.Ogg.checkTimestamp=flumotion.component.muxers.ogg.Ogg-class.html#checkTimestamp"><a title="flumotion.component.converters.overlay.overlay.Overlay.checkTimestamp
flumotion.component.encoders.dirac.dirac.Dirac.checkTimestamp
flumotion.component.encoders.theora.theora.Theora.checkTimestamp
flumotion.component.encoders.vorbis.vorbis010.Vorbis.checkTimestamp
flumotion.component.feedcomponent.ParseLaunchComponent.checkTimestamp
flumotion.component.muxers.ogg.Ogg.checkTimestamp" class="py-name" href="#" onclick="return doclink('link-13', 'checkTimestamp', 'link-13');">checkTimestamp</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">    <tt id="link-14" class="py-name" targets="Variable flumotion.component.consumers.disker.disker.Disker.checkOffset=flumotion.component.consumers.disker.disker.Disker-class.html#checkOffset,Variable flumotion.component.consumers.httpstreamer.httpstreamer.MultifdSinkStreamer.checkOffset=flumotion.component.consumers.httpstreamer.httpstreamer.MultifdSinkStreamer-class.html#checkOffset,Variable flumotion.component.converters.overlay.overlay.Overlay.checkOffset=flumotion.component.converters.overlay.overlay.Overlay-class.html#checkOffset,Variable flumotion.component.encoders.dirac.dirac.Dirac.checkOffset=flumotion.component.encoders.dirac.dirac.Dirac-class.html#checkOffset,Variable flumotion.component.encoders.theora.theora.Theora.checkOffset=flumotion.component.encoders.theora.theora.Theora-class.html#checkOffset,Variable flumotion.component.encoders.vorbis.vorbis010.Vorbis.checkOffset=flumotion.component.encoders.vorbis.vorbis010.Vorbis-class.html#checkOffset,Variable flumotion.component.feedcomponent.ParseLaunchComponent.checkOffset=flumotion.component.feedcomponent.ParseLaunchComponent-class.html#checkOffset"><a title="flumotion.component.consumers.disker.disker.Disker.checkOffset
flumotion.component.consumers.httpstreamer.httpstreamer.MultifdSinkStreamer.checkOffset
flumotion.component.converters.overlay.overlay.Overlay.checkOffset
flumotion.component.encoders.dirac.dirac.Dirac.checkOffset
flumotion.component.encoders.theora.theora.Theora.checkOffset
flumotion.component.encoders.vorbis.vorbis010.Vorbis.checkOffset
flumotion.component.feedcomponent.ParseLaunchComponent.checkOffset" class="py-name" href="#" onclick="return doclink('link-14', 'checkOffset', 'link-14');">checkOffset</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"> </tt>
<a name="Theora.do_check"></a><div id="Theora.do_check-def"><a name="L36"></a><tt class="py-lineno">36</tt> <a class="py-toggle" href="#" id="Theora.do_check-toggle" onclick="return toggle('Theora.do_check');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.component.encoders.theora.theora.Theora-class.html#do_check">do_check</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Theora.do_check-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Theora.do_check-expanded"><a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Function flumotion.common.avltree.debug()=flumotion.common.avltree-module.html#debug,Module flumotion.common.debug=flumotion.common.debug-module.html,Method flumotion.common.testsuite.TestCase.debug()=flumotion.common.testsuite.TestCase-class.html#debug,Method flumotion.extern.command.command.Command.debug()=flumotion.extern.command.command.Command-class.html#debug,Method flumotion.extern.log.log.Loggable.debug()=flumotion.extern.log.log.Loggable-class.html#debug,Function flumotion.extern.log.log.debug()=flumotion.extern.log.log-module.html#debug,Function flumotion.twisted.integration.debug()=flumotion.twisted.integration-module.html#debug"><a title="flumotion.common.avltree.debug
flumotion.common.debug
flumotion.common.testsuite.TestCase.debug
flumotion.extern.command.command.Command.debug
flumotion.extern.log.log.Loggable.debug
flumotion.extern.log.log.debug
flumotion.twisted.integration.debug" class="py-name" href="#" onclick="return doclink('link-15', 'debug', 'link-15');">debug</a></tt><tt class="py-op">(</tt><tt class="py-string">'running Theora check'</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-name">flumotion</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="flumotion.admin.command.worker
flumotion.common.worker
flumotion.manager.worker
flumotion.worker
flumotion.worker.worker" class="py-name" href="#" onclick="return doclink('link-16', 'worker', 'link-8');">worker</a></tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="flumotion.component.muxers.checks
flumotion.component.producers.checks
flumotion.worker.checks" class="py-name" href="#" onclick="return doclink('link-17', 'checks', 'link-9');">checks</a></tt> <tt class="py-keyword">import</tt> <tt id="link-18" class="py-name" targets="Module flumotion.worker.checks.encoder=flumotion.worker.checks.encoder-module.html"><a title="flumotion.worker.checks.encoder" class="py-name" href="#" onclick="return doclink('link-18', 'encoder', 'link-18');">encoder</a></tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-19" class="py-name"><a title="flumotion.worker.checks.check" class="py-name" href="#" onclick="return doclink('link-19', 'check', 'link-10');">check</a></tt><tt class="py-op">.</tt><tt id="link-20" class="py-name" targets="Method flumotion.component.combiners.switch.patternswitch.PatternEventSwitcher.do_check()=flumotion.component.combiners.switch.patternswitch.PatternEventSwitcher-class.html#do_check,Method flumotion.component.combiners.switch.switch.AVSwitch.do_check()=flumotion.component.combiners.switch.switch.AVSwitch-class.html#do_check,Method flumotion.component.combiners.switch.switch.Switch.do_check()=flumotion.component.combiners.switch.switch.Switch-class.html#do_check,Method flumotion.component.component.BaseComponent.do_check()=flumotion.component.component.BaseComponent-class.html#do_check,Method flumotion.component.encoders.dirac.dirac.Dirac.do_check()=flumotion.component.encoders.dirac.dirac.Dirac-class.html#do_check,Method flumotion.component.encoders.theora.theora.Theora.do_check()=flumotion.component.encoders.theora.theora.Theora-class.html#do_check,Method flumotion.component.encoders.vorbis.vorbis010.Vorbis.do_check()=flumotion.component.encoders.vorbis.vorbis010.Vorbis-class.html#do_check,Method flumotion.component.misc.httpserver.httpserver.HTTPFileStreamer.do_check()=flumotion.component.misc.httpserver.httpserver.HTTPFileStreamer-class.html#do_check,Method flumotion.component.muxers.multipart.Multipart.do_check()=flumotion.component.muxers.multipart.Multipart-class.html#do_check,Method flumotion.component.muxers.ogg.Ogg.do_check()=flumotion.component.muxers.ogg.Ogg-class.html#do_check,Method flumotion.component.producers.audiotest.audiotest.AudioTest.do_check()=flumotion.component.producers.audiotest.audiotest.AudioTest-class.html#do_check,Method flumotion.component.producers.firewire.firewire.Firewire.do_check()=flumotion.component.producers.firewire.firewire.Firewire-class.html#do_check,Method flumotion.component.producers.gdp.gdp.GDPProducer.do_check()=flumotion.component.producers.gdp.gdp.GDPProducer-class.html#do_check,Method flumotion.component.producers.looper.looper.Looper.do_check()=flumotion.component.producers.looper.looper.Looper-class.html#do_check,Method flumotion.component.producers.playlist.playlist.PlaylistProducer.do_check()=flumotion.component.producers.playlist.playlist.PlaylistProducer-class.html#do_check,Method flumotion.component.producers.soundcard.soundcard.Soundcard.do_check()=flumotion.component.producers.soundcard.soundcard.Soundcard-class.html#do_check,Function flumotion.worker.checks.check.do_check()=flumotion.worker.checks.check-module.html#do_check"><a title="flumotion.component.combiners.switch.patternswitch.PatternEventSwitcher.do_check
flumotion.component.combiners.switch.switch.AVSwitch.do_check
flumotion.component.combiners.switch.switch.Switch.do_check
flumotion.component.component.BaseComponent.do_check
flumotion.component.encoders.dirac.dirac.Dirac.do_check
flumotion.component.encoders.theora.theora.Theora.do_check
flumotion.component.encoders.vorbis.vorbis010.Vorbis.do_check
flumotion.component.misc.httpserver.httpserver.HTTPFileStreamer.do_check
flumotion.component.muxers.multipart.Multipart.do_check
flumotion.component.muxers.ogg.Ogg.do_check
flumotion.component.producers.audiotest.audiotest.AudioTest.do_check
flumotion.component.producers.firewire.firewire.Firewire.do_check
flumotion.component.producers.gdp.gdp.GDPProducer.do_check
flumotion.component.producers.looper.looper.Looper.do_check
flumotion.component.producers.playlist.playlist.PlaylistProducer.do_check
flumotion.component.producers.soundcard.soundcard.Soundcard.do_check
flumotion.worker.checks.check.do_check" class="py-name" href="#" onclick="return doclink('link-20', 'do_check', 'link-20');">do_check</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt id="link-21" class="py-name"><a title="flumotion.worker.checks.encoder" class="py-name" href="#" onclick="return doclink('link-21', 'encoder', 'link-18');">encoder</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Function flumotion.worker.checks.encoder.checkTheora()=flumotion.worker.checks.encoder-module.html#checkTheora"><a title="flumotion.worker.checks.encoder.checkTheora" class="py-name" href="#" onclick="return doclink('link-22', 'checkTheora', 'link-22');">checkTheora</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"> </tt>
<a name="Theora.get_pipeline_string"></a><div id="Theora.get_pipeline_string-def"><a name="L41"></a><tt class="py-lineno">41</tt> <a class="py-toggle" href="#" id="Theora.get_pipeline_string-toggle" onclick="return toggle('Theora.get_pipeline_string');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.component.encoders.theora.theora.Theora-class.html#get_pipeline_string">get_pipeline_string</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">properties</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Theora.get_pipeline_string-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Theora.get_pipeline_string-expanded"><a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-string">"ffmpegcolorspace ! theoraenc name=encoder"</tt> </tt>
</div><a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line"> </tt>
<a name="Theora.configure_pipeline"></a><div id="Theora.configure_pipeline-def"><a name="L44"></a><tt class="py-lineno">44</tt> <a class="py-toggle" href="#" id="Theora.configure_pipeline-toggle" onclick="return toggle('Theora.configure_pipeline');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="flumotion.component.encoders.theora.theora.Theora-class.html#configure_pipeline">configure_pipeline</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">pipeline</tt><tt class="py-op">,</tt> <tt class="py-param">properties</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Theora.configure_pipeline-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Theora.configure_pipeline-expanded"><a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">        <tt class="py-name">element</tt> <tt class="py-op">=</tt> <tt id="link-23" class="py-name" targets="Package flumotion.component.converters.pipeline=flumotion.component.converters.pipeline-module.html,Module flumotion.component.converters.pipeline.pipeline=flumotion.component.converters.pipeline.pipeline-module.html,Package flumotion.component.producers.pipeline=flumotion.component.producers.pipeline-module.html,Module flumotion.component.producers.pipeline.pipeline=flumotion.component.producers.pipeline.pipeline-module.html,Variable flumotion.worker.checks.gst010.BusResolution.pipeline=flumotion.worker.checks.gst010.BusResolution-class.html#pipeline"><a title="flumotion.component.converters.pipeline
flumotion.component.converters.pipeline.pipeline
flumotion.component.producers.pipeline
flumotion.component.producers.pipeline.pipeline
flumotion.worker.checks.gst010.BusResolution.pipeline" class="py-name" href="#" onclick="return doclink('link-23', 'pipeline', 'link-23');">pipeline</a></tt><tt class="py-op">.</tt><tt class="py-name">get_by_name</tt><tt class="py-op">(</tt><tt class="py-string">'encoder'</tt><tt class="py-op">)</tt> </tt>
<a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line"> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line">        <tt class="py-name">props</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-string">'bitrate'</tt><tt class="py-op">,</tt> </tt>
<a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line">                 <tt class="py-string">'quality'</tt><tt class="py-op">,</tt> </tt>
<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line">                 <tt class="py-string">'keyframe-mindistance'</tt><tt class="py-op">,</tt> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line">                 <tt class="py-op">(</tt><tt class="py-string">'quick-compress'</tt><tt class="py-op">,</tt> <tt class="py-string">'quick'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line">                 <tt class="py-op">(</tt><tt class="py-string">'keyframe-maxdistance'</tt><tt class="py-op">,</tt> <tt class="py-string">'keyframe-freq'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">                 <tt class="py-op">(</tt><tt class="py-string">'keyframe-maxdistance'</tt><tt class="py-op">,</tt> <tt class="py-string">'keyframe-force'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> </tt>
<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">                 <tt class="py-string">'noise-sensitivity'</tt><tt class="py-op">,</tt> </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">                 <tt class="py-string">'sharpness'</tt><tt class="py-op">)</tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"> </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line">        <tt class="py-comment"># F0.6: remove this code</tt> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line">        <tt class="py-comment"># before 0.3.2, bitrate was interpreted as kbps, inconsistent</tt> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line">        <tt class="py-comment"># with other flumotion components</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line">        <tt class="py-comment"># safe to assume that nobody will want less than 10 kbit/sec</tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line">        <tt class="py-comment"># also, MikeS *requires* a kbit/sec to be seen as 1000 bit/sec</tt> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'bitrate'</tt> <tt class="py-keyword">in</tt> <tt id="link-24" class="py-name" targets="Variable flumotion.launch.parse.Component.properties=flumotion.launch.parse.Component-class.html#properties"><a title="flumotion.launch.parse.Component.properties" class="py-name" href="#" onclick="return doclink('link-24', 'properties', 'link-24');">properties</a></tt><tt class="py-op">:</tt> </tt>
<a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-25" class="py-name"><a title="flumotion.launch.parse.Component.properties" class="py-name" href="#" onclick="return doclink('link-25', 'properties', 'link-24');">properties</a></tt><tt class="py-op">[</tt><tt class="py-string">'bitrate'</tt><tt class="py-op">]</tt> <tt class="py-op">&lt;</tt> <tt class="py-number">10000</tt><tt class="py-op">:</tt> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name" targets="Method flumotion.admin.gtk.message.MessagesView.addMessage()=flumotion.admin.gtk.message.MessagesView-class.html#addMessage,Method flumotion.component.base.baseadminnode.BaseAdminGtkNode.addMessage()=flumotion.component.base.baseadminnode.BaseAdminGtkNode-class.html#addMessage,Method flumotion.component.component.BaseComponent.addMessage()=flumotion.component.component.BaseComponent-class.html#addMessage,Method flumotion.manager.component.ComponentAvatar.addMessage()=flumotion.manager.component.ComponentAvatar-class.html#addMessage,Method flumotion.manager.manager.Vishnu.addMessage()=flumotion.manager.manager.Vishnu-class.html#addMessage"><a title="flumotion.admin.gtk.message.MessagesView.addMessage
flumotion.component.base.baseadminnode.BaseAdminGtkNode.addMessage
flumotion.component.component.BaseComponent.addMessage
flumotion.manager.component.ComponentAvatar.addMessage
flumotion.manager.manager.Vishnu.addMessage" class="py-name" href="#" onclick="return doclink('link-26', 'addMessage', 'link-26');">addMessage</a></tt><tt class="py-op">(</tt> </tt>
<a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line">                    <tt id="link-27" class="py-name"><a title="flumotion.common.messages" class="py-name" href="#" onclick="return doclink('link-27', 'messages', 'link-1');">messages</a></tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Function flumotion.common.messages.Warning()=flumotion.common.messages-module.html#Warning"><a title="flumotion.common.messages.Warning" class="py-name" href="#" onclick="return doclink('link-28', 'Warning', 'link-28');">Warning</a></tt><tt class="py-op">(</tt><tt id="link-29" class="py-name"><a title="flumotion.worker.checks.audio.T_" class="py-name" href="#" onclick="return doclink('link-29', 'T_', 'link-11');">T_</a></tt><tt class="py-op">(</tt><tt id="link-30" class="py-name"><a title="flumotion.common.i18n.N_" class="py-name" href="#" onclick="return doclink('link-30', 'N_', 'link-4');">N_</a></tt><tt class="py-op">(</tt> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line">                        <tt class="py-string">"Your configuration uses 'bitrate' expressed in "</tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line">                        <tt class="py-string">"kbit/sec.  Please convert it to a value in bit/sec by"</tt> </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line">                        <tt class="py-string">" multiplying the value by 1000."</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">mid</tt><tt class="py-op">=</tt><tt class="py-string">'bitrate'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line">                <tt id="link-31" class="py-name"><a title="flumotion.launch.parse.Component.properties" class="py-name" href="#" onclick="return doclink('link-31', 'properties', 'link-24');">properties</a></tt><tt class="py-op">[</tt><tt class="py-string">'bitrate'</tt><tt class="py-op">]</tt> <tt class="py-op">*=</tt> <tt class="py-number">1000</tt> </tt>
<a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line"> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">p</tt> <tt class="py-keyword">in</tt> <tt class="py-name">props</tt><tt class="py-op">:</tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt> <tt class="py-name">tuple</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line">                <tt class="py-name">pproperty</tt><tt class="py-op">,</tt> <tt class="py-name">eproperty</tt> <tt class="py-op">=</tt> <tt class="py-name">p</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line">                <tt class="py-name">pproperty</tt> <tt class="py-op">=</tt> <tt class="py-name">eproperty</tt> <tt class="py-op">=</tt> <tt class="py-name">p</tt> </tt>
<a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line"> </tt>
<a name="L76"></a><tt class="py-lineno">76</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">pproperty</tt> <tt class="py-keyword">in</tt> <tt id="link-32" class="py-name"><a title="flumotion.launch.parse.Component.properties" class="py-name" href="#" onclick="return doclink('link-32', 'properties', 'link-24');">properties</a></tt><tt class="py-op">:</tt> </tt>
<a name="L77"></a><tt class="py-lineno">77</tt>  <tt class="py-line">                <tt class="py-keyword">continue</tt> </tt>
<a name="L78"></a><tt class="py-lineno">78</tt>  <tt class="py-line"> </tt>
<a name="L79"></a><tt class="py-lineno">79</tt>  <tt class="py-line">            <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name"><a title="flumotion.launch.parse.Component.properties" class="py-name" href="#" onclick="return doclink('link-33', 'properties', 'link-24');">properties</a></tt><tt class="py-op">[</tt><tt class="py-name">pproperty</tt><tt class="py-op">]</tt> </tt>
<a name="L80"></a><tt class="py-lineno">80</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="flumotion.common.avltree.debug
flumotion.common.debug
flumotion.common.testsuite.TestCase.debug
flumotion.extern.command.command.Command.debug
flumotion.extern.log.log.Loggable.debug
flumotion.extern.log.log.debug
flumotion.twisted.integration.debug" class="py-name" href="#" onclick="return doclink('link-34', 'debug', 'link-15');">debug</a></tt><tt class="py-op">(</tt><tt class="py-string">'Setting GStreamer property %s to %r'</tt> <tt class="py-op">%</tt> <tt class="py-op">(</tt> </tt>
<a name="L81"></a><tt class="py-lineno">81</tt>  <tt class="py-line">                <tt class="py-name">eproperty</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L82"></a><tt class="py-lineno">82</tt>  <tt class="py-line"> </tt>
<a name="L83"></a><tt class="py-lineno">83</tt>  <tt class="py-line">            <tt class="py-comment"># FIXME: GStreamer 0.10 has bitrate in kbps, inconsistent</tt> </tt>
<a name="L84"></a><tt class="py-lineno">84</tt>  <tt class="py-line">            <tt class="py-comment"># with all other elements, so fix it up</tt> </tt>
<a name="L85"></a><tt class="py-lineno">85</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">pproperty</tt> <tt class="py-op">==</tt> <tt class="py-string">'bitrate'</tt><tt class="py-op">:</tt> </tt>
<a name="L86"></a><tt class="py-lineno">86</tt>  <tt class="py-line">                <tt class="py-name">value</tt> <tt class="py-op">=</tt> <tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">value</tt><tt class="py-op">/</tt><tt class="py-number">1000</tt><tt class="py-op">)</tt> </tt>
<a name="L87"></a><tt class="py-lineno">87</tt>  <tt class="py-line">            <tt class="py-name">element</tt><tt class="py-op">.</tt><tt class="py-name">set_property</tt><tt class="py-op">(</tt><tt class="py-name">eproperty</tt><tt class="py-op">,</tt> <tt class="py-name">value</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L88"></a><tt class="py-lineno">88</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Sep 13 13:14:38 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>