<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mpv on Ito Archives</title>
    <link>https://itoschum.me/tags/mpv/</link>
    <description>Recent content in Mpv on Ito Archives</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 09 Feb 2026 22:42:00 -0500</lastBuildDate>
    <atom:link href="https://itoschum.me/tags/mpv/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Bilibili Danmaku Integration for mpv on macOS</title>
      <link>https://itoschum.me/logs/log_17/</link>
      <pubDate>Mon, 09 Feb 2026 22:42:00 -0500</pubDate>
      <guid>https://itoschum.me/logs/log_17/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;&#xA;&lt;p&gt;Bilibili provides Danmaku in an XML format that mpv cannot natively render. Furthermore, Bilibili&amp;rsquo;s AI subtitles often use non-standard language tags (like ai-zh), which can lead to &amp;ldquo;null&amp;rdquo; tracks or rendering errors in older mpv kernels (like the one used in IINA).&lt;/p&gt;&#xA;&lt;p&gt;Thankfully, &lt;code&gt;yt-dlp&lt;/code&gt; allows us to extract and download these Danmaku and AI subtitles; &lt;code&gt;danmaku2ass&lt;/code&gt;(deveoped by &lt;a href=&#34;https://github.com/m13253&#34;&gt;@m13253&lt;/a&gt;) provides a brilliant solution to convert XML files to ASS subtitles.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Solution to the Failure to Pass Cookies into yt-dlp When Using mpv</title>
      <link>https://itoschum.me/logs/log_09/</link>
      <pubDate>Mon, 20 Oct 2025 01:40:00 -0400</pubDate>
      <guid>https://itoschum.me/logs/log_09/</guid>
      <description>&lt;h2 id=&#34;issue-description&#34;&gt;Issue Description&lt;/h2&gt;&#xA;&lt;p&gt;When using &lt;code&gt;mpv&lt;/code&gt; to play videos from Bilibili, users may encounter issues where &lt;code&gt;mpv&lt;/code&gt; fails to pass cookies to &lt;code&gt;yt-dlp&lt;/code&gt; correctly, regardless of whether the cookies are already in Netscape format, leading to error messages like the following:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;→ mpv --cookies-file&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;~/bilibili_cookies.txt&amp;#34;&lt;/span&gt; --ytdl-raw-options&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;format&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;100028+30280 https://www.bilibili.com/video/BV1HMH7z4ES4&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;ytdl_hook&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt; ERROR: &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;BiliBili&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt; BV1HMH7z4ES4: Requested format is not available. Use --list-formats &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; a list of available formats&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;ytdl_hook&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt; youtube-dl failed: unexpected error occurred&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Failed to recognize file format.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The format &lt;code&gt;100028+30280&lt;/code&gt; is a valid format on Bilibili, but only extractable when the user is logged in, which requires the correct cookies to be passed to &lt;code&gt;yt-dlp&lt;/code&gt;, which is the default backend for &lt;code&gt;mpv&lt;/code&gt; to handle online video playback.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
