Skip to content

Commit

Permalink
add 54xx to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Oct 29, 2023
1 parent fa09d77 commit 4482874
Show file tree
Hide file tree
Showing 5 changed files with 368 additions and 14 deletions.
13 changes: 13 additions & 0 deletions _site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,19 @@ <h2 class="nav-grid__title">Discovery</h2>
</a><!-- /.nav-grid__item -->
</div><!-- /.col -->

<div class="col-sm-6 col-lg-4">
<a href="ranges/54xx" class="nav-grid__item">
<div class="nav-grid__content" data-mh>
<h2 class="nav-grid__title">Analytics</h2>
<p>Jobs where the goal is to analyze something</p>
</div><!-- /.nav-grid__content -->
<p class="nav-grid__btn">
View
<i class="icon icon--arrow-right"></i>
</p>
</a><!-- /.nav-grid__item -->
</div><!-- /.col -->

</div><!-- /.row -->
</div><!-- /.nav-grid -->
</div><!-- /.col -->
Expand Down
30 changes: 16 additions & 14 deletions _site/kinds/5200/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,6 @@ <h1 id="input">Input</h1>

<h1 id="params">Params</h1>

<h2 id="format"><code class="language-plaintext highlighter-rouge">format</code></h2>

<p>Description:
The output format</p>

<p>Usage:
Optional parameter. If set the DVM uses the format to convert the video to the given format, otherwise it’s up to the DVM to choose an output format. By using a format such as mp3, the video might also be converted to an audio file.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "param", "format", "mp3" ]
</code></pre></div></div>

<h2 id="range"><code class="language-plaintext highlighter-rouge">range</code></h2>

<p>Specifies a range if the video should be shortend.</p>
Expand All @@ -105,19 +94,32 @@ <h2 id="range"><code class="language-plaintext highlighter-rouge">range</code></
</code></pre></div></div>

<h1 id="output">Output</h1>
<p>Description:
The output format</p>

<p>Usage:
Optional. If set the DVM uses the format to convert the video to the given format, otherwise it’s up to the DVM to choose an output format. By using a format such as audio/mp3, the video might also be converted to an audio file.
Including but not limited to:</p>

<p>A link to the converted video</p>
<ul>
<li><code class="language-plaintext highlighter-rouge">video/mp4</code></li>
<li><code class="language-plaintext highlighter-rouge">video/avi</code></li>
<li><code class="language-plaintext highlighter-rouge">audio/mp3</code></li>
<li><code class="language-plaintext highlighter-rouge">audio/wav</code></li>
<li><code class="language-plaintext highlighter-rouge">audio/ogg</code></li>
</ul>

<h1 id="example">Example</h1>

<h2 id="generates-the-output-based-on-the-input-link-and-params">Generates the output based on the input link and params</h2>
<h2 id="generates-the-output-based-on-a-social-media-link-and-params">Generates the output based on a social media link and params</h2>

<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w">
</span><span class="nl">"kind"</span><span class="p">:</span><span class="w"> </span><span class="mi">5200</span><span class="p">,</span><span class="w">
</span><span class="nl">"tags"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"https://x.com/WalkerAmerica/status/1713928663865966627?s=20"</span><span class="p">,</span><span class="w"> </span><span class="s2">"url"</span><span class="w"> </span><span class="p">],</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"param"</span><span class="p">,</span><span class="w"> </span><span class="s2">"format"</span><span class="p">,</span><span class="w"> </span><span class="s2">"mp4"</span><span class="p">],</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"output"</span><span class="p">,</span><span class="w"> </span><span class="s2">"video/mp4"</span><span class="w"> </span><span class="p">],</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"param"</span><span class="p">,</span><span class="w"> </span><span class="s2">"range"</span><span class="p">,</span><span class="w"> </span><span class="s2">"0"</span><span class="p">,</span><span class="w"> </span><span class="s2">"10"</span><span class="p">],</span><span class="w">

</span><span class="p">]</span><span class="w">
</span><span class="p">}</span><span class="w">
Expand Down
321 changes: 321 additions & 0 deletions _site/kinds/5201/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,321 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, minimum-scale=1.0">
<title>Video Translation</title>

<meta name="description" content="Job request to translate video audio content into target language with or without subtitles.">


<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,500,500i,700,700i|Noto+Sans:400,400i,700,700i|Source+Code+Pro&amp;subset=latin-ext">
<link rel="stylesheet" href="/doks-theme/assets/css/style.css">

</head>
<body class="blue" data-spy="scroll" data-target=".js-scrollspy">

<div class="offcanvas visible-xs">
<ul class="offcanvas__nav">

<li><a href="/">Home</a></li>

<li><a href="https://github.com/nostr-protocol/nips/blob/vending-machine/90.md">NIP-90</a></li>

</ul><!-- /.offcanvas__nav -->
</div><!-- /.offcanvas -->



<header class="site-header">
<div class="container">
<div class="row">
<div class="col-xs-12">

<a href="/" class="site-header__logo">Data Vending Machine</a>


<ul class="site-header__nav hidden-xs">

<li><a href="/">Home</a></li>

<li><a href="https://github.com/nostr-protocol/nips/blob/vending-machine/90.md">NIP-90</a></li>

</ul><!-- /.site-header__nav -->
<button class="offcanvas-toggle visible-xs">
<span></span>
<span></span>
<span></span>
</button><!-- /.offcanvas-toggle -->

</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container -->
</header><!-- /.site-header -->


<div class="hero-subheader">
<div class="container">
<div class="row">
<div class="col-md-7">
<div class="align-container" data-mh>
<div class="align-inner">

<h1 class="hero-subheader__title">Video Translation</h1>


<p class="hero-subheader__desc">Job request to translate video audio content into target language with or without subtitles.</p>


</div><!-- /.align-inner -->
</div><!-- /.align-container -->
</div><!-- /.col -->

</div><!-- /.row -->
</div><!-- /.container -->
</div><!-- /.hero-subheader -->
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-7">
<div class="content">
<h1 id="input">Input</h1>

<p>Clients provide a link to the input video or a reference to an event or job ID. The ID or link can either point directly to a media file (e.g. ending with .mp4) or to a social media share link, e.g. a Tweet or a YouTube video.</p>

<h1 id="params">Params</h1>

<h2 id="language"><code class="language-plaintext highlighter-rouge">language</code></h2>

<p>Specifies the output language of the video. Input language is auto-detected.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "param", "language", "es"]
</code></pre></div></div>

<table>
<thead>
<tr>
<th>ID</th>
<th>Language</th>
</tr>
</thead>
<tbody>
<tr>
<td>en</td>
<td>English</td>
</tr>
<tr>
<td>jp</td>
<td>Japanese</td>
</tr>
<tr>
<td>cn</td>
<td>Chinese</td>
</tr>
<tr>
<td>de</td>
<td>German</td>
</tr>
<tr>
<td>in</td>
<td>Tamil</td>
</tr>
<tr>
<td>fr</td>
<td>French</td>
</tr>
<tr>
<td>kr</td>
<td>Korean</td>
</tr>
<tr>
<td>br</td>
<td>Portuguese (Brazil)</td>
</tr>
<tr>
<td>pt</td>
<td>Portuguese (Portugal)</td>
</tr>
<tr>
<td>it</td>
<td>Italian</td>
</tr>
<tr>
<td>es</td>
<td>Spanish</td>
</tr>
<tr>
<td>id</td>
<td>Indonesian</td>
</tr>
<tr>
<td>nl</td>
<td>Dutch</td>
</tr>
<tr>
<td>tr</td>
<td>Turkish</td>
</tr>
<tr>
<td>ph</td>
<td>Filipino</td>
</tr>
<tr>
<td>pl</td>
<td>Polish</td>
</tr>
<tr>
<td>se</td>
<td>Swedish</td>
</tr>
<tr>
<td>bg</td>
<td>Bulgarian</td>
</tr>
<tr>
<td>ro</td>
<td>Romanian</td>
</tr>
<tr>
<td>se</td>
<td>Arabic (Saudi Arabia)</td>
</tr>
<tr>
<td>ae</td>
<td>Arabic (UAE)</td>
</tr>
<tr>
<td>cz</td>
<td>Czech</td>
</tr>
<tr>
<td>gr</td>
<td>Greek</td>
</tr>
<tr>
<td>fi</td>
<td>Finnish</td>
</tr>
<tr>
<td>hr</td>
<td>Croatian</td>
</tr>
<tr>
<td>my</td>
<td>Malay</td>
</tr>
<tr>
<td>sk</td>
<td>Slovak</td>
</tr>
<tr>
<td>dk</td>
<td>Danish</td>
</tr>
<tr>
<td>ua</td>
<td>Ukrainian</td>
</tr>
</tbody>
</table>

<h2 id="subtitle"><code class="language-plaintext highlighter-rouge">subtitle</code></h2>

<p>Optional parameter. Specifies the language for subtitle captions that be burned into the video.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "param", "subtitle", "en"]
</code></pre></div></div>

<h2 id="range"><code class="language-plaintext highlighter-rouge">range</code></h2>

<p>Optional parameter. Specifies a range if the video translation should be targeted to a specific timestamp range.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "param", "range", "&lt;start&gt;", "&lt;end&gt;" ]
</code></pre></div></div>

<h2 id="format"><code class="language-plaintext highlighter-rouge">format</code></h2>

<p>Optional. If set the DVM uses the format to convert the video to the given format, otherwise it’s up to the DVM to choose an output format. By using a format such as mp3, the video might also be converted to an audio file.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "output", "video/mp4" ]
</code></pre></div></div>

<h1 id="output">Output</h1>

<p>A link to the translated video.</p>

<h1 id="example">Example</h1>

<h2 id="generates-the-output-based-on-the-input-link-and-params">Generates the output based on the input link and params</h2>

<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w">
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w">
</span><span class="nl">"kind"</span><span class="p">:</span><span class="w"> </span><span class="mi">5201</span><span class="p">,</span><span class="w">
</span><span class="nl">"tags"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"https://video.nostr.build/401b8475dc5aa523b2edc7fbeb462f09f168aac8f268a598ac3556aca279c7fa.mp4"</span><span class="p">,</span><span class="w"> </span><span class="s2">"url"</span><span class="w"> </span><span class="p">],</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"&lt;hexid&gt;"</span><span class="p">,</span><span class="w"> </span><span class="s2">"event"</span><span class="w"> </span><span class="p">],</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"&lt;hexid&gt;"</span><span class="p">,</span><span class="w"> </span><span class="s2">"job"</span><span class="w"> </span><span class="p">],</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"param"</span><span class="p">,</span><span class="w"> </span><span class="s2">"language"</span><span class="p">,</span><span class="w"> </span><span class="s2">"es"</span><span class="p">],</span><span class="w">
</span><span class="p">[</span><span class="w"> </span><span class="s2">"param"</span><span class="p">,</span><span class="w"> </span><span class="s2">"subtitle"</span><span class="p">,</span><span class="w"> </span><span class="s2">"en"</span><span class="p">]</span><span class="w">
</span><span class="p">]</span><span class="w">
</span><span class="p">}</span><span class="w">
</span></code></pre></div></div>

</div><!-- /.content -->
</div><!-- /.col -->
<div class="col-md-4 col-md-offset-1">
<div class="sections-list-wrapper">
<div class="sections-list js-sections js-affix js-scrollspy hidden-xs hidden-sm"></div><!-- /.sections-list -->
</div>
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container -->
</div><!-- /.section -->

<div class="js-footer-area">



<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-sm-6">

<a href="/" class="site-footer__logo">Data Vending Machine</a>


<hr>
<p class="site-footer__copyright">MIT License</p>

</div><!-- /.col -->

<div class="col-sm-6 align-right">
<ul class="social-list">

<li>
<a href="https://github.com/pablof7z/data-vending-machines.org" target="_blank" class="social-list__item social-list__item--github">
<i class="icon icon--github"></i>
</a>
</li>

</ul><!-- /.social-list -->
</div><!-- /.col -->

</div><!-- /.row -->
</div><!-- /.container -->
</footer><!-- /.site-footer -->


<script src="/doks-theme/assets/js/vendor/jquery.min.js"></script>
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/affix.min.js"></script>
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/scrollspy.min.js"></script>
<script type="text/javascript" src="/doks-theme/assets/js/vendor/matchHeight.min.js"></script>
<script type="text/javascript" src="/doks-theme/assets/js/scripts.min.js"></script>




</div><!-- /.js-footer-area -->
</body>
</html>
Loading

0 comments on commit 4482874

Please sign in to comment.