import{_ as a,c as n,a as l,o}from"./app-CDdN0tOz.js";const p={};function t(e,s){return o(),n("div",null,s[0]||(s[0]=[l(`<h1 id="视频快照" tabindex="-1"><a class="header-anchor" href="#视频快照"><span>视频快照</span></a></h1><p>快照的截取时间根据视频画面变化程度决定，各视频不相同</p><p>截取时间表的时间根据视频画面变化程度决定，各每个视频不相同</p><p>截取时间表的时间和快照一一对应，并按照从左到右 从上到下的顺序排布</p><h2 id="获取视频快照-web端" tabindex="-1"><a class="header-anchor" href="#获取视频快照-web端"><span>获取视频快照（web端）</span></a></h2><blockquote><p>https://api.bilibili.com/x/player/videoshot</p></blockquote><p><em>请求方式：GET</em></p><p><strong>url参数：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>aid</td><td>num</td><td>稿件avid</td><td>必要（可选）</td><td>avid与bvid任选一个</td></tr><tr><td>bvid</td><td>str</td><td>稿件bvid</td><td>必要（可选）</td><td>avid与bvid任选一个</td></tr><tr><td>cid</td><td>num</td><td>分P cid</td><td>非必要</td><td>默认为1P</td></tr><tr><td>index</td><td>num</td><td>json数组截取时间表</td><td>非必要</td><td>1：需要<br>0：不需要<br>默认为0</td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功 <br>40001：请求错误<br>40003：无视频</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code>对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>pvdata</td><td>str</td><td>bin格式截取时间表url</td><td></td></tr><tr><td>img_x_len</td><td>num</td><td>每行图片数</td><td>一般为10</td></tr><tr><td>img_y_len</td><td>num</td><td>每列图片数</td><td>一般为10</td></tr><tr><td>img_x_size</td><td>num</td><td>每张图片长</td><td>一般为160</td></tr><tr><td>img_y_size</td><td>num</td><td>每张图片宽</td><td>一般为90</td></tr><tr><td>image</td><td>array</td><td>图片拼版</td><td></td></tr><tr><td>index</td><td>array</td><td>json数组格式截取时间表</td><td>无为空</td></tr></tbody></table><p><code>data</code>中的<code>image</code>数组：</p><table><thead><tr><th>项</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>0</td><td>str</td><td>图片拼版1 url</td><td></td></tr><tr><td>n</td><td>str</td><td>图片拼版(n+1) url</td><td>第一张拼版占满时延续第二张</td></tr><tr><td>……</td><td>str</td><td>……</td><td>……</td></tr></tbody></table><p><code>data</code>中的<code>index</code>数组：</p><table><thead><tr><th>项</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>0</td><td>num</td><td>恒为0</td><td></td></tr><tr><td>1</td><td>num</td><td>图片1 截取时间</td><td>视频0秒截取时间</td></tr><tr><td>n</td><td>num</td><td>图片n 截取时间</td><td>单位为秒</td></tr><tr><td>……</td><td>num</td><td>……</td><td>单位为秒</td></tr></tbody></table><p><strong>示例：</strong></p><p>获取视频<code>av26273789</code>/<code>BV1os411H7wm</code>的快照</p><p>avid方式：</p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://api.bilibili.com/x/player/videoshot&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;aid=26273789&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;index=1&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><p>bvid方式：</p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://api.bilibili.com/x/player/videoshot&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;bvid=BV1os411H7wm&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;index=1&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;pvdata&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;//i0.hdslb.com/bfs/videoshot/49075258.bin&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_x_len&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">10</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_y_len&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">10</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_x_size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">160</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_y_size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">90</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;image&quot;</span><span style="color:#D4D4D4;">: [</span><span style="color:#CE9178;">&quot;//i0.hdslb.com/bfs/videoshot/49075258.jpg&quot;</span><span style="color:#D4D4D4;">, </span><span style="color:#CE9178;">&quot;//i0.hdslb.com/bfs/videoshot/49075258-1.jpg&quot;</span><span style="color:#D4D4D4;">],</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;index&quot;</span><span style="color:#D4D4D4;">: [</span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">8</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">14</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">19</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">25</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">34</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">40</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">46</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">56</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">63</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">70</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">80</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">87</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">93</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">100</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">109</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">117</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">124</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">133</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">142</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">148</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">156</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">164</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">171</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">179</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">184</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">192</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">198</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">206</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">214</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">223</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">232</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">239</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">246</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">254</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">261</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">269</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">275</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">283</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">289</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">299</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">305</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">310</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">315</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">322</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">330</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">339</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">348</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">358</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">364</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">371</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">376</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">382</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">391</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">404</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">413</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">421</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">426</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">434</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">441</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">452</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">458</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">463</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">473</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">479</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">491</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">497</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">504</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">514</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">521</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">528</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">533</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">540</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">546</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">552</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">558</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">567</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">575</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">586</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">591</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">602</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">609</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">615</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">623</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">629</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">639</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">647</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">653</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">658</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">664</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">670</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">675</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">684</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">691</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">698</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">713</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">724</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">729</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">737</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">743</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">754</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">762</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">772</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">779</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">784</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">797</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">803</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">810</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">817</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">825</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">834</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">845</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">851</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">857</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">867</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">878</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">888</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">896</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">903</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">909</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">914</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">919</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">928</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">935</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">944</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">958</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">970</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">977</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">988</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">996</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1004</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1011</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1018</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1026</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1035</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1041</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1048</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1055</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1063</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1073</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1079</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1086</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1095</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1106</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1111</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1124</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1135</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1147</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1153</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1159</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1165</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1171</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1184</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1198</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1209</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1215</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1221</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1228</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1236</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1242</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1253</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1258</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1269</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1276</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1284</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1289</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1300</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1306</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1315</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1321</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1328</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1340</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1347</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1354</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1361</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1366</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1371</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1383</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1390</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1396</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1403</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1415</span><span style="color:#D4D4D4;">]</span></span>
<span class="line"><span style="color:#D4D4D4;">	}</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="获取视频快照-app端" tabindex="-1"><a class="header-anchor" href="#获取视频快照-app端"><span>获取视频快照（APP端）</span></a></h2><blockquote><p>https://app.bilibili.com/x/v2/view/video/shot</p></blockquote><p><em>请求方式：GET</em></p><p>鉴权方式：appkey</p><p><strong>url参数：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>aid</td><td>num</td><td>稿件avid</td><td>必要</td><td></td></tr><tr><td>appkey</td><td>str</td><td>APP密钥</td><td>APP方式必要</td><td></td></tr><tr><td>cid</td><td>num</td><td>分P cid</td><td>必要</td><td></td></tr><tr><td>ts</td><td>num</td><td>当前时间戳</td><td>APP方式必要</td><td></td></tr><tr><td>sign</td><td>str</td><td>APP签名</td><td>APP方式必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功 <br>-400：请求错误<br>10008：稿件的缩略图不存在</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code>对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>pvdata</td><td>str</td><td>bin格式截取时间表url</td><td></td></tr><tr><td>img_x_len</td><td>num</td><td>每行图片数</td><td>一般为10</td></tr><tr><td>img_y_len</td><td>num</td><td>每列图片数</td><td>一般为10</td></tr><tr><td>img_x_size</td><td>num</td><td>每张图片长</td><td>一般为160</td></tr><tr><td>img_y_size</td><td>num</td><td>每张图片宽</td><td>一般为90</td></tr><tr><td>image</td><td>array</td><td>图片拼版</td><td></td></tr></tbody></table><p><code>data</code>中的<code>image</code>数组：</p><table><thead><tr><th>项</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>0</td><td>str</td><td>图片拼版1 url</td><td></td></tr><tr><td>n</td><td>str</td><td>图片拼版(n+1) url</td><td>第一张拼版占满时延续第二张</td></tr><tr><td>……</td><td>str</td><td>……</td><td>……</td></tr></tbody></table><p>示例：</p><p>获取视频<code>av26273789</code>（<code>cid=49075258</code>）的快照</p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://app.bilibili.com/x/v2/view/video/shot&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;appkey=1d8b6e7d45233436&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;aid=26273789&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;cid=49075258&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;ts=0&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;sign=06c0a4f2ede21984313552bd9439db18&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">    &quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;pvdata&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;https://i0.hdslb.com/bfs/videoshot/49075258.bin&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;img_x_len&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">10</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;img_y_len&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">10</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;img_x_size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">160</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;img_y_size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">90</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">        &quot;image&quot;</span><span style="color:#D4D4D4;">: [</span></span>
<span class="line"><span style="color:#CE9178;">            &quot;https://i0.hdslb.com/bfs/videoshot/49075258.jpg&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#CE9178;">            &quot;https://i0.hdslb.com/bfs/videoshot/49075258-1.jpg&quot;</span></span>
<span class="line"><span style="color:#D4D4D4;">        ]</span></span>
<span class="line"><span style="color:#D4D4D4;">    }</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="获取视频快照-web端-用于封面预览" tabindex="-1"><a class="header-anchor" href="#获取视频快照-web端-用于封面预览"><span>获取视频快照（web端）（用于封面预览）</span></a></h2><blockquote><p>https://api.bilibili.com/pvideo</p></blockquote><p><em>请求方式：GET</em></p><p>内容与「获取视频快照1」加参数index=1相同，但url带有转义，仅限第1P</p><p><strong>url参数：</strong></p><table><thead><tr><th>参数名</th><th>类型</th><th>内容</th><th>必要性</th><th>备注</th></tr></thead><tbody><tr><td>aid</td><td>num</td><td>稿件avid</td><td>必要</td><td></td></tr></tbody></table><p><strong>json回复：</strong></p><p>根对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>code</td><td>num</td><td>返回值</td><td>0：成功<br>40001：请求错误<br>-404：无视频</td></tr><tr><td>message</td><td>str</td><td>错误信息</td><td>默认为0</td></tr><tr><td>ttl</td><td>num</td><td>1</td><td></td></tr><tr><td>data</td><td>obj</td><td>信息本体</td><td></td></tr></tbody></table><p><code>data</code>对象：</p><table><thead><tr><th>字段</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>pvdata</td><td>str</td><td>bin格式截取时间表url</td><td></td></tr><tr><td>img_x_len</td><td>num</td><td>每行图片数</td><td>一般为10</td></tr><tr><td>img_y_len</td><td>num</td><td>每列图片数</td><td>一般为10</td></tr><tr><td>img_x_size</td><td>num</td><td>每张图片长</td><td>一般为160</td></tr><tr><td>img_y_size</td><td>num</td><td>每张图片宽</td><td>一般为90</td></tr><tr><td>image</td><td>array</td><td>图片拼版</td><td></td></tr><tr><td>index</td><td>array</td><td>json数组格式截取时间表</td><td>无为空</td></tr></tbody></table><p><code>data</code>中的<code>image</code>数组：</p><table><thead><tr><th>项</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>0</td><td>str</td><td>图片拼版1 url</td><td></td></tr><tr><td>n</td><td>str</td><td>图片拼版(n+1) url</td><td>第一张拼版占满时延续第二张</td></tr><tr><td>……</td><td>str</td><td>……</td><td>……</td></tr></tbody></table><p><code>data</code>中的<code>index</code>数组：</p><table><thead><tr><th>项</th><th>类型</th><th>内容</th><th>备注</th></tr></thead><tbody><tr><td>0</td><td>num</td><td>恒为0</td><td></td></tr><tr><td>1</td><td>num</td><td>图片1 截取时间</td><td>视频0秒截取时间</td></tr><tr><td>n</td><td>num</td><td>图片n 截取时间</td><td>单位为秒</td></tr><tr><td>……</td><td>num</td><td>……</td><td>单位为秒</td></tr></tbody></table><p><strong>示例：</strong></p><p>获取视频<code>av26273789</code>的快照</p><div class="language-shell line-numbers-mode" data-highlighter="shiki" data-ext="shell" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-shell"><span class="line"><span style="color:#DCDCAA;">curl</span><span style="color:#569CD6;"> -G</span><span style="color:#CE9178;"> &#39;https://api.bilibili.com/pvideo&#39;</span><span style="color:#D7BA7D;"> \\</span></span>
<span class="line"><span style="color:#D4D4D4;">--data-urlencode </span><span style="color:#CE9178;">&#39;aid=26273789&#39;</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div></div></div><details><summary>查看响应示例：</summary><div class="language-json line-numbers-mode" data-highlighter="shiki" data-ext="json" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-json"><span class="line"><span style="color:#D4D4D4;">{</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;code&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;message&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;0&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;ttl&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">1</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">	&quot;data&quot;</span><span style="color:#D4D4D4;">: {</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;pvdata&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#CE9178;">&quot;</span><span style="color:#D7BA7D;">\\/\\/</span><span style="color:#CE9178;">i0.hdslb.com</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">bfs</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">videoshot</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">49075258.bin&quot;</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_x_len&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">10</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_y_len&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">10</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_x_size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">160</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;img_y_size&quot;</span><span style="color:#D4D4D4;">: </span><span style="color:#B5CEA8;">90</span><span style="color:#D4D4D4;">,</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;image&quot;</span><span style="color:#D4D4D4;">: [</span><span style="color:#CE9178;">&quot;</span><span style="color:#D7BA7D;">\\/\\/</span><span style="color:#CE9178;">i0.hdslb.com</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">bfs</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">videoshot</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">49075258.jpg&quot;</span><span style="color:#D4D4D4;">, </span><span style="color:#CE9178;">&quot;</span><span style="color:#D7BA7D;">\\/\\/</span><span style="color:#CE9178;">i0.hdslb.com</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">bfs</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">videoshot</span><span style="color:#D7BA7D;">\\/</span><span style="color:#CE9178;">49075258-1.jpg&quot;</span><span style="color:#D4D4D4;">],</span></span>
<span class="line"><span style="color:#9CDCFE;">		&quot;index&quot;</span><span style="color:#D4D4D4;">: [</span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">0</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">8</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">14</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">19</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">25</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">34</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">40</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">46</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">56</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">63</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">70</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">80</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">87</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">93</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">100</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">109</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">117</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">124</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">133</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">142</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">148</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">156</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">164</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">171</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">179</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">184</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">192</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">198</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">206</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">214</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">223</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">232</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">239</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">246</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">254</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">261</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">269</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">275</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">283</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">289</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">299</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">305</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">310</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">315</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">322</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">330</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">339</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">348</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">358</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">364</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">371</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">376</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">382</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">391</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">404</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">413</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">421</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">426</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">434</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">441</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">452</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">458</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">463</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">473</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">479</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">491</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">497</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">504</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">514</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">521</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">528</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">533</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">540</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">546</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">552</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">558</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">567</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">575</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">586</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">591</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">602</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">609</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">615</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">623</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">629</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">639</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">647</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">653</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">658</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">664</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">670</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">675</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">684</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">691</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">698</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">713</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">724</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">729</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">737</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">743</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">754</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">762</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">772</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">779</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">784</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">797</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">803</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">810</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">817</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">825</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">834</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">845</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">851</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">857</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">867</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">878</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">888</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">896</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">903</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">909</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">914</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">919</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">928</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">935</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">944</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">958</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">970</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">977</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">988</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">996</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1004</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1011</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1018</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1026</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1035</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1041</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1048</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1055</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1063</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1073</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1079</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1086</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1095</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1106</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1111</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1124</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1135</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1147</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1153</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1159</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1165</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1171</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1184</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1198</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1209</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1215</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1221</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1228</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1236</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1242</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1253</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1258</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1269</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1276</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1284</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1289</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1300</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1306</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1315</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1321</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1328</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1340</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1347</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1354</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1361</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1366</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1371</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1383</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1390</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1396</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1403</span><span style="color:#D4D4D4;">, </span><span style="color:#B5CEA8;">1415</span><span style="color:#D4D4D4;">]</span></span>
<span class="line"><span style="color:#D4D4D4;">	}</span></span>
<span class="line"><span style="color:#D4D4D4;">}</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div></details><h2 id="图片拼版" tabindex="-1"><a class="header-anchor" href="#图片拼版"><span>图片拼版</span></a></h2><p>以160x90像素为一张，横向10张，纵向10张，从左到右从上到下进行裁剪</p><p>图1为0s，图2为8s，图3为14s，以此类推……</p><p>示例拼版图片url：http://i0.hdslb.com/bfs/videoshot/49075258.jpg</p><img src="https://i0.hdslb.com/bfs/videoshot/49075258.jpg" referrerpolicy="no-referrer"><h2 id="bin格式截取时间表" tabindex="-1"><a class="header-anchor" href="#bin格式截取时间表"><span>bin格式截取时间表</span></a></h2><p>bin的内容为uint16数组（2Byte对齐），与json数组一一对应</p><p>第0项恒为0，从第1项开始作为截取图片的时间（秒）</p><p>示例bin格式截取时间表：http://i0.hdslb.com/bfs/videoshot/49075258.bin</p><p>hex内容如下：</p><div class="language- line-numbers-mode" data-highlighter="shiki" data-ext="" style="background-color:#1E1E1E;color:#D4D4D4;"><pre class="shiki dark-plus vp-code"><code class="language-"><span class="line"><span>00000000  00 00 00 00 00 08 00 0e  00 13 00 19 00 22 00 28  |.............&quot;.(|</span></span>
<span class="line"><span>00000010  00 2e 00 38 00 3f 00 46  00 50 00 57 00 5d 00 64  |...8.?.F.P.W.].d|</span></span>
<span class="line"><span>00000020  00 6d 00 75 00 7c 00 85  00 8e 00 94 00 9c 00 a4  |.m.u.|..........|</span></span>
<span class="line"><span>00000030  00 ab 00 b3 00 b8 00 c0  00 c6 00 ce 00 d6 00 df  |................|</span></span>
<span class="line"><span>00000040  00 e8 00 ef 00 f6 00 fe  01 05 01 0d 01 13 01 1b  |................|</span></span>
<span class="line"><span>00000050  01 21 01 2b 01 31 01 36  01 3b 01 42 01 4a 01 53  |.!.+.1.6.;.B.J.S|</span></span>
<span class="line"><span>00000060  01 5c 01 66 01 6c 01 73  01 78 01 7e 01 87 01 94  |.\\.f.l.s.x.~....|</span></span>
<span class="line"><span>00000070  01 9d 01 a5 01 aa 01 b2  01 b9 01 c4 01 ca 01 cf  |................|</span></span>
<span class="line"><span>00000080  01 d9 01 df 01 eb 01 f1  01 f8 02 02 02 09 02 10  |................|</span></span>
<span class="line"><span>00000090  02 15 02 1c 02 22 02 28  02 2e 02 37 02 3f 02 4a  |.....&quot;.(...7.?.J|</span></span>
<span class="line"><span>000000a0  02 4f 02 5a 02 61 02 67  02 6f 02 75 02 7f 02 87  |.O.Z.a.g.o.u....|</span></span>
<span class="line"><span>000000b0  02 8d 02 92 02 98 02 9e  02 a3 02 ac 02 b3 02 ba  |................|</span></span>
<span class="line"><span>000000c0  02 c9 02 d4 02 d9 02 e1  02 e7 02 f2 02 fa 03 04  |................|</span></span>
<span class="line"><span>000000d0  03 0b 03 10 03 1d 03 23  03 2a 03 31 03 39 03 42  |.......#.*.1.9.B|</span></span>
<span class="line"><span>000000e0  03 4d 03 53 03 59 03 63  03 6e 03 78 03 80 03 87  |.M.S.Y.c.n.x....|</span></span>
<span class="line"><span>000000f0  03 8d 03 92 03 97 03 a0  03 a7 03 b0 03 be 03 ca  |................|</span></span>
<span class="line"><span>00000100  03 d1 03 dc 03 e4 03 ec  03 f3 03 fa 04 02 04 0b  |................|</span></span>
<span class="line"><span>00000110  04 11 04 18 04 1f 04 27  04 31 04 37 04 3e 04 47  |.......&#39;.1.7.&gt;.G|</span></span>
<span class="line"><span>00000120  04 52 04 57 04 64 04 6f  04 7b 04 81 04 87 04 8d  |.R.W.d.o.{......|</span></span>
<span class="line"><span>00000130  04 93 04 a0 04 ae 04 b9  04 bf 04 c5 04 cc 04 d4  |................|</span></span>
<span class="line"><span>00000140  04 da 04 e5 04 ea 04 f5  04 fc 05 04 05 09 05 14  |................|</span></span>
<span class="line"><span>00000150  05 1a 05 23 05 29 05 30  05 3c 05 43 05 4a 05 51  |...#.).0.&lt;.C.J.Q|</span></span>
<span class="line"><span>00000160  05 56 05 5b 05 67 05 6e  05 74 05 7b 05 87        |.V.[.g.n.t.{..|</span></span></code></pre><div class="line-numbers" aria-hidden="true" style="counter-reset:line-number 0;"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div>`,72)]))}const r=a(p,[["render",t]]),c=JSON.parse('{"path":"/docs/video/snapshot.html","title":"视频快照","lang":"zh-CN","frontmatter":{},"git":{"updatedTime":1745080699000,"contributors":[{"name":"SocialSisterYi","username":"SocialSisterYi","email":"1440239038@qq.com","commits":2,"url":"https://github.com/SocialSisterYi"},{"name":"SessionHu","username":"SessionHu","email":"102411014+SessionHu@users.noreply.github.com","commits":1,"url":"https://github.com/SessionHu"}],"changelog":[{"hash":"031e28eb62cba0d3e91508ac2669eaafb0715db6","time":1745080699000,"email":"102411014+SessionHu@users.noreply.github.com","author":"SessionHu","message":"fix: img 403 by referrer"},{"hash":"f6760f4be38d5b592d396b211e48c666286524de","time":1677124138000,"email":"1440239038@qq.com","author":"SocialSisterYi","message":"🔨remove header index"},{"hash":"7d89ece2ac46425810647c4ac92acf5f3721cb68","time":1676998806000,"email":"1440239038@qq.com","author":"SocialSisterYi","message":"🚀调整项目结构"}]},"filePathRelative":"docs/video/snapshot.md"}');export{r as comp,c as data};
