Skip to content

Commit

Permalink
Deployed 3b99757 to v0.2.6-dev with MkDocs 1.6.0 and mike 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiTronix committed Jun 23, 2024
1 parent b49804c commit cddc8bb
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions dev/reference/ffhelper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,16 +360,16 @@
<a id=__codelineno-0-9 name=__codelineno-0-9 href=#__codelineno-0-9></a>
<a id=__codelineno-0-10 name=__codelineno-0-10 href=#__codelineno-0-10></a><span class=sd> **Returns:** List of supported demuxers.</span>
<a id=__codelineno-0-11 name=__codelineno-0-11 href=#__codelineno-0-11></a><span class=sd> &quot;&quot;&quot;</span>
<a id=__codelineno-0-12 name=__codelineno-0-12 href=#__codelineno-0-12></a> <span class=n>demuxers</span> <span class=o>=</span> <span class=n>check_sp_output</span><span class=p>([</span><span class=n>path</span><span class=p>,</span> <span class=s2>&quot;-hide_banner&quot;</span><span class=p>,</span> <span class=s2>&quot;-demuxers&quot;</span><span class=p>])</span>
<a id=__codelineno-0-13 name=__codelineno-0-13 href=#__codelineno-0-13></a> <span class=n>splitted</span> <span class=o>=</span> <span class=p>[</span><span class=n>x</span><span class=o>.</span><span class=n>decode</span><span class=p>(</span><span class=s2>&quot;utf-8&quot;</span><span class=p>)</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>x</span> <span class=ow>in</span> <span class=n>demuxers</span><span class=o>.</span><span class=n>split</span><span class=p>(</span><span class=sa>b</span><span class=s2>&quot;</span><span class=se>\n</span><span class=s2>&quot;</span><span class=p>)]</span>
<a id=__codelineno-0-14 name=__codelineno-0-14 href=#__codelineno-0-14></a> <span class=n>split_index</span> <span class=o>=</span> <span class=p>[</span><span class=n>idx</span> <span class=k>for</span> <span class=n>idx</span><span class=p>,</span> <span class=n>s</span> <span class=ow>in</span> <span class=nb>enumerate</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=k>if</span> <span class=s2>&quot;--&quot;</span> <span class=ow>in</span> <span class=n>s</span><span class=p>][</span><span class=mi>0</span><span class=p>]</span>
<a id=__codelineno-0-15 name=__codelineno-0-15 href=#__codelineno-0-15></a> <span class=n>supported_demuxers</span> <span class=o>=</span> <span class=n>splitted</span><span class=p>[</span><span class=n>split_index</span> <span class=o>+</span> <span class=mi>1</span> <span class=p>:</span> <span class=nb>len</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=o>-</span> <span class=mi>1</span><span class=p>]</span>
<a id=__codelineno-0-16 name=__codelineno-0-16 href=#__codelineno-0-16></a> <span class=c1># compile regex</span>
<a id=__codelineno-0-17 name=__codelineno-0-17 href=#__codelineno-0-17></a> <span class=n>finder</span> <span class=o>=</span> <span class=n>re</span><span class=o>.</span><span class=n>compile</span><span class=p>(</span><span class=sa>r</span><span class=s2>&quot;[a-z0-9_,-]{2,}\s\s&quot;</span><span class=p>)</span>
<a id=__codelineno-0-18 name=__codelineno-0-18 href=#__codelineno-0-18></a> <span class=c1># find all outputs</span>
<a id=__codelineno-0-19 name=__codelineno-0-19 href=#__codelineno-0-19></a> <span class=n>outputs</span> <span class=o>=</span> <span class=n>finder</span><span class=o>.</span><span class=n>findall</span><span class=p>(</span><span class=s2>&quot;</span><span class=se>\n</span><span class=s2>&quot;</span><span class=o>.</span><span class=n>join</span><span class=p>(</span><span class=n>supported_demuxers</span><span class=p>))</span>
<a id=__codelineno-0-20 name=__codelineno-0-20 href=#__codelineno-0-20></a> <span class=c1># return output findings</span>
<a id=__codelineno-0-21 name=__codelineno-0-21 href=#__codelineno-0-21></a> <span class=k>return</span> <span class=p>[</span><span class=n>o</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>o</span> <span class=ow>in</span> <span class=n>outputs</span><span class=p>]</span>
<a id=__codelineno-0-12 name=__codelineno-0-12 href=#__codelineno-0-12></a> <span class=c1># extract and clean FFmpeg output</span>
<a id=__codelineno-0-13 name=__codelineno-0-13 href=#__codelineno-0-13></a> <span class=n>demuxers</span> <span class=o>=</span> <span class=n>check_sp_output</span><span class=p>([</span><span class=n>path</span><span class=p>,</span> <span class=s2>&quot;-hide_banner&quot;</span><span class=p>,</span> <span class=s2>&quot;-demuxers&quot;</span><span class=p>])</span>
<a id=__codelineno-0-14 name=__codelineno-0-14 href=#__codelineno-0-14></a> <span class=n>splitted</span> <span class=o>=</span> <span class=p>[</span><span class=n>x</span><span class=o>.</span><span class=n>decode</span><span class=p>(</span><span class=s2>&quot;utf-8&quot;</span><span class=p>)</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>x</span> <span class=ow>in</span> <span class=n>demuxers</span><span class=o>.</span><span class=n>split</span><span class=p>(</span><span class=sa>b</span><span class=s2>&quot;</span><span class=se>\n</span><span class=s2>&quot;</span><span class=p>)]</span>
<a id=__codelineno-0-15 name=__codelineno-0-15 href=#__codelineno-0-15></a> <span class=n>split_index</span> <span class=o>=</span> <span class=p>[</span><span class=n>idx</span> <span class=k>for</span> <span class=n>idx</span><span class=p>,</span> <span class=n>s</span> <span class=ow>in</span> <span class=nb>enumerate</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=k>if</span> <span class=s2>&quot;--&quot;</span> <span class=ow>in</span> <span class=n>s</span><span class=p>][</span><span class=mi>0</span><span class=p>]</span>
<a id=__codelineno-0-16 name=__codelineno-0-16 href=#__codelineno-0-16></a> <span class=n>supported_demuxers</span> <span class=o>=</span> <span class=n>splitted</span><span class=p>[</span><span class=n>split_index</span> <span class=o>+</span> <span class=mi>1</span> <span class=p>:</span> <span class=nb>len</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=o>-</span> <span class=mi>1</span><span class=p>]</span>
<a id=__codelineno-0-17 name=__codelineno-0-17 href=#__codelineno-0-17></a> <span class=c1># search all demuxers</span>
<a id=__codelineno-0-18 name=__codelineno-0-18 href=#__codelineno-0-18></a> <span class=n>outputs</span> <span class=o>=</span> <span class=p>[</span><span class=n>re</span><span class=o>.</span><span class=n>search</span><span class=p>(</span><span class=s2>&quot;\s[a-z0-9_,-]{2,}\s&quot;</span><span class=p>,</span> <span class=n>d</span><span class=p>)</span> <span class=k>for</span> <span class=n>d</span> <span class=ow>in</span> <span class=n>supported_demuxers</span><span class=p>]</span>
<a id=__codelineno-0-19 name=__codelineno-0-19 href=#__codelineno-0-19></a> <span class=n>outputs</span> <span class=o>=</span> <span class=p>[</span><span class=n>o</span><span class=o>.</span><span class=n>group</span><span class=p>(</span><span class=mi>0</span><span class=p>)</span> <span class=k>for</span> <span class=n>o</span> <span class=ow>in</span> <span class=n>outputs</span> <span class=k>if</span> <span class=n>o</span><span class=p>]</span>
<a id=__codelineno-0-20 name=__codelineno-0-20 href=#__codelineno-0-20></a> <span class=c1># return demuxers output</span>
<a id=__codelineno-0-21 name=__codelineno-0-21 href=#__codelineno-0-21></a> <span class=k>return</span> <span class=p>[</span><span class=n>o</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>if</span> <span class=ow>not</span> <span class=p>(</span><span class=s2>&quot;,&quot;</span> <span class=ow>in</span> <span class=n>o</span><span class=p>)</span> <span class=k>else</span> <span class=n>o</span><span class=o>.</span><span class=n>split</span><span class=p>(</span><span class=s2>&quot;,&quot;</span><span class=p>)[</span><span class=o>-</span><span class=mi>1</span><span class=p>]</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>o</span> <span class=ow>in</span> <span class=n>outputs</span><span class=p>]</span>
</code></pre></div> </details> </div> </div> <p>&nbsp;</p> <div class="doc doc-object doc-function"> <div class="doc doc-contents first"> <h4 id=deffcode.ffhelper.validate_imgseqdir--validate_imgseqdir>validate_imgseqdir<a class=headerlink href=#deffcode.ffhelper.validate_imgseqdir--validate_imgseqdir title="Anchor link to this section for reference">&para;</a></h4> <p>Validates Image Sequence by counting number of Image files.</p> <p><strong>Parameters:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>source</code></td> <td><code>string</code></td> <td><p>video source to be validated</p></td> <td><em>required</em></td> </tr> <tr> <td><code>extension</code></td> <td><code>string</code></td> <td><p>extension of image sequence.</p></td> <td><code>&#39;jpg&#39;</code></td> </tr> </tbody> </table> <p><strong>Returns:</strong> A boolean value, confirming whether tests passed, or not?.</p> <details class=quote> <summary>Source code in <code>deffcode/ffhelper.py</code></summary> <div class=highlight><pre><span></span><code><a id=__codelineno-0-1 name=__codelineno-0-1 href=#__codelineno-0-1></a><span class=k>def</span> <span class=nf>validate_imgseqdir</span><span class=p>(</span><span class=n>source</span><span class=p>,</span> <span class=n>extension</span><span class=o>=</span><span class=s2>&quot;jpg&quot;</span><span class=p>,</span> <span class=n>verbose</span><span class=o>=</span><span class=kc>False</span><span class=p>):</span>
<a id=__codelineno-0-2 name=__codelineno-0-2 href=#__codelineno-0-2></a><span class=w> </span><span class=sd>&quot;&quot;&quot;</span>
<a id=__codelineno-0-3 name=__codelineno-0-3 href=#__codelineno-0-3></a><span class=sd> ## validate_imgseqdir</span>
Expand Down
2 changes: 1 addition & 1 deletion dev/search/search_index.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions v0.2.6-dev/reference/ffhelper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -360,16 +360,16 @@
<a id=__codelineno-0-9 name=__codelineno-0-9 href=#__codelineno-0-9></a>
<a id=__codelineno-0-10 name=__codelineno-0-10 href=#__codelineno-0-10></a><span class=sd> **Returns:** List of supported demuxers.</span>
<a id=__codelineno-0-11 name=__codelineno-0-11 href=#__codelineno-0-11></a><span class=sd> &quot;&quot;&quot;</span>
<a id=__codelineno-0-12 name=__codelineno-0-12 href=#__codelineno-0-12></a> <span class=n>demuxers</span> <span class=o>=</span> <span class=n>check_sp_output</span><span class=p>([</span><span class=n>path</span><span class=p>,</span> <span class=s2>&quot;-hide_banner&quot;</span><span class=p>,</span> <span class=s2>&quot;-demuxers&quot;</span><span class=p>])</span>
<a id=__codelineno-0-13 name=__codelineno-0-13 href=#__codelineno-0-13></a> <span class=n>splitted</span> <span class=o>=</span> <span class=p>[</span><span class=n>x</span><span class=o>.</span><span class=n>decode</span><span class=p>(</span><span class=s2>&quot;utf-8&quot;</span><span class=p>)</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>x</span> <span class=ow>in</span> <span class=n>demuxers</span><span class=o>.</span><span class=n>split</span><span class=p>(</span><span class=sa>b</span><span class=s2>&quot;</span><span class=se>\n</span><span class=s2>&quot;</span><span class=p>)]</span>
<a id=__codelineno-0-14 name=__codelineno-0-14 href=#__codelineno-0-14></a> <span class=n>split_index</span> <span class=o>=</span> <span class=p>[</span><span class=n>idx</span> <span class=k>for</span> <span class=n>idx</span><span class=p>,</span> <span class=n>s</span> <span class=ow>in</span> <span class=nb>enumerate</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=k>if</span> <span class=s2>&quot;--&quot;</span> <span class=ow>in</span> <span class=n>s</span><span class=p>][</span><span class=mi>0</span><span class=p>]</span>
<a id=__codelineno-0-15 name=__codelineno-0-15 href=#__codelineno-0-15></a> <span class=n>supported_demuxers</span> <span class=o>=</span> <span class=n>splitted</span><span class=p>[</span><span class=n>split_index</span> <span class=o>+</span> <span class=mi>1</span> <span class=p>:</span> <span class=nb>len</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=o>-</span> <span class=mi>1</span><span class=p>]</span>
<a id=__codelineno-0-16 name=__codelineno-0-16 href=#__codelineno-0-16></a> <span class=c1># compile regex</span>
<a id=__codelineno-0-17 name=__codelineno-0-17 href=#__codelineno-0-17></a> <span class=n>finder</span> <span class=o>=</span> <span class=n>re</span><span class=o>.</span><span class=n>compile</span><span class=p>(</span><span class=sa>r</span><span class=s2>&quot;[a-z0-9_,-]{2,}\s\s&quot;</span><span class=p>)</span>
<a id=__codelineno-0-18 name=__codelineno-0-18 href=#__codelineno-0-18></a> <span class=c1># find all outputs</span>
<a id=__codelineno-0-19 name=__codelineno-0-19 href=#__codelineno-0-19></a> <span class=n>outputs</span> <span class=o>=</span> <span class=n>finder</span><span class=o>.</span><span class=n>findall</span><span class=p>(</span><span class=s2>&quot;</span><span class=se>\n</span><span class=s2>&quot;</span><span class=o>.</span><span class=n>join</span><span class=p>(</span><span class=n>supported_demuxers</span><span class=p>))</span>
<a id=__codelineno-0-20 name=__codelineno-0-20 href=#__codelineno-0-20></a> <span class=c1># return output findings</span>
<a id=__codelineno-0-21 name=__codelineno-0-21 href=#__codelineno-0-21></a> <span class=k>return</span> <span class=p>[</span><span class=n>o</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>o</span> <span class=ow>in</span> <span class=n>outputs</span><span class=p>]</span>
<a id=__codelineno-0-12 name=__codelineno-0-12 href=#__codelineno-0-12></a> <span class=c1># extract and clean FFmpeg output</span>
<a id=__codelineno-0-13 name=__codelineno-0-13 href=#__codelineno-0-13></a> <span class=n>demuxers</span> <span class=o>=</span> <span class=n>check_sp_output</span><span class=p>([</span><span class=n>path</span><span class=p>,</span> <span class=s2>&quot;-hide_banner&quot;</span><span class=p>,</span> <span class=s2>&quot;-demuxers&quot;</span><span class=p>])</span>
<a id=__codelineno-0-14 name=__codelineno-0-14 href=#__codelineno-0-14></a> <span class=n>splitted</span> <span class=o>=</span> <span class=p>[</span><span class=n>x</span><span class=o>.</span><span class=n>decode</span><span class=p>(</span><span class=s2>&quot;utf-8&quot;</span><span class=p>)</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>x</span> <span class=ow>in</span> <span class=n>demuxers</span><span class=o>.</span><span class=n>split</span><span class=p>(</span><span class=sa>b</span><span class=s2>&quot;</span><span class=se>\n</span><span class=s2>&quot;</span><span class=p>)]</span>
<a id=__codelineno-0-15 name=__codelineno-0-15 href=#__codelineno-0-15></a> <span class=n>split_index</span> <span class=o>=</span> <span class=p>[</span><span class=n>idx</span> <span class=k>for</span> <span class=n>idx</span><span class=p>,</span> <span class=n>s</span> <span class=ow>in</span> <span class=nb>enumerate</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=k>if</span> <span class=s2>&quot;--&quot;</span> <span class=ow>in</span> <span class=n>s</span><span class=p>][</span><span class=mi>0</span><span class=p>]</span>
<a id=__codelineno-0-16 name=__codelineno-0-16 href=#__codelineno-0-16></a> <span class=n>supported_demuxers</span> <span class=o>=</span> <span class=n>splitted</span><span class=p>[</span><span class=n>split_index</span> <span class=o>+</span> <span class=mi>1</span> <span class=p>:</span> <span class=nb>len</span><span class=p>(</span><span class=n>splitted</span><span class=p>)</span> <span class=o>-</span> <span class=mi>1</span><span class=p>]</span>
<a id=__codelineno-0-17 name=__codelineno-0-17 href=#__codelineno-0-17></a> <span class=c1># search all demuxers</span>
<a id=__codelineno-0-18 name=__codelineno-0-18 href=#__codelineno-0-18></a> <span class=n>outputs</span> <span class=o>=</span> <span class=p>[</span><span class=n>re</span><span class=o>.</span><span class=n>search</span><span class=p>(</span><span class=s2>&quot;\s[a-z0-9_,-]{2,}\s&quot;</span><span class=p>,</span> <span class=n>d</span><span class=p>)</span> <span class=k>for</span> <span class=n>d</span> <span class=ow>in</span> <span class=n>supported_demuxers</span><span class=p>]</span>
<a id=__codelineno-0-19 name=__codelineno-0-19 href=#__codelineno-0-19></a> <span class=n>outputs</span> <span class=o>=</span> <span class=p>[</span><span class=n>o</span><span class=o>.</span><span class=n>group</span><span class=p>(</span><span class=mi>0</span><span class=p>)</span> <span class=k>for</span> <span class=n>o</span> <span class=ow>in</span> <span class=n>outputs</span> <span class=k>if</span> <span class=n>o</span><span class=p>]</span>
<a id=__codelineno-0-20 name=__codelineno-0-20 href=#__codelineno-0-20></a> <span class=c1># return demuxers output</span>
<a id=__codelineno-0-21 name=__codelineno-0-21 href=#__codelineno-0-21></a> <span class=k>return</span> <span class=p>[</span><span class=n>o</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>if</span> <span class=ow>not</span> <span class=p>(</span><span class=s2>&quot;,&quot;</span> <span class=ow>in</span> <span class=n>o</span><span class=p>)</span> <span class=k>else</span> <span class=n>o</span><span class=o>.</span><span class=n>split</span><span class=p>(</span><span class=s2>&quot;,&quot;</span><span class=p>)[</span><span class=o>-</span><span class=mi>1</span><span class=p>]</span><span class=o>.</span><span class=n>strip</span><span class=p>()</span> <span class=k>for</span> <span class=n>o</span> <span class=ow>in</span> <span class=n>outputs</span><span class=p>]</span>
</code></pre></div> </details> </div> </div> <p>&nbsp;</p> <div class="doc doc-object doc-function"> <div class="doc doc-contents first"> <h4 id=deffcode.ffhelper.validate_imgseqdir--validate_imgseqdir>validate_imgseqdir<a class=headerlink href=#deffcode.ffhelper.validate_imgseqdir--validate_imgseqdir title="Anchor link to this section for reference">&para;</a></h4> <p>Validates Image Sequence by counting number of Image files.</p> <p><strong>Parameters:</strong></p> <table> <thead> <tr> <th>Name</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> </thead> <tbody> <tr> <td><code>source</code></td> <td><code>string</code></td> <td><p>video source to be validated</p></td> <td><em>required</em></td> </tr> <tr> <td><code>extension</code></td> <td><code>string</code></td> <td><p>extension of image sequence.</p></td> <td><code>&#39;jpg&#39;</code></td> </tr> </tbody> </table> <p><strong>Returns:</strong> A boolean value, confirming whether tests passed, or not?.</p> <details class=quote> <summary>Source code in <code>deffcode/ffhelper.py</code></summary> <div class=highlight><pre><span></span><code><a id=__codelineno-0-1 name=__codelineno-0-1 href=#__codelineno-0-1></a><span class=k>def</span> <span class=nf>validate_imgseqdir</span><span class=p>(</span><span class=n>source</span><span class=p>,</span> <span class=n>extension</span><span class=o>=</span><span class=s2>&quot;jpg&quot;</span><span class=p>,</span> <span class=n>verbose</span><span class=o>=</span><span class=kc>False</span><span class=p>):</span>
<a id=__codelineno-0-2 name=__codelineno-0-2 href=#__codelineno-0-2></a><span class=w> </span><span class=sd>&quot;&quot;&quot;</span>
<a id=__codelineno-0-3 name=__codelineno-0-3 href=#__codelineno-0-3></a><span class=sd> ## validate_imgseqdir</span>
Expand Down
2 changes: 1 addition & 1 deletion v0.2.6-dev/search/search_index.json

Large diffs are not rendered by default.

0 comments on commit cddc8bb

Please sign in to comment.