src/build/html/pyams_media.html
changeset 11 ba0b83b57c0c
parent 10 1d12ff3f036a
child 12 f1f1e99a6572
equal deleted inserted replaced
10:1d12ff3f036a 11:ba0b83b57c0c
     1 
       
     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       
     3   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     4 
       
     5 <html xmlns="http://www.w3.org/1999/xhtml">
       
     6   <head>
       
     7     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
     8     <title>pyams_media package &#8212; PyAMS User Guide 0.1.0 documentation</title>
       
     9     <link rel="stylesheet" href="_static/pyramid.css" type="text/css" />
       
    10     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
       
    11     <script type="text/javascript">
       
    12       var DOCUMENTATION_OPTIONS = {
       
    13         URL_ROOT:    './',
       
    14         VERSION:     '0.1.0',
       
    15         COLLAPSE_INDEX: false,
       
    16         FILE_SUFFIX: '.html',
       
    17         HAS_SOURCE:  true,
       
    18         SOURCELINK_SUFFIX: '.txt'
       
    19       };
       
    20     </script>
       
    21     <script type="text/javascript" src="_static/jquery.js"></script>
       
    22     <script type="text/javascript" src="_static/underscore.js"></script>
       
    23     <script type="text/javascript" src="_static/doctools.js"></script>
       
    24     <link rel="index" title="Index" href="genindex.html" />
       
    25     <link rel="search" title="Search" href="search.html" />
       
    26 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Neuton&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
       
    27 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nobile:regular,italic,bold,bolditalic&amp;subset=latin" type="text/css" media="screen" charset="utf-8" />
       
    28 <!--[if lte IE 6]>
       
    29 <link rel="stylesheet" href="_static/ie6.css" type="text/css" media="screen" charset="utf-8" />
       
    30 <![endif]-->
       
    31 
       
    32   </head>
       
    33   <body>
       
    34 
       
    35     <div class="related" role="navigation" aria-label="related navigation">
       
    36       <h3>Navigation</h3>
       
    37       <ul>
       
    38         <li class="right" style="margin-right: 10px">
       
    39           <a href="genindex.html" title="General Index"
       
    40              accesskey="I">index</a></li>
       
    41         <li class="right" >
       
    42           <a href="py-modindex.html" title="Python Module Index"
       
    43              >modules</a> |</li>
       
    44         <li class="nav-item nav-item-0"><a href="index.html">PyAMS User Guide 0.1.0 documentation</a> &#187;</li> 
       
    45       </ul>
       
    46     </div>  
       
    47 
       
    48     <div class="document">
       
    49       <div class="documentwrapper">
       
    50         <div class="bodywrapper">
       
    51           <div class="body" role="main">
       
    52             
       
    53   <div class="section" id="pyams-media-package">
       
    54 <h1>pyams_media package<a class="headerlink" href="#pyams-media-package" title="Permalink to this headline">¶</a></h1>
       
    55 <div class="section" id="subpackages">
       
    56 <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
       
    57 <div class="toctree-wrapper compound">
       
    58 <ul>
       
    59 <li class="toctree-l1"><a class="reference internal" href="pyams_media.interfaces.html">pyams_media.interfaces package</a><ul>
       
    60 <li class="toctree-l2"><a class="reference internal" href="pyams_media.interfaces.html#module-pyams_media.interfaces">Module contents</a></li>
       
    61 </ul>
       
    62 </li>
       
    63 <li class="toctree-l1"><a class="reference internal" href="pyams_media.skin.html">pyams_media.skin package</a><ul>
       
    64 <li class="toctree-l2"><a class="reference internal" href="pyams_media.skin.html#module-pyams_media.skin">Module contents</a></li>
       
    65 </ul>
       
    66 </li>
       
    67 <li class="toctree-l1"><a class="reference internal" href="pyams_media.tests.html">pyams_media.tests package</a><ul>
       
    68 <li class="toctree-l2"><a class="reference internal" href="pyams_media.tests.html#submodules">Submodules</a></li>
       
    69 <li class="toctree-l2"><a class="reference internal" href="pyams_media.tests.html#module-pyams_media.tests.test_utilsdocs">pyams_media.tests.test_utilsdocs module</a></li>
       
    70 <li class="toctree-l2"><a class="reference internal" href="pyams_media.tests.html#module-pyams_media.tests.test_utilsdocstrings">pyams_media.tests.test_utilsdocstrings module</a></li>
       
    71 <li class="toctree-l2"><a class="reference internal" href="pyams_media.tests.html#module-pyams_media.tests">Module contents</a></li>
       
    72 </ul>
       
    73 </li>
       
    74 <li class="toctree-l1"><a class="reference internal" href="pyams_media.zmi.html">pyams_media.zmi package</a><ul>
       
    75 <li class="toctree-l2"><a class="reference internal" href="pyams_media.zmi.html#submodules">Submodules</a></li>
       
    76 <li class="toctree-l2"><a class="reference internal" href="pyams_media.zmi.html#module-pyams_media.zmi.audio">pyams_media.zmi.audio module</a></li>
       
    77 <li class="toctree-l2"><a class="reference internal" href="pyams_media.zmi.html#module-pyams_media.zmi.interfaces">pyams_media.zmi.interfaces module</a></li>
       
    78 <li class="toctree-l2"><a class="reference internal" href="pyams_media.zmi.html#module-pyams_media.zmi.media">pyams_media.zmi.media module</a></li>
       
    79 <li class="toctree-l2"><a class="reference internal" href="pyams_media.zmi.html#module-pyams_media.zmi.video">pyams_media.zmi.video module</a></li>
       
    80 <li class="toctree-l2"><a class="reference internal" href="pyams_media.zmi.html#module-pyams_media.zmi">Module contents</a></li>
       
    81 </ul>
       
    82 </li>
       
    83 </ul>
       
    84 </div>
       
    85 </div>
       
    86 <div class="section" id="submodules">
       
    87 <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
       
    88 </div>
       
    89 <div class="section" id="module-pyams_media.audio">
       
    90 <span id="pyams-media-audio-module"></span><h2>pyams_media.audio module<a class="headerlink" href="#module-pyams_media.audio" title="Permalink to this headline">¶</a></h2>
       
    91 <dl class="class">
       
    92 <dt id="pyams_media.audio.AudioTypeAdapter">
       
    93 <em class="property">class </em><code class="descclassname">pyams_media.audio.</code><code class="descname">AudioTypeAdapter</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.audio.AudioTypeAdapter" title="Permalink to this definition">¶</a></dt>
       
    94 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p>
       
    95 <p>Default audio content type adapter</p>
       
    96 <dl class="attribute">
       
    97 <dt id="pyams_media.audio.AudioTypeAdapter.audio_type">
       
    98 <code class="descname">audio_type</code><a class="headerlink" href="#pyams_media.audio.AudioTypeAdapter.audio_type" title="Permalink to this definition">¶</a></dt>
       
    99 <dd></dd></dl>
       
   100 
       
   101 </dd></dl>
       
   102 
       
   103 <dl class="class">
       
   104 <dt id="pyams_media.audio.AudioTypeExtension">
       
   105 <em class="property">class </em><code class="descclassname">pyams_media.audio.</code><code class="descname">AudioTypeExtension</code><span class="sig-paren">(</span><em>context</em>, <em>request</em>, <em>view</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.audio.AudioTypeExtension" title="Permalink to this definition">¶</a></dt>
       
   106 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextRequestViewAdapter" title="pyams_utils.adapter.ContextRequestViewAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextRequestViewAdapter</span></code></a></p>
       
   107 <p>extension:audio_type(media) TALES extension</p>
       
   108 <dl class="method">
       
   109 <dt id="pyams_media.audio.AudioTypeExtension.render">
       
   110 <code class="descname">render</code><span class="sig-paren">(</span><em>context=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.audio.AudioTypeExtension.render" title="Permalink to this definition">¶</a></dt>
       
   111 <dd></dd></dl>
       
   112 
       
   113 </dd></dl>
       
   114 
       
   115 </div>
       
   116 <div class="section" id="module-pyams_media.converter">
       
   117 <span id="pyams-media-converter-module"></span><h2>pyams_media.converter module<a class="headerlink" href="#module-pyams_media.converter" title="Permalink to this headline">¶</a></h2>
       
   118 <dl class="class">
       
   119 <dt id="pyams_media.converter.AudioConvertersVocabulary">
       
   120 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">AudioConvertersVocabulary</code><span class="sig-paren">(</span><em>context=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.AudioConvertersVocabulary" title="Permalink to this definition">¶</a></dt>
       
   121 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">zope.schema.vocabulary.SimpleVocabulary</span></code></p>
       
   122 <p>Audio converters vocabulary</p>
       
   123 </dd></dl>
       
   124 
       
   125 <dl class="class">
       
   126 <dt id="pyams_media.converter.BaseAudioConverter">
       
   127 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">BaseAudioConverter</code><a class="headerlink" href="#pyams_media.converter.BaseAudioConverter" title="Permalink to this definition">¶</a></dt>
       
   128 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseMediaConverter" title="pyams_media.converter.BaseMediaConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseMediaConverter</span></code></a></p>
       
   129 <p>Base media converter</p>
       
   130 <dl class="method">
       
   131 <dt id="pyams_media.converter.BaseAudioConverter.add_common_filters">
       
   132 <code class="descname">add_common_filters</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseAudioConverter.add_common_filters" title="Permalink to this definition">¶</a></dt>
       
   133 <dd></dd></dl>
       
   134 
       
   135 </dd></dl>
       
   136 
       
   137 <dl class="class">
       
   138 <dt id="pyams_media.converter.BaseMediaConverter">
       
   139 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">BaseMediaConverter</code><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter" title="Permalink to this definition">¶</a></dt>
       
   140 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
   141 <p>Base media converter</p>
       
   142 <dl class="method">
       
   143 <dt id="pyams_media.converter.BaseMediaConverter.add_common_filters">
       
   144 <code class="descname">add_common_filters</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter.add_common_filters" title="Permalink to this definition">¶</a></dt>
       
   145 <dd></dd></dl>
       
   146 
       
   147 <dl class="method">
       
   148 <dt id="pyams_media.converter.BaseMediaConverter.add_filters">
       
   149 <code class="descname">add_filters</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter.add_filters" title="Permalink to this definition">¶</a></dt>
       
   150 <dd></dd></dl>
       
   151 
       
   152 <dl class="method">
       
   153 <dt id="pyams_media.converter.BaseMediaConverter.convert">
       
   154 <code class="descname">convert</code><span class="sig-paren">(</span><em>media</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter.convert" title="Permalink to this definition">¶</a></dt>
       
   155 <dd><p>Convert media</p>
       
   156 </dd></dl>
       
   157 
       
   158 <dl class="attribute">
       
   159 <dt id="pyams_media.converter.BaseMediaConverter.format">
       
   160 <code class="descname">format</code><em class="property"> = None</em><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter.format" title="Permalink to this definition">¶</a></dt>
       
   161 <dd></dd></dl>
       
   162 
       
   163 <dl class="method">
       
   164 <dt id="pyams_media.converter.BaseMediaConverter.get_conversion_loop">
       
   165 <code class="descname">get_conversion_loop</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter.get_conversion_loop" title="Permalink to this definition">¶</a></dt>
       
   166 <dd></dd></dl>
       
   167 
       
   168 <dl class="method">
       
   169 <dt id="pyams_media.converter.BaseMediaConverter.require_input_file">
       
   170 <code class="descname">require_input_file</code><span class="sig-paren">(</span><em>media</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter.require_input_file" title="Permalink to this definition">¶</a></dt>
       
   171 <dd><p>Check if a physical file is required to handle conversion</p>
       
   172 </dd></dl>
       
   173 
       
   174 <dl class="attribute">
       
   175 <dt id="pyams_media.converter.BaseMediaConverter.require_temp_file">
       
   176 <code class="descname">require_temp_file</code><em class="property"> = False</em><a class="headerlink" href="#pyams_media.converter.BaseMediaConverter.require_temp_file" title="Permalink to this definition">¶</a></dt>
       
   177 <dd></dd></dl>
       
   178 
       
   179 </dd></dl>
       
   180 
       
   181 <dl class="class">
       
   182 <dt id="pyams_media.converter.BaseVideoConverter">
       
   183 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">BaseVideoConverter</code><a class="headerlink" href="#pyams_media.converter.BaseVideoConverter" title="Permalink to this definition">¶</a></dt>
       
   184 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseMediaConverter" title="pyams_media.converter.BaseMediaConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseMediaConverter</span></code></a></p>
       
   185 <p>Base video converter</p>
       
   186 <dl class="method">
       
   187 <dt id="pyams_media.converter.BaseVideoConverter.add_filters">
       
   188 <code class="descname">add_filters</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseVideoConverter.add_filters" title="Permalink to this definition">¶</a></dt>
       
   189 <dd></dd></dl>
       
   190 
       
   191 <dl class="method">
       
   192 <dt id="pyams_media.converter.BaseVideoConverter.get_conversion_loop">
       
   193 <code class="descname">get_conversion_loop</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.BaseVideoConverter.get_conversion_loop" title="Permalink to this definition">¶</a></dt>
       
   194 <dd></dd></dl>
       
   195 
       
   196 </dd></dl>
       
   197 
       
   198 <dl class="class">
       
   199 <dt id="pyams_media.converter.FlvVideoConverter">
       
   200 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">FlvVideoConverter</code><a class="headerlink" href="#pyams_media.converter.FlvVideoConverter" title="Permalink to this definition">¶</a></dt>
       
   201 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseVideoConverter" title="pyams_media.converter.BaseVideoConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseVideoConverter</span></code></a></p>
       
   202 <p>Default FLV media converter</p>
       
   203 <dl class="method">
       
   204 <dt id="pyams_media.converter.FlvVideoConverter.add_common_filters">
       
   205 <code class="descname">add_common_filters</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.FlvVideoConverter.add_common_filters" title="Permalink to this definition">¶</a></dt>
       
   206 <dd></dd></dl>
       
   207 
       
   208 <dl class="attribute">
       
   209 <dt id="pyams_media.converter.FlvVideoConverter.format">
       
   210 <code class="descname">format</code><em class="property"> = 'flv'</em><a class="headerlink" href="#pyams_media.converter.FlvVideoConverter.format" title="Permalink to this definition">¶</a></dt>
       
   211 <dd></dd></dl>
       
   212 
       
   213 <dl class="attribute">
       
   214 <dt id="pyams_media.converter.FlvVideoConverter.label">
       
   215 <code class="descname">label</code><em class="property"> = 'FLV (Flash Video) video converter'</em><a class="headerlink" href="#pyams_media.converter.FlvVideoConverter.label" title="Permalink to this definition">¶</a></dt>
       
   216 <dd></dd></dl>
       
   217 
       
   218 </dd></dl>
       
   219 
       
   220 <dl class="class">
       
   221 <dt id="pyams_media.converter.Mp3AudioConverter">
       
   222 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">Mp3AudioConverter</code><a class="headerlink" href="#pyams_media.converter.Mp3AudioConverter" title="Permalink to this definition">¶</a></dt>
       
   223 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseAudioConverter" title="pyams_media.converter.BaseAudioConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseAudioConverter</span></code></a></p>
       
   224 <p>Default MP3 media converter</p>
       
   225 <dl class="attribute">
       
   226 <dt id="pyams_media.converter.Mp3AudioConverter.format">
       
   227 <code class="descname">format</code><em class="property"> = 'mp3'</em><a class="headerlink" href="#pyams_media.converter.Mp3AudioConverter.format" title="Permalink to this definition">¶</a></dt>
       
   228 <dd></dd></dl>
       
   229 
       
   230 <dl class="attribute">
       
   231 <dt id="pyams_media.converter.Mp3AudioConverter.label">
       
   232 <code class="descname">label</code><em class="property"> = 'MP3 audio converter'</em><a class="headerlink" href="#pyams_media.converter.Mp3AudioConverter.label" title="Permalink to this definition">¶</a></dt>
       
   233 <dd></dd></dl>
       
   234 
       
   235 </dd></dl>
       
   236 
       
   237 <dl class="class">
       
   238 <dt id="pyams_media.converter.Mp4VideoConverter">
       
   239 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">Mp4VideoConverter</code><a class="headerlink" href="#pyams_media.converter.Mp4VideoConverter" title="Permalink to this definition">¶</a></dt>
       
   240 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseVideoConverter" title="pyams_media.converter.BaseVideoConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseVideoConverter</span></code></a></p>
       
   241 <p>Default MP4 media converter</p>
       
   242 <dl class="method">
       
   243 <dt id="pyams_media.converter.Mp4VideoConverter.add_common_filters">
       
   244 <code class="descname">add_common_filters</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.Mp4VideoConverter.add_common_filters" title="Permalink to this definition">¶</a></dt>
       
   245 <dd></dd></dl>
       
   246 
       
   247 <dl class="attribute">
       
   248 <dt id="pyams_media.converter.Mp4VideoConverter.format">
       
   249 <code class="descname">format</code><em class="property"> = 'mp4'</em><a class="headerlink" href="#pyams_media.converter.Mp4VideoConverter.format" title="Permalink to this definition">¶</a></dt>
       
   250 <dd></dd></dl>
       
   251 
       
   252 <dl class="attribute">
       
   253 <dt id="pyams_media.converter.Mp4VideoConverter.label">
       
   254 <code class="descname">label</code><em class="property"> = 'MP4 (HTML5) video converter'</em><a class="headerlink" href="#pyams_media.converter.Mp4VideoConverter.label" title="Permalink to this definition">¶</a></dt>
       
   255 <dd></dd></dl>
       
   256 
       
   257 <dl class="attribute">
       
   258 <dt id="pyams_media.converter.Mp4VideoConverter.require_temp_file">
       
   259 <code class="descname">require_temp_file</code><em class="property"> = True</em><a class="headerlink" href="#pyams_media.converter.Mp4VideoConverter.require_temp_file" title="Permalink to this definition">¶</a></dt>
       
   260 <dd></dd></dl>
       
   261 
       
   262 </dd></dl>
       
   263 
       
   264 <dl class="class">
       
   265 <dt id="pyams_media.converter.OggAudioConverter">
       
   266 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">OggAudioConverter</code><a class="headerlink" href="#pyams_media.converter.OggAudioConverter" title="Permalink to this definition">¶</a></dt>
       
   267 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseAudioConverter" title="pyams_media.converter.BaseAudioConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseAudioConverter</span></code></a></p>
       
   268 <p>Default OGG audio converter</p>
       
   269 <dl class="attribute">
       
   270 <dt id="pyams_media.converter.OggAudioConverter.format">
       
   271 <code class="descname">format</code><em class="property"> = 'ogg'</em><a class="headerlink" href="#pyams_media.converter.OggAudioConverter.format" title="Permalink to this definition">¶</a></dt>
       
   272 <dd></dd></dl>
       
   273 
       
   274 <dl class="attribute">
       
   275 <dt id="pyams_media.converter.OggAudioConverter.label">
       
   276 <code class="descname">label</code><em class="property"> = 'OGG audio converter'</em><a class="headerlink" href="#pyams_media.converter.OggAudioConverter.label" title="Permalink to this definition">¶</a></dt>
       
   277 <dd></dd></dl>
       
   278 
       
   279 </dd></dl>
       
   280 
       
   281 <dl class="class">
       
   282 <dt id="pyams_media.converter.OggVideoConverter">
       
   283 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">OggVideoConverter</code><a class="headerlink" href="#pyams_media.converter.OggVideoConverter" title="Permalink to this definition">¶</a></dt>
       
   284 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseVideoConverter" title="pyams_media.converter.BaseVideoConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseVideoConverter</span></code></a></p>
       
   285 <p>OGG media converter</p>
       
   286 <dl class="attribute">
       
   287 <dt id="pyams_media.converter.OggVideoConverter.format">
       
   288 <code class="descname">format</code><em class="property"> = 'ogg'</em><a class="headerlink" href="#pyams_media.converter.OggVideoConverter.format" title="Permalink to this definition">¶</a></dt>
       
   289 <dd></dd></dl>
       
   290 
       
   291 <dl class="attribute">
       
   292 <dt id="pyams_media.converter.OggVideoConverter.label">
       
   293 <code class="descname">label</code><em class="property"> = 'OGG video converter'</em><a class="headerlink" href="#pyams_media.converter.OggVideoConverter.label" title="Permalink to this definition">¶</a></dt>
       
   294 <dd></dd></dl>
       
   295 
       
   296 </dd></dl>
       
   297 
       
   298 <dl class="class">
       
   299 <dt id="pyams_media.converter.VideoConvertersVocabulary">
       
   300 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">VideoConvertersVocabulary</code><span class="sig-paren">(</span><em>context=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.VideoConvertersVocabulary" title="Permalink to this definition">¶</a></dt>
       
   301 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">zope.schema.vocabulary.SimpleVocabulary</span></code></p>
       
   302 <p>Video converters vocabulary</p>
       
   303 </dd></dl>
       
   304 
       
   305 <dl class="class">
       
   306 <dt id="pyams_media.converter.WavAudioConverter">
       
   307 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">WavAudioConverter</code><a class="headerlink" href="#pyams_media.converter.WavAudioConverter" title="Permalink to this definition">¶</a></dt>
       
   308 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseAudioConverter" title="pyams_media.converter.BaseAudioConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseAudioConverter</span></code></a></p>
       
   309 <p>Default WAV media converter</p>
       
   310 <dl class="attribute">
       
   311 <dt id="pyams_media.converter.WavAudioConverter.format">
       
   312 <code class="descname">format</code><em class="property"> = 'wav'</em><a class="headerlink" href="#pyams_media.converter.WavAudioConverter.format" title="Permalink to this definition">¶</a></dt>
       
   313 <dd></dd></dl>
       
   314 
       
   315 <dl class="attribute">
       
   316 <dt id="pyams_media.converter.WavAudioConverter.label">
       
   317 <code class="descname">label</code><em class="property"> = 'WAV audio converter'</em><a class="headerlink" href="#pyams_media.converter.WavAudioConverter.label" title="Permalink to this definition">¶</a></dt>
       
   318 <dd></dd></dl>
       
   319 
       
   320 </dd></dl>
       
   321 
       
   322 <dl class="class">
       
   323 <dt id="pyams_media.converter.WebmVideoConverter">
       
   324 <em class="property">class </em><code class="descclassname">pyams_media.converter.</code><code class="descname">WebmVideoConverter</code><a class="headerlink" href="#pyams_media.converter.WebmVideoConverter" title="Permalink to this definition">¶</a></dt>
       
   325 <dd><p>Bases: <a class="reference internal" href="#pyams_media.converter.BaseVideoConverter" title="pyams_media.converter.BaseVideoConverter"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.converter.BaseVideoConverter</span></code></a></p>
       
   326 <p>WebM Media converter</p>
       
   327 <dl class="method">
       
   328 <dt id="pyams_media.converter.WebmVideoConverter.add_common_filters">
       
   329 <code class="descname">add_common_filters</code><span class="sig-paren">(</span><em>document</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.converter.WebmVideoConverter.add_common_filters" title="Permalink to this definition">¶</a></dt>
       
   330 <dd></dd></dl>
       
   331 
       
   332 <dl class="attribute">
       
   333 <dt id="pyams_media.converter.WebmVideoConverter.format">
       
   334 <code class="descname">format</code><em class="property"> = 'webm'</em><a class="headerlink" href="#pyams_media.converter.WebmVideoConverter.format" title="Permalink to this definition">¶</a></dt>
       
   335 <dd></dd></dl>
       
   336 
       
   337 <dl class="attribute">
       
   338 <dt id="pyams_media.converter.WebmVideoConverter.label">
       
   339 <code class="descname">label</code><em class="property"> = 'WebM video converter'</em><a class="headerlink" href="#pyams_media.converter.WebmVideoConverter.label" title="Permalink to this definition">¶</a></dt>
       
   340 <dd></dd></dl>
       
   341 
       
   342 <dl class="attribute">
       
   343 <dt id="pyams_media.converter.WebmVideoConverter.require_temp_file">
       
   344 <code class="descname">require_temp_file</code><em class="property"> = True</em><a class="headerlink" href="#pyams_media.converter.WebmVideoConverter.require_temp_file" title="Permalink to this definition">¶</a></dt>
       
   345 <dd></dd></dl>
       
   346 
       
   347 </dd></dl>
       
   348 
       
   349 </div>
       
   350 <div class="section" id="module-pyams_media.ffbase">
       
   351 <span id="pyams-media-ffbase-module"></span><h2>pyams_media.ffbase module<a class="headerlink" href="#module-pyams_media.ffbase" title="Permalink to this headline">¶</a></h2>
       
   352 <dl class="class">
       
   353 <dt id="pyams_media.ffbase.FFmpeg">
       
   354 <em class="property">class </em><code class="descclassname">pyams_media.ffbase.</code><code class="descname">FFmpeg</code><span class="sig-paren">(</span><em>cmd='avconv'</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFmpeg" title="Permalink to this definition">¶</a></dt>
       
   355 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
   356 <p>FFmpeg Wrapper</p>
       
   357 <dl class="method">
       
   358 <dt id="pyams_media.ffbase.FFmpeg.info">
       
   359 <code class="descname">info</code><span class="sig-paren">(</span><em>input</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFmpeg.info" title="Permalink to this definition">¶</a></dt>
       
   360 <dd><p>Retrieve file information parsing command output</p>
       
   361 </dd></dl>
       
   362 
       
   363 <dl class="attribute">
       
   364 <dt id="pyams_media.ffbase.FFmpeg.re_audioline">
       
   365 <code class="descname">re_audioline</code><em class="property"> = re.compile('^\\s*Stream #(\\d+:\\d+?)\\(?([A-Za-z]*)\\)?: Audio: (.*?), (\\d+?) Hz, (.*?), (.*?), (\\d+?) kb\\/s$')</em><a class="headerlink" href="#pyams_media.ffbase.FFmpeg.re_audioline" title="Permalink to this definition">¶</a></dt>
       
   366 <dd></dd></dl>
       
   367 
       
   368 <dl class="attribute">
       
   369 <dt id="pyams_media.ffbase.FFmpeg.re_infoline">
       
   370 <code class="descname">re_infoline</code><em class="property"> = re.compile('^\\s*Duration: (.*?), start: 0\\.000000, bitrate: (\\d+?) kb\\/s$')</em><a class="headerlink" href="#pyams_media.ffbase.FFmpeg.re_infoline" title="Permalink to this definition">¶</a></dt>
       
   371 <dd></dd></dl>
       
   372 
       
   373 <dl class="attribute">
       
   374 <dt id="pyams_media.ffbase.FFmpeg.re_mainline">
       
   375 <code class="descname">re_mainline</code><em class="property"> = re.compile(&quot;^\\s*Input #(\\d+?), (.*?), from '(.*?)':$&quot;)</em><a class="headerlink" href="#pyams_media.ffbase.FFmpeg.re_mainline" title="Permalink to this definition">¶</a></dt>
       
   376 <dd></dd></dl>
       
   377 
       
   378 <dl class="attribute">
       
   379 <dt id="pyams_media.ffbase.FFmpeg.re_videoline">
       
   380 <code class="descname">re_videoline</code><em class="property"> = re.compile('^\\s*Stream #(\\d+:\\d+?)\\(?([A-Za-z]*)\\)?: Video: (.*?), (.*?), (.*?), (.*?)$')</em><a class="headerlink" href="#pyams_media.ffbase.FFmpeg.re_videoline" title="Permalink to this definition">¶</a></dt>
       
   381 <dd></dd></dl>
       
   382 
       
   383 <dl class="method">
       
   384 <dt id="pyams_media.ffbase.FFmpeg.render">
       
   385 <code class="descname">render</code><span class="sig-paren">(</span><em>effectchain</em>, <em>output</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFmpeg.render" title="Permalink to this definition">¶</a></dt>
       
   386 <dd><p>Create a new file by chaining audio/video effects</p>
       
   387 </dd></dl>
       
   388 
       
   389 </dd></dl>
       
   390 
       
   391 <dl class="class">
       
   392 <dt id="pyams_media.ffbase.FFVideoEffect">
       
   393 <em class="property">class </em><code class="descclassname">pyams_media.ffbase.</code><code class="descname">FFVideoEffect</code><span class="sig-paren">(</span><em>inputfile=None</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect" title="Permalink to this definition">¶</a></dt>
       
   394 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">pyams_media.ffbase.FFEffect</span></code></p>
       
   395 <p>video effect</p>
       
   396 <dl class="method">
       
   397 <dt id="pyams_media.ffbase.FFVideoEffect.aspect">
       
   398 <code class="descname">aspect</code><span class="sig-paren">(</span><em>aspect=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.aspect" title="Permalink to this definition">¶</a></dt>
       
   399 <dd><p>set aspect ratio</p>
       
   400 </dd></dl>
       
   401 
       
   402 <dl class="method">
       
   403 <dt id="pyams_media.ffbase.FFVideoEffect.bitrate">
       
   404 <code class="descname">bitrate</code><span class="sig-paren">(</span><em>b=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.bitrate" title="Permalink to this definition">¶</a></dt>
       
   405 <dd><p>set video bitrate</p>
       
   406 </dd></dl>
       
   407 
       
   408 <dl class="method">
       
   409 <dt id="pyams_media.ffbase.FFVideoEffect.bitraterange">
       
   410 <code class="descname">bitraterange</code><span class="sig-paren">(</span><em>minrate=None</em>, <em>maxrate=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.bitraterange" title="Permalink to this definition">¶</a></dt>
       
   411 <dd><p>set min/max bitrate (bit/s)</p>
       
   412 </dd></dl>
       
   413 
       
   414 <dl class="method">
       
   415 <dt id="pyams_media.ffbase.FFVideoEffect.bitratetolerance">
       
   416 <code class="descname">bitratetolerance</code><span class="sig-paren">(</span><em>bt=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.bitratetolerance" title="Permalink to this definition">¶</a></dt>
       
   417 <dd><p>set bitrate tolerance</p>
       
   418 </dd></dl>
       
   419 
       
   420 <dl class="method">
       
   421 <dt id="pyams_media.ffbase.FFVideoEffect.bufsize">
       
   422 <code class="descname">bufsize</code><span class="sig-paren">(</span><em>bufsize=4096</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.bufsize" title="Permalink to this definition">¶</a></dt>
       
   423 <dd><p>set buffer size (bits)</p>
       
   424 </dd></dl>
       
   425 
       
   426 <dl class="method">
       
   427 <dt id="pyams_media.ffbase.FFVideoEffect.crop">
       
   428 <code class="descname">crop</code><span class="sig-paren">(</span><em>top=0</em>, <em>bottom=0</em>, <em>left=0</em>, <em>right=0</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.crop" title="Permalink to this definition">¶</a></dt>
       
   429 <dd><p>set the crop size</p>
       
   430 </dd></dl>
       
   431 
       
   432 <dl class="method">
       
   433 <dt id="pyams_media.ffbase.FFVideoEffect.intra">
       
   434 <code class="descname">intra</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.intra" title="Permalink to this definition">¶</a></dt>
       
   435 <dd><p>use only intra frames</p>
       
   436 </dd></dl>
       
   437 
       
   438 <dl class="method">
       
   439 <dt id="pyams_media.ffbase.FFVideoEffect.lagrangefactor">
       
   440 <code class="descname">lagrangefactor</code><span class="sig-paren">(</span><em>lmin=None</em>, <em>lmax=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.lagrangefactor" title="Permalink to this definition">¶</a></dt>
       
   441 <dd><p>min/max lagrange factor</p>
       
   442 </dd></dl>
       
   443 
       
   444 <dl class="method">
       
   445 <dt id="pyams_media.ffbase.FFVideoEffect.macroblock">
       
   446 <code class="descname">macroblock</code><span class="sig-paren">(</span><em>mblmin=None</em>, <em>mblmax=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.macroblock" title="Permalink to this definition">¶</a></dt>
       
   447 <dd><p>min/max macroblock scale</p>
       
   448 </dd></dl>
       
   449 
       
   450 <dl class="method">
       
   451 <dt id="pyams_media.ffbase.FFVideoEffect.pad">
       
   452 <code class="descname">pad</code><span class="sig-paren">(</span><em>top=0</em>, <em>bottom=0</em>, <em>left=0</em>, <em>right=0</em>, <em>color='000000'</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.pad" title="Permalink to this definition">¶</a></dt>
       
   453 <dd><p>set the pad band size and color as hex value</p>
       
   454 </dd></dl>
       
   455 
       
   456 <dl class="method">
       
   457 <dt id="pyams_media.ffbase.FFVideoEffect.passenc">
       
   458 <code class="descname">passenc</code><span class="sig-paren">(</span><em>p=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.passenc" title="Permalink to this definition">¶</a></dt>
       
   459 <dd><p>select pass number (1 or 2)</p>
       
   460 </dd></dl>
       
   461 
       
   462 <dl class="method">
       
   463 <dt id="pyams_media.ffbase.FFVideoEffect.picturesize">
       
   464 <code class="descname">picturesize</code><span class="sig-paren">(</span><em>gop=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.picturesize" title="Permalink to this definition">¶</a></dt>
       
   465 <dd><p>set of group pictures size</p>
       
   466 </dd></dl>
       
   467 
       
   468 <dl class="method">
       
   469 <dt id="pyams_media.ffbase.FFVideoEffect.pixelformat">
       
   470 <code class="descname">pixelformat</code><span class="sig-paren">(</span><em>p=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.pixelformat" title="Permalink to this definition">¶</a></dt>
       
   471 <dd><p>set pixelformat</p>
       
   472 </dd></dl>
       
   473 
       
   474 <dl class="method">
       
   475 <dt id="pyams_media.ffbase.FFVideoEffect.quantizerblur">
       
   476 <code class="descname">quantizerblur</code><span class="sig-paren">(</span><em>qblur=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.quantizerblur" title="Permalink to this definition">¶</a></dt>
       
   477 <dd><p>video quantizer scale blur</p>
       
   478 </dd></dl>
       
   479 
       
   480 <dl class="method">
       
   481 <dt id="pyams_media.ffbase.FFVideoEffect.quantizercompression">
       
   482 <code class="descname">quantizercompression</code><span class="sig-paren">(</span><em>qcomp=0.5</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.quantizercompression" title="Permalink to this definition">¶</a></dt>
       
   483 <dd><p>video quantizer scale compression</p>
       
   484 </dd></dl>
       
   485 
       
   486 <dl class="method">
       
   487 <dt id="pyams_media.ffbase.FFVideoEffect.quantizerrange">
       
   488 <code class="descname">quantizerrange</code><span class="sig-paren">(</span><em>qmin=None</em>, <em>qmax=None</em>, <em>qdiff=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.quantizerrange" title="Permalink to this definition">¶</a></dt>
       
   489 <dd><p>define min/max quantizer scale</p>
       
   490 </dd></dl>
       
   491 
       
   492 <dl class="method">
       
   493 <dt id="pyams_media.ffbase.FFVideoEffect.quantizerscale">
       
   494 <code class="descname">quantizerscale</code><span class="sig-paren">(</span><em>qscale=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.quantizerscale" title="Permalink to this definition">¶</a></dt>
       
   495 <dd><p>Fixed quantizer scale</p>
       
   496 </dd></dl>
       
   497 
       
   498 <dl class="method">
       
   499 <dt id="pyams_media.ffbase.FFVideoEffect.rate">
       
   500 <code class="descname">rate</code><span class="sig-paren">(</span><em>r=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.rate" title="Permalink to this definition">¶</a></dt>
       
   501 <dd><p>set frame rate</p>
       
   502 </dd></dl>
       
   503 
       
   504 <dl class="method">
       
   505 <dt id="pyams_media.ffbase.FFVideoEffect.sameq">
       
   506 <code class="descname">sameq</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.sameq" title="Permalink to this definition">¶</a></dt>
       
   507 <dd><p>use same video quality as source</p>
       
   508 </dd></dl>
       
   509 
       
   510 <dl class="method">
       
   511 <dt id="pyams_media.ffbase.FFVideoEffect.size">
       
   512 <code class="descname">size</code><span class="sig-paren">(</span><em>s=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.size" title="Permalink to this definition">¶</a></dt>
       
   513 <dd><p>set frame size</p>
       
   514 </dd></dl>
       
   515 
       
   516 <dl class="method">
       
   517 <dt id="pyams_media.ffbase.FFVideoEffect.unset_aspect">
       
   518 <code class="descname">unset_aspect</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_aspect" title="Permalink to this definition">¶</a></dt>
       
   519 <dd></dd></dl>
       
   520 
       
   521 <dl class="method">
       
   522 <dt id="pyams_media.ffbase.FFVideoEffect.unset_bitrate">
       
   523 <code class="descname">unset_bitrate</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_bitrate" title="Permalink to this definition">¶</a></dt>
       
   524 <dd></dd></dl>
       
   525 
       
   526 <dl class="method">
       
   527 <dt id="pyams_media.ffbase.FFVideoEffect.unset_bitraterange">
       
   528 <code class="descname">unset_bitraterange</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_bitraterange" title="Permalink to this definition">¶</a></dt>
       
   529 <dd></dd></dl>
       
   530 
       
   531 <dl class="method">
       
   532 <dt id="pyams_media.ffbase.FFVideoEffect.unset_bitratetolerance">
       
   533 <code class="descname">unset_bitratetolerance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_bitratetolerance" title="Permalink to this definition">¶</a></dt>
       
   534 <dd></dd></dl>
       
   535 
       
   536 <dl class="method">
       
   537 <dt id="pyams_media.ffbase.FFVideoEffect.unset_bufsize">
       
   538 <code class="descname">unset_bufsize</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_bufsize" title="Permalink to this definition">¶</a></dt>
       
   539 <dd></dd></dl>
       
   540 
       
   541 <dl class="method">
       
   542 <dt id="pyams_media.ffbase.FFVideoEffect.unset_crop">
       
   543 <code class="descname">unset_crop</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_crop" title="Permalink to this definition">¶</a></dt>
       
   544 <dd></dd></dl>
       
   545 
       
   546 <dl class="method">
       
   547 <dt id="pyams_media.ffbase.FFVideoEffect.unset_intra">
       
   548 <code class="descname">unset_intra</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_intra" title="Permalink to this definition">¶</a></dt>
       
   549 <dd></dd></dl>
       
   550 
       
   551 <dl class="method">
       
   552 <dt id="pyams_media.ffbase.FFVideoEffect.unset_lagrangefactor">
       
   553 <code class="descname">unset_lagrangefactor</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_lagrangefactor" title="Permalink to this definition">¶</a></dt>
       
   554 <dd></dd></dl>
       
   555 
       
   556 <dl class="method">
       
   557 <dt id="pyams_media.ffbase.FFVideoEffect.unset_macroblock">
       
   558 <code class="descname">unset_macroblock</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_macroblock" title="Permalink to this definition">¶</a></dt>
       
   559 <dd></dd></dl>
       
   560 
       
   561 <dl class="method">
       
   562 <dt id="pyams_media.ffbase.FFVideoEffect.unset_pad">
       
   563 <code class="descname">unset_pad</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_pad" title="Permalink to this definition">¶</a></dt>
       
   564 <dd></dd></dl>
       
   565 
       
   566 <dl class="method">
       
   567 <dt id="pyams_media.ffbase.FFVideoEffect.unset_passenc">
       
   568 <code class="descname">unset_passenc</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_passenc" title="Permalink to this definition">¶</a></dt>
       
   569 <dd></dd></dl>
       
   570 
       
   571 <dl class="method">
       
   572 <dt id="pyams_media.ffbase.FFVideoEffect.unset_picturesize">
       
   573 <code class="descname">unset_picturesize</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_picturesize" title="Permalink to this definition">¶</a></dt>
       
   574 <dd></dd></dl>
       
   575 
       
   576 <dl class="method">
       
   577 <dt id="pyams_media.ffbase.FFVideoEffect.unset_pixelformat">
       
   578 <code class="descname">unset_pixelformat</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_pixelformat" title="Permalink to this definition">¶</a></dt>
       
   579 <dd></dd></dl>
       
   580 
       
   581 <dl class="method">
       
   582 <dt id="pyams_media.ffbase.FFVideoEffect.unset_quantizerblur">
       
   583 <code class="descname">unset_quantizerblur</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_quantizerblur" title="Permalink to this definition">¶</a></dt>
       
   584 <dd></dd></dl>
       
   585 
       
   586 <dl class="method">
       
   587 <dt id="pyams_media.ffbase.FFVideoEffect.unset_quantizercompression">
       
   588 <code class="descname">unset_quantizercompression</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_quantizercompression" title="Permalink to this definition">¶</a></dt>
       
   589 <dd></dd></dl>
       
   590 
       
   591 <dl class="method">
       
   592 <dt id="pyams_media.ffbase.FFVideoEffect.unset_quantizerrange">
       
   593 <code class="descname">unset_quantizerrange</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_quantizerrange" title="Permalink to this definition">¶</a></dt>
       
   594 <dd></dd></dl>
       
   595 
       
   596 <dl class="method">
       
   597 <dt id="pyams_media.ffbase.FFVideoEffect.unset_quantizerscale">
       
   598 <code class="descname">unset_quantizerscale</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_quantizerscale" title="Permalink to this definition">¶</a></dt>
       
   599 <dd></dd></dl>
       
   600 
       
   601 <dl class="method">
       
   602 <dt id="pyams_media.ffbase.FFVideoEffect.unset_rate">
       
   603 <code class="descname">unset_rate</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_rate" title="Permalink to this definition">¶</a></dt>
       
   604 <dd></dd></dl>
       
   605 
       
   606 <dl class="method">
       
   607 <dt id="pyams_media.ffbase.FFVideoEffect.unset_sameq">
       
   608 <code class="descname">unset_sameq</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_sameq" title="Permalink to this definition">¶</a></dt>
       
   609 <dd></dd></dl>
       
   610 
       
   611 <dl class="method">
       
   612 <dt id="pyams_media.ffbase.FFVideoEffect.unset_size">
       
   613 <code class="descname">unset_size</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_size" title="Permalink to this definition">¶</a></dt>
       
   614 <dd></dd></dl>
       
   615 
       
   616 <dl class="method">
       
   617 <dt id="pyams_media.ffbase.FFVideoEffect.unset_vcodec">
       
   618 <code class="descname">unset_vcodec</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_vcodec" title="Permalink to this definition">¶</a></dt>
       
   619 <dd></dd></dl>
       
   620 
       
   621 <dl class="method">
       
   622 <dt id="pyams_media.ffbase.FFVideoEffect.unset_vdthreshold">
       
   623 <code class="descname">unset_vdthreshold</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_vdthreshold" title="Permalink to this definition">¶</a></dt>
       
   624 <dd></dd></dl>
       
   625 
       
   626 <dl class="method">
       
   627 <dt id="pyams_media.ffbase.FFVideoEffect.unset_vframes">
       
   628 <code class="descname">unset_vframes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_vframes" title="Permalink to this definition">¶</a></dt>
       
   629 <dd></dd></dl>
       
   630 
       
   631 <dl class="method">
       
   632 <dt id="pyams_media.ffbase.FFVideoEffect.unset_vn">
       
   633 <code class="descname">unset_vn</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.unset_vn" title="Permalink to this definition">¶</a></dt>
       
   634 <dd></dd></dl>
       
   635 
       
   636 <dl class="method">
       
   637 <dt id="pyams_media.ffbase.FFVideoEffect.vcodec">
       
   638 <code class="descname">vcodec</code><span class="sig-paren">(</span><em>vcodec='copy'</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.vcodec" title="Permalink to this definition">¶</a></dt>
       
   639 <dd><p>set video codec</p>
       
   640 </dd></dl>
       
   641 
       
   642 <dl class="method">
       
   643 <dt id="pyams_media.ffbase.FFVideoEffect.vdthreshold">
       
   644 <code class="descname">vdthreshold</code><span class="sig-paren">(</span><em>vdt=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.vdthreshold" title="Permalink to this definition">¶</a></dt>
       
   645 <dd><p>discard threshold</p>
       
   646 </dd></dl>
       
   647 
       
   648 <dl class="method">
       
   649 <dt id="pyams_media.ffbase.FFVideoEffect.vframes">
       
   650 <code class="descname">vframes</code><span class="sig-paren">(</span><em>vframes=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.vframes" title="Permalink to this definition">¶</a></dt>
       
   651 <dd><p>set number of video frames to record</p>
       
   652 </dd></dl>
       
   653 
       
   654 <dl class="method">
       
   655 <dt id="pyams_media.ffbase.FFVideoEffect.vn">
       
   656 <code class="descname">vn</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFVideoEffect.vn" title="Permalink to this definition">¶</a></dt>
       
   657 <dd><p>disable video recording</p>
       
   658 </dd></dl>
       
   659 
       
   660 </dd></dl>
       
   661 
       
   662 <dl class="class">
       
   663 <dt id="pyams_media.ffbase.FFAudioEffect">
       
   664 <em class="property">class </em><code class="descclassname">pyams_media.ffbase.</code><code class="descname">FFAudioEffect</code><span class="sig-paren">(</span><em>inputfile</em>, <em>**args</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect" title="Permalink to this definition">¶</a></dt>
       
   665 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">pyams_media.ffbase.FFEffect</span></code></p>
       
   666 <p>Audio effect</p>
       
   667 <dl class="method">
       
   668 <dt id="pyams_media.ffbase.FFAudioEffect.acodec">
       
   669 <code class="descname">acodec</code><span class="sig-paren">(</span><em>acodec='copy'</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.acodec" title="Permalink to this definition">¶</a></dt>
       
   670 <dd><p>select audio codec</p>
       
   671 </dd></dl>
       
   672 
       
   673 <dl class="method">
       
   674 <dt id="pyams_media.ffbase.FFAudioEffect.aframes">
       
   675 <code class="descname">aframes</code><span class="sig-paren">(</span><em>aframes=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.aframes" title="Permalink to this definition">¶</a></dt>
       
   676 <dd><p>set number of audio frames to record</p>
       
   677 </dd></dl>
       
   678 
       
   679 <dl class="method">
       
   680 <dt id="pyams_media.ffbase.FFAudioEffect.audiobitrate">
       
   681 <code class="descname">audiobitrate</code><span class="sig-paren">(</span><em>ab=64</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.audiobitrate" title="Permalink to this definition">¶</a></dt>
       
   682 <dd><p>set audio bitrate (kbit/s)</p>
       
   683 </dd></dl>
       
   684 
       
   685 <dl class="method">
       
   686 <dt id="pyams_media.ffbase.FFAudioEffect.audiochannels">
       
   687 <code class="descname">audiochannels</code><span class="sig-paren">(</span><em>ac=1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.audiochannels" title="Permalink to this definition">¶</a></dt>
       
   688 <dd><p>set number of audio channels</p>
       
   689 </dd></dl>
       
   690 
       
   691 <dl class="method">
       
   692 <dt id="pyams_media.ffbase.FFAudioEffect.audiorecording">
       
   693 <code class="descname">audiorecording</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.audiorecording" title="Permalink to this definition">¶</a></dt>
       
   694 <dd><p>disable audio recording</p>
       
   695 </dd></dl>
       
   696 
       
   697 <dl class="method">
       
   698 <dt id="pyams_media.ffbase.FFAudioEffect.audiosampling">
       
   699 <code class="descname">audiosampling</code><span class="sig-paren">(</span><em>ar=44100</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.audiosampling" title="Permalink to this definition">¶</a></dt>
       
   700 <dd><p>set audio sampling frequency (Hz)</p>
       
   701 </dd></dl>
       
   702 
       
   703 <dl class="method">
       
   704 <dt id="pyams_media.ffbase.FFAudioEffect.newaudio">
       
   705 <code class="descname">newaudio</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.newaudio" title="Permalink to this definition">¶</a></dt>
       
   706 <dd><p>add new audio track</p>
       
   707 </dd></dl>
       
   708 
       
   709 <dl class="method">
       
   710 <dt id="pyams_media.ffbase.FFAudioEffect.unset_acodec">
       
   711 <code class="descname">unset_acodec</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.unset_acodec" title="Permalink to this definition">¶</a></dt>
       
   712 <dd></dd></dl>
       
   713 
       
   714 <dl class="method">
       
   715 <dt id="pyams_media.ffbase.FFAudioEffect.unset_aframes">
       
   716 <code class="descname">unset_aframes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.unset_aframes" title="Permalink to this definition">¶</a></dt>
       
   717 <dd></dd></dl>
       
   718 
       
   719 <dl class="method">
       
   720 <dt id="pyams_media.ffbase.FFAudioEffect.unset_audiobitrate">
       
   721 <code class="descname">unset_audiobitrate</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.unset_audiobitrate" title="Permalink to this definition">¶</a></dt>
       
   722 <dd></dd></dl>
       
   723 
       
   724 <dl class="method">
       
   725 <dt id="pyams_media.ffbase.FFAudioEffect.unset_audiochannels">
       
   726 <code class="descname">unset_audiochannels</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.unset_audiochannels" title="Permalink to this definition">¶</a></dt>
       
   727 <dd></dd></dl>
       
   728 
       
   729 <dl class="method">
       
   730 <dt id="pyams_media.ffbase.FFAudioEffect.unset_audiorecording">
       
   731 <code class="descname">unset_audiorecording</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.unset_audiorecording" title="Permalink to this definition">¶</a></dt>
       
   732 <dd></dd></dl>
       
   733 
       
   734 <dl class="method">
       
   735 <dt id="pyams_media.ffbase.FFAudioEffect.unset_audiosampling">
       
   736 <code class="descname">unset_audiosampling</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.unset_audiosampling" title="Permalink to this definition">¶</a></dt>
       
   737 <dd></dd></dl>
       
   738 
       
   739 <dl class="method">
       
   740 <dt id="pyams_media.ffbase.FFAudioEffect.unset_newaudio">
       
   741 <code class="descname">unset_newaudio</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffbase.FFAudioEffect.unset_newaudio" title="Permalink to this definition">¶</a></dt>
       
   742 <dd></dd></dl>
       
   743 
       
   744 </dd></dl>
       
   745 
       
   746 </div>
       
   747 <div class="section" id="module-pyams_media.ffdocument">
       
   748 <span id="pyams-media-ffdocument-module"></span><h2>pyams_media.ffdocument module<a class="headerlink" href="#module-pyams_media.ffdocument" title="Permalink to this headline">¶</a></h2>
       
   749 <dl class="class">
       
   750 <dt id="pyams_media.ffdocument.FFDocument">
       
   751 <em class="property">class </em><code class="descclassname">pyams_media.ffdocument.</code><code class="descname">FFDocument</code><span class="sig-paren">(</span><em>file</em>, <em>metadata=None</em>, <em>effects={}</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument" title="Permalink to this definition">¶</a></dt>
       
   752 <dd><p>Bases: <a class="reference internal" href="#pyams_media.ffbase.FFVideoEffect" title="pyams_media.ffbase.FFVideoEffect"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.ffbase.FFVideoEffect</span></code></a>, <a class="reference internal" href="#pyams_media.ffbase.FFAudioEffect" title="pyams_media.ffbase.FFAudioEffect"><code class="xref py py-class docutils literal"><span class="pre">pyams_media.ffbase.FFAudioEffect</span></code></a></p>
       
   753 <p>audio/video document. A FFDocument describe a higer level action set
       
   754 combining several FF[Audio|Video]Effect methods.</p>
       
   755 <dl class="method">
       
   756 <dt id="pyams_media.ffdocument.FFDocument.chainto">
       
   757 <code class="descname">chainto</code><span class="sig-paren">(</span><em>ffdoc</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.chainto" title="Permalink to this definition">¶</a></dt>
       
   758 <dd><p>Prepare to append at the end of another movie clip</p>
       
   759 </dd></dl>
       
   760 
       
   761 <dl class="method">
       
   762 <dt id="pyams_media.ffdocument.FFDocument.get_stream_info">
       
   763 <code class="descname">get_stream_info</code><span class="sig-paren">(</span><em>codec_type=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.get_stream_info" title="Permalink to this definition">¶</a></dt>
       
   764 <dd><p>Get metadata info for given stream</p>
       
   765 </dd></dl>
       
   766 
       
   767 <dl class="method">
       
   768 <dt id="pyams_media.ffdocument.FFDocument.ltrim">
       
   769 <code class="descname">ltrim</code><span class="sig-paren">(</span><em>time</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.ltrim" title="Permalink to this definition">¶</a></dt>
       
   770 <dd><p>Trim leftmost side (from start) of the clip</p>
       
   771 </dd></dl>
       
   772 
       
   773 <dl class="method">
       
   774 <dt id="pyams_media.ffdocument.FFDocument.resample">
       
   775 <code class="descname">resample</code><span class="sig-paren">(</span><em>width=0</em>, <em>height=0</em>, <em>vstream=0</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.resample" title="Permalink to this definition">¶</a></dt>
       
   776 <dd><p>Adjust video dimensions. If one dimension is specified, the re-sampling is proportional</p>
       
   777 </dd></dl>
       
   778 
       
   779 <dl class="method">
       
   780 <dt id="pyams_media.ffdocument.FFDocument.resize">
       
   781 <code class="descname">resize</code><span class="sig-paren">(</span><em>width=0</em>, <em>height=0</em>, <em>vstream=0</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.resize" title="Permalink to this definition">¶</a></dt>
       
   782 <dd><p>Resize video dimensions. If one dimension is specified, the re-sampling is proportional</p>
       
   783 <p>Width and height can be pixel or % (not mixable)</p>
       
   784 </dd></dl>
       
   785 
       
   786 <dl class="method">
       
   787 <dt id="pyams_media.ffdocument.FFDocument.rtrim">
       
   788 <code class="descname">rtrim</code><span class="sig-paren">(</span><em>time</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.rtrim" title="Permalink to this definition">¶</a></dt>
       
   789 <dd><p>Trim rightmost side (from end) of the clip</p>
       
   790 </dd></dl>
       
   791 
       
   792 <dl class="method">
       
   793 <dt id="pyams_media.ffdocument.FFDocument.split">
       
   794 <code class="descname">split</code><span class="sig-paren">(</span><em>time</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.split" title="Permalink to this definition">¶</a></dt>
       
   795 <dd><p>Return a tuple of FFDocument splitted at a specified time.</p>
       
   796 <p>Allowed formats: %, sec, hh:mm:ss.mmm</p>
       
   797 </dd></dl>
       
   798 
       
   799 <dl class="method">
       
   800 <dt id="pyams_media.ffdocument.FFDocument.trim">
       
   801 <code class="descname">trim</code><span class="sig-paren">(</span><em>left</em>, <em>right</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffdocument.FFDocument.trim" title="Permalink to this definition">¶</a></dt>
       
   802 <dd><p>Left and right trim (actually calls ltrim and rtrim)</p>
       
   803 </dd></dl>
       
   804 
       
   805 </dd></dl>
       
   806 
       
   807 </div>
       
   808 <div class="section" id="module-pyams_media.ffexception">
       
   809 <span id="pyams-media-ffexception-module"></span><h2>pyams_media.ffexception module<a class="headerlink" href="#module-pyams_media.ffexception" title="Permalink to this headline">¶</a></h2>
       
   810 <dl class="exception">
       
   811 <dt id="pyams_media.ffexception.FFException">
       
   812 <em class="property">exception </em><code class="descclassname">pyams_media.ffexception.</code><code class="descname">FFException</code><span class="sig-paren">(</span><em>value</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.ffexception.FFException" title="Permalink to this definition">¶</a></dt>
       
   813 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">Exception</span></code></p>
       
   814 </dd></dl>
       
   815 
       
   816 </div>
       
   817 <div class="section" id="module-pyams_media.include">
       
   818 <span id="pyams-media-include-module"></span><h2>pyams_media.include module<a class="headerlink" href="#module-pyams_media.include" title="Permalink to this headline">¶</a></h2>
       
   819 <dl class="function">
       
   820 <dt id="pyams_media.include.handle_new_application">
       
   821 <code class="descclassname">pyams_media.include.</code><code class="descname">handle_new_application</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.include.handle_new_application" title="Permalink to this definition">¶</a></dt>
       
   822 <dd><p>Start converter process when application created</p>
       
   823 </dd></dl>
       
   824 
       
   825 <dl class="function">
       
   826 <dt id="pyams_media.include.include_package">
       
   827 <code class="descclassname">pyams_media.include.</code><code class="descname">include_package</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.include.include_package" title="Permalink to this definition">¶</a></dt>
       
   828 <dd><p>Pyramid include</p>
       
   829 </dd></dl>
       
   830 
       
   831 </div>
       
   832 <div class="section" id="module-pyams_media.media">
       
   833 <span id="pyams-media-media-module"></span><h2>pyams_media.media module<a class="headerlink" href="#module-pyams_media.media" title="Permalink to this headline">¶</a></h2>
       
   834 <dl class="class">
       
   835 <dt id="pyams_media.media.ConversionsExtension">
       
   836 <em class="property">class </em><code class="descclassname">pyams_media.media.</code><code class="descname">ConversionsExtension</code><span class="sig-paren">(</span><em>context</em>, <em>request</em>, <em>view</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.ConversionsExtension" title="Permalink to this definition">¶</a></dt>
       
   837 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextRequestViewAdapter" title="pyams_utils.adapter.ContextRequestViewAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextRequestViewAdapter</span></code></a></p>
       
   838 <p>extension:conversions(media) TALES extension</p>
       
   839 <dl class="method">
       
   840 <dt id="pyams_media.media.ConversionsExtension.render">
       
   841 <code class="descname">render</code><span class="sig-paren">(</span><em>context=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.ConversionsExtension.render" title="Permalink to this definition">¶</a></dt>
       
   842 <dd></dd></dl>
       
   843 
       
   844 </dd></dl>
       
   845 
       
   846 <dl class="class">
       
   847 <dt id="pyams_media.media.MediaConversions">
       
   848 <em class="property">class </em><code class="descclassname">pyams_media.media.</code><code class="descname">MediaConversions</code><a class="headerlink" href="#pyams_media.media.MediaConversions" title="Permalink to this definition">¶</a></dt>
       
   849 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">zope.container.folder.Folder</span></code></p>
       
   850 <p>Media conversions</p>
       
   851 <dl class="method">
       
   852 <dt id="pyams_media.media.MediaConversions.add_conversion">
       
   853 <code class="descname">add_conversion</code><span class="sig-paren">(</span><em>conversion</em>, <em>format</em>, <em>extension=None</em>, <em>width=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaConversions.add_conversion" title="Permalink to this definition">¶</a></dt>
       
   854 <dd></dd></dl>
       
   855 
       
   856 <dl class="staticmethod">
       
   857 <dt id="pyams_media.media.MediaConversions.get_conversion_width">
       
   858 <em class="property">static </em><code class="descname">get_conversion_width</code><span class="sig-paren">(</span><em>name</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaConversions.get_conversion_width" title="Permalink to this definition">¶</a></dt>
       
   859 <dd></dd></dl>
       
   860 
       
   861 <dl class="method">
       
   862 <dt id="pyams_media.media.MediaConversions.get_conversions">
       
   863 <code class="descname">get_conversions</code><span class="sig-paren">(</span><em>with_source=False</em>, <em>order=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaConversions.get_conversions" title="Permalink to this definition">¶</a></dt>
       
   864 <dd></dd></dl>
       
   865 
       
   866 <dl class="method">
       
   867 <dt id="pyams_media.media.MediaConversions.has_conversion">
       
   868 <code class="descname">has_conversion</code><span class="sig-paren">(</span><em>formats</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaConversions.has_conversion" title="Permalink to this definition">¶</a></dt>
       
   869 <dd></dd></dl>
       
   870 
       
   871 </dd></dl>
       
   872 
       
   873 <dl class="function">
       
   874 <dt id="pyams_media.media.MediaConversionsFactory">
       
   875 <code class="descclassname">pyams_media.media.</code><code class="descname">MediaConversionsFactory</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaConversionsFactory" title="Permalink to this definition">¶</a></dt>
       
   876 <dd><p>Media conversions factory</p>
       
   877 </dd></dl>
       
   878 
       
   879 <dl class="class">
       
   880 <dt id="pyams_media.media.MediaConversionsTraverser">
       
   881 <em class="property">class </em><code class="descclassname">pyams_media.media.</code><code class="descname">MediaConversionsTraverser</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaConversionsTraverser" title="Permalink to this definition">¶</a></dt>
       
   882 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p>
       
   883 <p>++conversions++ file traverser</p>
       
   884 <dl class="method">
       
   885 <dt id="pyams_media.media.MediaConversionsTraverser.traverse">
       
   886 <code class="descname">traverse</code><span class="sig-paren">(</span><em>name</em>, <em>furtherpath=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaConversionsTraverser.traverse" title="Permalink to this definition">¶</a></dt>
       
   887 <dd></dd></dl>
       
   888 
       
   889 </dd></dl>
       
   890 
       
   891 <dl class="function">
       
   892 <dt id="pyams_media.media.MediaInfoFactory">
       
   893 <code class="descclassname">pyams_media.media.</code><code class="descname">MediaInfoFactory</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.MediaInfoFactory" title="Permalink to this definition">¶</a></dt>
       
   894 <dd><p>Media info adapter</p>
       
   895 </dd></dl>
       
   896 
       
   897 <dl class="function">
       
   898 <dt id="pyams_media.media.check_media_conversion">
       
   899 <code class="descclassname">pyams_media.media.</code><code class="descname">check_media_conversion</code><span class="sig-paren">(</span><em>status</em>, <em>media</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.check_media_conversion" title="Permalink to this definition">¶</a></dt>
       
   900 <dd></dd></dl>
       
   901 
       
   902 <dl class="function">
       
   903 <dt id="pyams_media.media.handle_added_media">
       
   904 <code class="descclassname">pyams_media.media.</code><code class="descname">handle_added_media</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.media.handle_added_media" title="Permalink to this definition">¶</a></dt>
       
   905 <dd><p>Handle added media file</p>
       
   906 </dd></dl>
       
   907 
       
   908 </div>
       
   909 <div class="section" id="module-pyams_media.process">
       
   910 <span id="pyams-media-process-module"></span><h2>pyams_media.process module<a class="headerlink" href="#module-pyams_media.process" title="Permalink to this headline">¶</a></h2>
       
   911 <dl class="class">
       
   912 <dt id="pyams_media.process.ConversionProcess">
       
   913 <em class="property">class </em><code class="descclassname">pyams_media.process.</code><code class="descname">ConversionProcess</code><span class="sig-paren">(</span><em>settings</em>, <em>group=None</em>, <em>target=None</em>, <em>name=None</em>, <em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.ConversionProcess" title="Permalink to this definition">¶</a></dt>
       
   914 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">multiprocessing.context.Process</span></code></p>
       
   915 <p>Media conversion process</p>
       
   916 <dl class="method">
       
   917 <dt id="pyams_media.process.ConversionProcess.run">
       
   918 <code class="descname">run</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.ConversionProcess.run" title="Permalink to this definition">¶</a></dt>
       
   919 <dd></dd></dl>
       
   920 
       
   921 </dd></dl>
       
   922 
       
   923 <dl class="class">
       
   924 <dt id="pyams_media.process.ConversionThread">
       
   925 <em class="property">class </em><code class="descclassname">pyams_media.process.</code><code class="descname">ConversionThread</code><span class="sig-paren">(</span><em>process</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.ConversionThread" title="Permalink to this definition">¶</a></dt>
       
   926 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></code></p>
       
   927 <p>Media conversion thread</p>
       
   928 <dl class="method">
       
   929 <dt id="pyams_media.process.ConversionThread.run">
       
   930 <code class="descname">run</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.ConversionThread.run" title="Permalink to this definition">¶</a></dt>
       
   931 <dd></dd></dl>
       
   932 
       
   933 </dd></dl>
       
   934 
       
   935 <dl class="class">
       
   936 <dt id="pyams_media.process.MediaConversionHandler">
       
   937 <em class="property">class </em><code class="descclassname">pyams_media.process.</code><code class="descname">MediaConversionHandler</code><a class="headerlink" href="#pyams_media.process.MediaConversionHandler" title="Permalink to this definition">¶</a></dt>
       
   938 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
   939 <p>Media conversion handler</p>
       
   940 <dl class="method">
       
   941 <dt id="pyams_media.process.MediaConversionHandler.convert">
       
   942 <code class="descname">convert</code><span class="sig-paren">(</span><em>settings</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.MediaConversionHandler.convert" title="Permalink to this definition">¶</a></dt>
       
   943 <dd></dd></dl>
       
   944 
       
   945 <dl class="method">
       
   946 <dt id="pyams_media.process.MediaConversionHandler.test">
       
   947 <code class="descname">test</code><span class="sig-paren">(</span><em>settings</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.MediaConversionHandler.test" title="Permalink to this definition">¶</a></dt>
       
   948 <dd></dd></dl>
       
   949 
       
   950 </dd></dl>
       
   951 
       
   952 <dl class="class">
       
   953 <dt id="pyams_media.process.MediaConversionMessageHandler">
       
   954 <em class="property">class </em><code class="descclassname">pyams_media.process.</code><code class="descname">MediaConversionMessageHandler</code><span class="sig-paren">(</span><em>process</em>, <em>stream</em>, <em>stop</em>, <em>handler=None</em>, <em>json_load=-1</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.MediaConversionMessageHandler" title="Permalink to this definition">¶</a></dt>
       
   955 <dd><p>Bases: <a class="reference internal" href="pyams_zmq.html#pyams_zmq.handler.ZMQMessageHandler" title="pyams_zmq.handler.ZMQMessageHandler"><code class="xref py py-class docutils literal"><span class="pre">pyams_zmq.handler.ZMQMessageHandler</span></code></a></p>
       
   956 <p>Media conversion message handler</p>
       
   957 <dl class="attribute">
       
   958 <dt id="pyams_media.process.MediaConversionMessageHandler.handler">
       
   959 <code class="descname">handler</code><a class="headerlink" href="#pyams_media.process.MediaConversionMessageHandler.handler" title="Permalink to this definition">¶</a></dt>
       
   960 <dd><p>alias of <a class="reference internal" href="#pyams_media.process.MediaConversionHandler" title="pyams_media.process.MediaConversionHandler"><code class="xref py py-class docutils literal"><span class="pre">MediaConversionHandler</span></code></a></p>
       
   961 </dd></dl>
       
   962 
       
   963 </dd></dl>
       
   964 
       
   965 <dl class="class">
       
   966 <dt id="pyams_media.process.MediaConversionProcess">
       
   967 <em class="property">class </em><code class="descclassname">pyams_media.process.</code><code class="descname">MediaConversionProcess</code><span class="sig-paren">(</span><em>zmq_address</em>, <em>handler</em>, <em>registry</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.process.MediaConversionProcess" title="Permalink to this definition">¶</a></dt>
       
   968 <dd><p>Bases: <a class="reference internal" href="pyams_zmq.html#pyams_zmq.process.ZMQProcess" title="pyams_zmq.process.ZMQProcess"><code class="xref py py-class docutils literal"><span class="pre">pyams_zmq.process.ZMQProcess</span></code></a></p>
       
   969 <p>Media conversion ZMQ process</p>
       
   970 </dd></dl>
       
   971 
       
   972 </div>
       
   973 <div class="section" id="module-pyams_media.site">
       
   974 <span id="pyams-media-site-module"></span><h2>pyams_media.site module<a class="headerlink" href="#module-pyams_media.site" title="Permalink to this headline">¶</a></h2>
       
   975 <dl class="class">
       
   976 <dt id="pyams_media.site.MediaConversionGenerationsChecker">
       
   977 <em class="property">class </em><code class="descclassname">pyams_media.site.</code><code class="descname">MediaConversionGenerationsChecker</code><a class="headerlink" href="#pyams_media.site.MediaConversionGenerationsChecker" title="Permalink to this definition">¶</a></dt>
       
   978 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
   979 <p>Medias conversion utility generations checker</p>
       
   980 <dl class="method">
       
   981 <dt id="pyams_media.site.MediaConversionGenerationsChecker.evolve">
       
   982 <code class="descname">evolve</code><span class="sig-paren">(</span><em>site</em>, <em>current=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.site.MediaConversionGenerationsChecker.evolve" title="Permalink to this definition">¶</a></dt>
       
   983 <dd><p>Check for required utilities</p>
       
   984 </dd></dl>
       
   985 
       
   986 <dl class="attribute">
       
   987 <dt id="pyams_media.site.MediaConversionGenerationsChecker.generation">
       
   988 <code class="descname">generation</code><em class="property"> = 1</em><a class="headerlink" href="#pyams_media.site.MediaConversionGenerationsChecker.generation" title="Permalink to this definition">¶</a></dt>
       
   989 <dd></dd></dl>
       
   990 
       
   991 </dd></dl>
       
   992 
       
   993 <dl class="function">
       
   994 <dt id="pyams_media.site.handle_new_local_site">
       
   995 <code class="descclassname">pyams_media.site.</code><code class="descname">handle_new_local_site</code><span class="sig-paren">(</span><em>event</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.site.handle_new_local_site" title="Permalink to this definition">¶</a></dt>
       
   996 <dd><p>Create a new conversion utility when a site is created</p>
       
   997 </dd></dl>
       
   998 
       
   999 </div>
       
  1000 <div class="section" id="module-pyams_media.utility">
       
  1001 <span id="pyams-media-utility-module"></span><h2>pyams_media.utility module<a class="headerlink" href="#module-pyams_media.utility" title="Permalink to this headline">¶</a></h2>
       
  1002 <dl class="class">
       
  1003 <dt id="pyams_media.utility.MediaConversionUtility">
       
  1004 <em class="property">class </em><code class="descclassname">pyams_media.utility.</code><code class="descname">MediaConversionUtility</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility" title="Permalink to this definition">¶</a></dt>
       
  1005 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">persistent.Persistent</span></code>, <code class="xref py py-class docutils literal"><span class="pre">zope.container.contained.Contained</span></code></p>
       
  1006 <p>Medias conversions utility</p>
       
  1007 <dl class="attribute">
       
  1008 <dt id="pyams_media.utility.MediaConversionUtility.audio_bitrate">
       
  1009 <code class="descname">audio_bitrate</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.audio_bitrate" title="Permalink to this definition">¶</a></dt>
       
  1010 <dd><p>Computed attributes based on schema fields</p>
       
  1011 <p>Field properties provide default values, data validation and error messages
       
  1012 based on data found in field meta-data.</p>
       
  1013 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1014 be used for attributes stored in instance dictionaries.</p>
       
  1015 </dd></dl>
       
  1016 
       
  1017 <dl class="attribute">
       
  1018 <dt id="pyams_media.utility.MediaConversionUtility.audio_formats">
       
  1019 <code class="descname">audio_formats</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.audio_formats" title="Permalink to this definition">¶</a></dt>
       
  1020 <dd><p>Computed attributes based on schema fields</p>
       
  1021 <p>Field properties provide default values, data validation and error messages
       
  1022 based on data found in field meta-data.</p>
       
  1023 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1024 be used for attributes stored in instance dictionaries.</p>
       
  1025 </dd></dl>
       
  1026 
       
  1027 <dl class="attribute">
       
  1028 <dt id="pyams_media.utility.MediaConversionUtility.audio_sampling">
       
  1029 <code class="descname">audio_sampling</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.audio_sampling" title="Permalink to this definition">¶</a></dt>
       
  1030 <dd><p>Computed attributes based on schema fields</p>
       
  1031 <p>Field properties provide default values, data validation and error messages
       
  1032 based on data found in field meta-data.</p>
       
  1033 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1034 be used for attributes stored in instance dictionaries.</p>
       
  1035 </dd></dl>
       
  1036 
       
  1037 <dl class="method">
       
  1038 <dt id="pyams_media.utility.MediaConversionUtility.check_media_conversion">
       
  1039 <code class="descname">check_media_conversion</code><span class="sig-paren">(</span><em>media</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.check_media_conversion" title="Permalink to this definition">¶</a></dt>
       
  1040 <dd><p>Check if conversion is needed for given media</p>
       
  1041 </dd></dl>
       
  1042 
       
  1043 <dl class="method">
       
  1044 <dt id="pyams_media.utility.MediaConversionUtility.convert">
       
  1045 <code class="descname">convert</code><span class="sig-paren">(</span><em>media</em>, <em>format</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.convert" title="Permalink to this definition">¶</a></dt>
       
  1046 <dd><p>Send conversion request for given media</p>
       
  1047 </dd></dl>
       
  1048 
       
  1049 <dl class="method">
       
  1050 <dt id="pyams_media.utility.MediaConversionUtility.test_process">
       
  1051 <code class="descname">test_process</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.test_process" title="Permalink to this definition">¶</a></dt>
       
  1052 <dd><p>Send test request to conversion process</p>
       
  1053 </dd></dl>
       
  1054 
       
  1055 <dl class="attribute">
       
  1056 <dt id="pyams_media.utility.MediaConversionUtility.video_audio_bitrate">
       
  1057 <code class="descname">video_audio_bitrate</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.video_audio_bitrate" title="Permalink to this definition">¶</a></dt>
       
  1058 <dd><p>Computed attributes based on schema fields</p>
       
  1059 <p>Field properties provide default values, data validation and error messages
       
  1060 based on data found in field meta-data.</p>
       
  1061 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1062 be used for attributes stored in instance dictionaries.</p>
       
  1063 </dd></dl>
       
  1064 
       
  1065 <dl class="attribute">
       
  1066 <dt id="pyams_media.utility.MediaConversionUtility.video_audio_sampling">
       
  1067 <code class="descname">video_audio_sampling</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.video_audio_sampling" title="Permalink to this definition">¶</a></dt>
       
  1068 <dd><p>Computed attributes based on schema fields</p>
       
  1069 <p>Field properties provide default values, data validation and error messages
       
  1070 based on data found in field meta-data.</p>
       
  1071 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1072 be used for attributes stored in instance dictionaries.</p>
       
  1073 </dd></dl>
       
  1074 
       
  1075 <dl class="attribute">
       
  1076 <dt id="pyams_media.utility.MediaConversionUtility.video_bitrate">
       
  1077 <code class="descname">video_bitrate</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.video_bitrate" title="Permalink to this definition">¶</a></dt>
       
  1078 <dd><p>Computed attributes based on schema fields</p>
       
  1079 <p>Field properties provide default values, data validation and error messages
       
  1080 based on data found in field meta-data.</p>
       
  1081 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1082 be used for attributes stored in instance dictionaries.</p>
       
  1083 </dd></dl>
       
  1084 
       
  1085 <dl class="attribute">
       
  1086 <dt id="pyams_media.utility.MediaConversionUtility.video_formats">
       
  1087 <code class="descname">video_formats</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.video_formats" title="Permalink to this definition">¶</a></dt>
       
  1088 <dd><p>Computed attributes based on schema fields</p>
       
  1089 <p>Field properties provide default values, data validation and error messages
       
  1090 based on data found in field meta-data.</p>
       
  1091 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1092 be used for attributes stored in instance dictionaries.</p>
       
  1093 </dd></dl>
       
  1094 
       
  1095 <dl class="attribute">
       
  1096 <dt id="pyams_media.utility.MediaConversionUtility.video_frame_size">
       
  1097 <code class="descname">video_frame_size</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.video_frame_size" title="Permalink to this definition">¶</a></dt>
       
  1098 <dd><p>Computed attributes based on schema fields</p>
       
  1099 <p>Field properties provide default values, data validation and error messages
       
  1100 based on data found in field meta-data.</p>
       
  1101 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1102 be used for attributes stored in instance dictionaries.</p>
       
  1103 </dd></dl>
       
  1104 
       
  1105 <dl class="attribute">
       
  1106 <dt id="pyams_media.utility.MediaConversionUtility.video_quantisation">
       
  1107 <code class="descname">video_quantisation</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.video_quantisation" title="Permalink to this definition">¶</a></dt>
       
  1108 <dd><p>Computed attributes based on schema fields</p>
       
  1109 <p>Field properties provide default values, data validation and error messages
       
  1110 based on data found in field meta-data.</p>
       
  1111 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1112 be used for attributes stored in instance dictionaries.</p>
       
  1113 </dd></dl>
       
  1114 
       
  1115 <dl class="attribute">
       
  1116 <dt id="pyams_media.utility.MediaConversionUtility.zodb_name">
       
  1117 <code class="descname">zodb_name</code><a class="headerlink" href="#pyams_media.utility.MediaConversionUtility.zodb_name" title="Permalink to this definition">¶</a></dt>
       
  1118 <dd><p>Computed attributes based on schema fields</p>
       
  1119 <p>Field properties provide default values, data validation and error messages
       
  1120 based on data found in field meta-data.</p>
       
  1121 <p>Note that FieldProperties cannot be used with slots. They can only
       
  1122 be used for attributes stored in instance dictionaries.</p>
       
  1123 </dd></dl>
       
  1124 
       
  1125 </dd></dl>
       
  1126 
       
  1127 </div>
       
  1128 <div class="section" id="module-pyams_media.video">
       
  1129 <span id="pyams-media-video-module"></span><h2>pyams_media.video module<a class="headerlink" href="#module-pyams_media.video" title="Permalink to this headline">¶</a></h2>
       
  1130 <dl class="class">
       
  1131 <dt id="pyams_media.video.FlashVideoTypeAdapter">
       
  1132 <em class="property">class </em><code class="descclassname">pyams_media.video.</code><code class="descname">FlashVideoTypeAdapter</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.FlashVideoTypeAdapter" title="Permalink to this definition">¶</a></dt>
       
  1133 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p>
       
  1134 <p>Flash video content type adapter</p>
       
  1135 <dl class="attribute">
       
  1136 <dt id="pyams_media.video.FlashVideoTypeAdapter.video_type">
       
  1137 <code class="descname">video_type</code><a class="headerlink" href="#pyams_media.video.FlashVideoTypeAdapter.video_type" title="Permalink to this definition">¶</a></dt>
       
  1138 <dd></dd></dl>
       
  1139 
       
  1140 </dd></dl>
       
  1141 
       
  1142 <dl class="class">
       
  1143 <dt id="pyams_media.video.ThumbnailTraverser">
       
  1144 <em class="property">class </em><code class="descclassname">pyams_media.video.</code><code class="descname">ThumbnailTraverser</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.ThumbnailTraverser" title="Permalink to this definition">¶</a></dt>
       
  1145 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p>
       
  1146 <p>++thumb++ video namespace traverser</p>
       
  1147 <dl class="method">
       
  1148 <dt id="pyams_media.video.ThumbnailTraverser.traverse">
       
  1149 <code class="descname">traverse</code><span class="sig-paren">(</span><em>name</em>, <em>furtherpath=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.ThumbnailTraverser.traverse" title="Permalink to this definition">¶</a></dt>
       
  1150 <dd></dd></dl>
       
  1151 
       
  1152 </dd></dl>
       
  1153 
       
  1154 <dl class="class">
       
  1155 <dt id="pyams_media.video.VideoThumbnailAdapter">
       
  1156 <em class="property">class </em><code class="descclassname">pyams_media.video.</code><code class="descname">VideoThumbnailAdapter</code><span class="sig-paren">(</span><em>video</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter" title="Permalink to this definition">¶</a></dt>
       
  1157 <dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">object</span></code></p>
       
  1158 <p>Video thumbnail adapter</p>
       
  1159 <dl class="method">
       
  1160 <dt id="pyams_media.video.VideoThumbnailAdapter.clear_geometries">
       
  1161 <code class="descname">clear_geometries</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.clear_geometries" title="Permalink to this definition">¶</a></dt>
       
  1162 <dd></dd></dl>
       
  1163 
       
  1164 <dl class="method">
       
  1165 <dt id="pyams_media.video.VideoThumbnailAdapter.clear_thumbnails">
       
  1166 <code class="descname">clear_thumbnails</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.clear_thumbnails" title="Permalink to this definition">¶</a></dt>
       
  1167 <dd></dd></dl>
       
  1168 
       
  1169 <dl class="method">
       
  1170 <dt id="pyams_media.video.VideoThumbnailAdapter.delete_thumbnail">
       
  1171 <code class="descname">delete_thumbnail</code><span class="sig-paren">(</span><em>thumbnail_name</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.delete_thumbnail" title="Permalink to this definition">¶</a></dt>
       
  1172 <dd></dd></dl>
       
  1173 
       
  1174 <dl class="method">
       
  1175 <dt id="pyams_media.video.VideoThumbnailAdapter.get_geometry">
       
  1176 <code class="descname">get_geometry</code><span class="sig-paren">(</span><em>selection_name</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.get_geometry" title="Permalink to this definition">¶</a></dt>
       
  1177 <dd></dd></dl>
       
  1178 
       
  1179 <dl class="method">
       
  1180 <dt id="pyams_media.video.VideoThumbnailAdapter.get_image_size">
       
  1181 <code class="descname">get_image_size</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.get_image_size" title="Permalink to this definition">¶</a></dt>
       
  1182 <dd></dd></dl>
       
  1183 
       
  1184 <dl class="method">
       
  1185 <dt id="pyams_media.video.VideoThumbnailAdapter.get_thumbnail">
       
  1186 <code class="descname">get_thumbnail</code><span class="sig-paren">(</span><em>thumbnail_name</em>, <em>format=None</em>, <em>time=5</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.get_thumbnail" title="Permalink to this definition">¶</a></dt>
       
  1187 <dd></dd></dl>
       
  1188 
       
  1189 <dl class="method">
       
  1190 <dt id="pyams_media.video.VideoThumbnailAdapter.get_thumbnail_name">
       
  1191 <code class="descname">get_thumbnail_name</code><span class="sig-paren">(</span><em>thumbnail_name</em>, <em>with_size=False</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.get_thumbnail_name" title="Permalink to this definition">¶</a></dt>
       
  1192 <dd></dd></dl>
       
  1193 
       
  1194 <dl class="method">
       
  1195 <dt id="pyams_media.video.VideoThumbnailAdapter.get_thumbnail_size">
       
  1196 <code class="descname">get_thumbnail_size</code><span class="sig-paren">(</span><em>thumbnail_name</em>, <em>forced=False</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.get_thumbnail_size" title="Permalink to this definition">¶</a></dt>
       
  1197 <dd></dd></dl>
       
  1198 
       
  1199 <dl class="method">
       
  1200 <dt id="pyams_media.video.VideoThumbnailAdapter.set_geometry">
       
  1201 <code class="descname">set_geometry</code><span class="sig-paren">(</span><em>selection_name</em>, <em>geometry</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoThumbnailAdapter.set_geometry" title="Permalink to this definition">¶</a></dt>
       
  1202 <dd></dd></dl>
       
  1203 
       
  1204 </dd></dl>
       
  1205 
       
  1206 <dl class="class">
       
  1207 <dt id="pyams_media.video.VideoTypeAdapter">
       
  1208 <em class="property">class </em><code class="descclassname">pyams_media.video.</code><code class="descname">VideoTypeAdapter</code><span class="sig-paren">(</span><em>context</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoTypeAdapter" title="Permalink to this definition">¶</a></dt>
       
  1209 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextAdapter" title="pyams_utils.adapter.ContextAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextAdapter</span></code></a></p>
       
  1210 <p>Default video content type adapter</p>
       
  1211 <dl class="attribute">
       
  1212 <dt id="pyams_media.video.VideoTypeAdapter.video_type">
       
  1213 <code class="descname">video_type</code><a class="headerlink" href="#pyams_media.video.VideoTypeAdapter.video_type" title="Permalink to this definition">¶</a></dt>
       
  1214 <dd></dd></dl>
       
  1215 
       
  1216 </dd></dl>
       
  1217 
       
  1218 <dl class="class">
       
  1219 <dt id="pyams_media.video.VideoTypeExtension">
       
  1220 <em class="property">class </em><code class="descclassname">pyams_media.video.</code><code class="descname">VideoTypeExtension</code><span class="sig-paren">(</span><em>context</em>, <em>request</em>, <em>view</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoTypeExtension" title="Permalink to this definition">¶</a></dt>
       
  1221 <dd><p>Bases: <a class="reference internal" href="pyams_utils.html#pyams_utils.adapter.ContextRequestViewAdapter" title="pyams_utils.adapter.ContextRequestViewAdapter"><code class="xref py py-class docutils literal"><span class="pre">pyams_utils.adapter.ContextRequestViewAdapter</span></code></a></p>
       
  1222 <p>extension:video_type(media) TALES extension</p>
       
  1223 <dl class="method">
       
  1224 <dt id="pyams_media.video.VideoTypeExtension.render">
       
  1225 <code class="descname">render</code><span class="sig-paren">(</span><em>context=None</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.video.VideoTypeExtension.render" title="Permalink to this definition">¶</a></dt>
       
  1226 <dd></dd></dl>
       
  1227 
       
  1228 </dd></dl>
       
  1229 
       
  1230 </div>
       
  1231 <div class="section" id="module-pyams_media">
       
  1232 <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyams_media" title="Permalink to this headline">¶</a></h2>
       
  1233 <dl class="function">
       
  1234 <dt id="pyams_media.includeme">
       
  1235 <code class="descclassname">pyams_media.</code><code class="descname">includeme</code><span class="sig-paren">(</span><em>config</em><span class="sig-paren">)</span><a class="headerlink" href="#pyams_media.includeme" title="Permalink to this definition">¶</a></dt>
       
  1236 <dd><p>Pyramid include</p>
       
  1237 </dd></dl>
       
  1238 
       
  1239 </div>
       
  1240 </div>
       
  1241 
       
  1242 
       
  1243           </div>
       
  1244         </div>
       
  1245       </div>
       
  1246       <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
       
  1247         <div class="sphinxsidebarwrapper">
       
  1248   <h3><a href="index.html">Table Of Contents</a></h3>
       
  1249   <ul>
       
  1250 <li><a class="reference internal" href="#">pyams_media package</a><ul>
       
  1251 <li><a class="reference internal" href="#subpackages">Subpackages</a></li>
       
  1252 <li><a class="reference internal" href="#submodules">Submodules</a></li>
       
  1253 <li><a class="reference internal" href="#module-pyams_media.audio">pyams_media.audio module</a></li>
       
  1254 <li><a class="reference internal" href="#module-pyams_media.converter">pyams_media.converter module</a></li>
       
  1255 <li><a class="reference internal" href="#module-pyams_media.ffbase">pyams_media.ffbase module</a></li>
       
  1256 <li><a class="reference internal" href="#module-pyams_media.ffdocument">pyams_media.ffdocument module</a></li>
       
  1257 <li><a class="reference internal" href="#module-pyams_media.ffexception">pyams_media.ffexception module</a></li>
       
  1258 <li><a class="reference internal" href="#module-pyams_media.include">pyams_media.include module</a></li>
       
  1259 <li><a class="reference internal" href="#module-pyams_media.media">pyams_media.media module</a></li>
       
  1260 <li><a class="reference internal" href="#module-pyams_media.process">pyams_media.process module</a></li>
       
  1261 <li><a class="reference internal" href="#module-pyams_media.site">pyams_media.site module</a></li>
       
  1262 <li><a class="reference internal" href="#module-pyams_media.utility">pyams_media.utility module</a></li>
       
  1263 <li><a class="reference internal" href="#module-pyams_media.video">pyams_media.video module</a></li>
       
  1264 <li><a class="reference internal" href="#module-pyams_media">Module contents</a></li>
       
  1265 </ul>
       
  1266 </li>
       
  1267 </ul>
       
  1268 
       
  1269 <div id="searchbox" style="display: none" role="search">
       
  1270   <h3>Quick search</h3>
       
  1271     <form class="search" action="search.html" method="get">
       
  1272       <div><input type="text" name="q" /></div>
       
  1273       <div><input type="submit" value="Go" /></div>
       
  1274       <input type="hidden" name="check_keywords" value="yes" />
       
  1275       <input type="hidden" name="area" value="default" />
       
  1276     </form>
       
  1277 </div>
       
  1278 <script type="text/javascript">$('#searchbox').show(0);</script>
       
  1279         </div>
       
  1280       </div>
       
  1281       <div class="clearer"></div>
       
  1282     </div>
       
  1283     <div class="related" role="navigation" aria-label="related navigation">
       
  1284       <h3>Navigation</h3>
       
  1285       <ul>
       
  1286         <li class="right" style="margin-right: 10px">
       
  1287           <a href="genindex.html" title="General Index"
       
  1288              >index</a></li>
       
  1289         <li class="right" >
       
  1290           <a href="py-modindex.html" title="Python Module Index"
       
  1291              >modules</a> |</li>
       
  1292         <li class="nav-item nav-item-0"><a href="index.html">PyAMS User Guide 0.1.0 documentation</a> &#187;</li> 
       
  1293       </ul>
       
  1294     </div>
       
  1295     <div class="footer" role="contentinfo">
       
  1296         &#169; Copyright 2017, Thierry Florac.
       
  1297       Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.5.
       
  1298     </div>
       
  1299   </body>
       
  1300 </html>