Site updated at 2017-10-08 11:19:32 UTC
This commit is contained in:
parent
ec24e4efa1
commit
359e3b4523
26 changed files with 77 additions and 70 deletions
|
@ -97,14 +97,21 @@ Media extractor doesn’t transcode streams, it just tries to find stream that m
|
|||
<span class="s">music</span><span class="pi">:</span> <span class="s">bestaudio[ext=mp3]</span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<p>This configuration sets query for all service calls like: <code class="highlighter-rouge"><span class="p">{</span><span class="nt">"entity_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"media_player.my_sonos"</span><span class="p">,</span><span class="w"> </span><span class="nt">"media_content_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://soundcloud.com/bruttoband/brutto-11"</span><span class="p">,</span><span class="w"> </span><span class="nt">"media_content_type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"music"</span><span class="p">}</span></code> to ‘bestaudio’ with mp3 extension.</p>
|
||||
<p>This configuration sets query for all service calls like to ‘bestaudio’ with the mp3 extension:</p>
|
||||
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="w">
|
||||
</span><span class="nt">"entity_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"media_player.my_sonos"</span><span class="p">,</span><span class="w">
|
||||
</span><span class="nt">"media_content_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://soundcloud.com/bruttoband/brutto-11"</span><span class="p">,</span><span class="w">
|
||||
</span><span class="nt">"media_content_type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"music"</span><span class="w">
|
||||
</span><span class="p">}</span><span class="w">
|
||||
</span></code></pre>
|
||||
</div>
|
||||
<p>Query examples with explanations:</p>
|
||||
<ul>
|
||||
<li><strong>bestvideo</strong> - best video only stream</li>
|
||||
<li><strong>best</strong> - best video + audio stream</li>
|
||||
<li><strong>bestaudio[ext=m4a]</strong> - best audio stream with m4a extension</li>
|
||||
<li><strong>worst</strong> - worst video + audio stream</li>
|
||||
<li><strong>bestaudio[ext=m4a]/bestaudio[ext=ogg]/bestaudio</strong> - best m4a audio, otherwise best ogg audio and only then any best audio</li>
|
||||
<li><strong>bestvideo</strong>: Best video only stream</li>
|
||||
<li><strong>best</strong>: Best video + audio stream</li>
|
||||
<li><strong>bestaudio[ext=m4a]</strong>: Best audio stream with m4a extension</li>
|
||||
<li><strong>worst</strong>: Worst video + audio stream</li>
|
||||
<li><strong>bestaudio[ext=m4a]/bestaudio[ext=ogg]/bestaudio</strong>: Best m4a audio, otherwise best ogg audio and only then any best audio</li>
|
||||
</ul>
|
||||
<p>More info about queries <a href="https://github.com/rg3/youtube-dl#format-selection">here</a></p>
|
||||
<h3><a class="title-link" name="use-the-service" href="#use-the-service"></a> Use the service</h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue