<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7482&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to debug crappy resamplers of Chromium and Brave]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7482</link>
		<description><![CDATA[The most recent posts in How to debug crappy resamplers of Chromium and Brave.]]></description>
		<lastBuildDate>Thu, 23 Oct 2025 00:02:12 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[How to debug crappy resamplers of Chromium and Brave]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58748#p58748</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p><strong>Media: View and debug media players information</strong><br />_https://developer.chrome.com/docs/devtools/media-panel<br /><strong>Chromium:</strong> <span class="bbc">chrome://media-internals</span><br /><strong>Brave:</strong> <span class="bbc">brave://media-internals</span></p></div></blockquote></div><p>Brave is a great browser. It has a resampler inside, a sort of low quality linear interpolation, perhaps, because it is faster than &quot;medium crap&quot;.</p><div class="quotebox"><blockquote><div><p>The <span class="bbc">brave://media-internals</span> page is an official debugging tool </p><p>&#160; &#160; 1. Open a new tab and navigate to <span class="bbc">brave://media-internals</span><br />&#160; &#160; 2. Start playing an audio or video source in another tab.<br />&#160; &#160; 3. Go back to <span class="bbc">media-internals</span> and click on the player entry for your media.<br />&#160; &#160; 4. Examine the <span class="bbc">kAudioTracks</span>, etc.</p></div></blockquote></div><p><strong>NOTE:</strong> In YouTube and RuTube, &quot;Hi-Res Music&quot; means a sort of low quality mp3 (e.g., mp4a.40.2).</p><div class="quotebox"><blockquote><div><h5>Reference media files:</h5><p><strong>Hi-Res Music 32 Bit - Greatest Audiophile Collection - Natural Beat Records</strong><br />_https://rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf/</p><p><strong>Best Audiophile Vocal 24 bit - Hi-Res Music 2025 - Audiophile Voices</strong><br />_https://www.youtube.com/watch?v=uO6jfQ5tQHM<br />_https://youtu.be/uO6jfQ5tQHM</p><div class="codebox"><pre><code>$ youtube-dl -F &quot;https://youtu.be/uO6jfQ5tQHM&quot; | grep &quot;audio only&quot;
249          webm       audio only audio_quality_low   54k , webm_dash container, opus  (48000Hz), 30.39MiB
250          webm       audio only audio_quality_low   71k , webm_dash container, opus  (48000Hz), 39.87MiB
140          m4a        audio only audio_quality_medium  129k , m4a_dash container, mp4a.40.2 (44100Hz), 72.39MiB
251          webm       audio only audio_quality_medium  137k , webm_dash container, opus  (48000Hz), 76.97MiB</code></pre></div></div></blockquote></div><p><span style="color: green"><strong>RuTube: Hi-Res Music 32 Bit - Greatest Audiophile Collection - Natural Beat Records</strong></span></p><div class="codebox"><pre><code>brave://media-internals
kFrameTitle			&quot;Hi-Res Music 32 Bit - Greatest Audiophile Collection - Natural Beat Records&quot;
kFrameUrl			&quot;https://rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf/&quot;</code></pre></div><div class="codebox"><pre><code>kAudioTracks
[
  {
    &quot;bytes per channel&quot;: 2,
    &quot;bytes per frame&quot;: 4,
    &quot;channel layout&quot;: &quot;STEREO&quot;,
    &quot;channels&quot;: 2,
    &quot;codec&quot;: &quot;aac&quot;,
    &quot;codec delay&quot;: 0,
    &quot;discard decoder delay&quot;: false,
    &quot;encryption scheme&quot;: &quot;Unencrypted&quot;,
    &quot;has extra data&quot;: true,
    &quot;profile&quot;: &quot;unknown&quot;,
    &quot;sample format&quot;: &quot;Signed 16-bit&quot;,
    &quot;samples per second&quot;: 44100,
    &quot;seek preroll&quot;: &quot;0us&quot;
  }
]</code></pre></div><div class="codebox"><pre><code>&quot;Selected FFmpegAudioDecoder for audio decoding, config: codec: aac, profile: unknown, bytes_per_channel: 2, channel_layout: STEREO, channels: 2, samples_per_second: 44100, sample_format: Signed 16-bit, bytes_per_frame: 4, seek_preroll: 0us, codec_delay: 0, has extra data: true, encryption scheme: Unencrypted, discard decoder delay: false, target_output_channel_layout: STEREO, target_output_sample_format: Unknown sample format&quot;</code></pre></div><p>[ALSA] Brave is <span style="color: red"><strong>upsampling</strong></span> (44100 → 48000 Hz) this particular &quot;Hi-Res Music&quot; of RuTube.</p><div class="codebox"><pre><code>$ brave-browser-stable 2&gt;&amp;1 --audio-buffer-size=8192 rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf
Input:  48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  48000 --&gt; 48000 (J: 0.00%, T: None, W: Planar)
Ok.</code></pre></div><p>[apulse] Brave is not resampling (44100 → 44100 Hz) this particular &quot;Hi-Res Music&quot; of RuTube.</p><div class="codebox"><pre><code>$ apulse brave-browser-stable 2&gt;&amp;1 rutube.ru/video/b54c962301787eb1f2758ac8ba97f5bf
Input:  44100 Hz, 2 ch, &#039;s32_le&#039; (0xa): dummy = 0, period = 1764
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  44100 --&gt; 48000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.</code></pre></div><p><span style="color: green"><strong>YouTube: Best Audiophile Vocal 24 bit - Hi-Res Music 2025 - Audiophile Voices</strong></span></p><div class="codebox"><pre><code>brave://media-internals
kFrameTitle		&quot;YouTube&quot;
kFrameUrl		&quot;https://www.youtube.com/watch?v=uO6jfQ5tQHM&quot;</code></pre></div><div class="codebox"><pre><code>kAudioDecoderName	&quot;FFmpegAudioDecoder&quot;
kAudioTracks	
[
  {
    &quot;bytes per channel&quot;: 4,
    &quot;bytes per frame&quot;: 8,
    &quot;channel layout&quot;: &quot;STEREO&quot;,
    &quot;channels&quot;: 2,
    &quot;codec&quot;: &quot;opus&quot;,
    &quot;codec delay&quot;: 312,
    &quot;discard decoder delay&quot;: true,
    &quot;encryption scheme&quot;: &quot;Unencrypted&quot;,
    &quot;has extra data&quot;: true,
    &quot;profile&quot;: &quot;unknown&quot;,
    &quot;sample format&quot;: &quot;Float 32-bit&quot;,
    &quot;samples per second&quot;: 48000,
    &quot;seek preroll&quot;: &quot;80000us&quot;
  }
]</code></pre></div><div class="codebox"><pre><code>&quot;Selected FFmpegAudioDecoder for audio decoding, config: codec: opus, profile: unknown, bytes_per_channel: 4, channel_layout: STEREO, channels: 2, samples_per_second: 48000, sample_format: Float 32-bit, bytes_per_frame: 8, seek_preroll: 80000us, codec_delay: 312, has extra data: true, encryption scheme: Unencrypted, discard decoder delay: true, target_output_channel_layout: STEREO, target_output_sample_format: Unknown sample format&quot;</code></pre></div><p>[ALSA] Brave is not resampling (48000 → 48000 Hz) &quot;Hi-Res Music&quot; of YouTube.</p><div class="codebox"><pre><code>$ brave-browser-stable 2&gt;&amp;1 --audio-buffer-size=8192 youtube.com/watch?v=uO6jfQ5tQHM
Input:  48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  48000 --&gt; 48000 (J: 0.00%, T: None, W: Planar)
Ok.</code></pre></div><p>[apulse] Brave is <span style="color: red"><strong>downsampling</strong></span> (48000 → 44100 Hz) &quot;Hi-Res Music&quot; of YouTube.</p><div class="codebox"><pre><code>$ apulse brave-browser-stable 2&gt;&amp;1 youtube.com/watch?v=uO6jfQ5tQHM
Input:  44100 Hz, 2 ch, &#039;s32_le&#039; (0xa): dummy = 0, period = 1764
Output: 48000 Hz, 2 ch, &#039;s16_le&#039; (0x2): dummy = 0, period = 1920
Rates:  44100 --&gt; 48000 (J: 0.00%, T: FFT, W: Vorbis)
Ok.</code></pre></div><div class="codebox"><pre><code>brave://media-internals
kFrameUrl		&quot;https://www.youtube.com/watch?v=uO6jfQ5tQHM&quot;
kFrameTitle		&quot;Best Audiophile Vocal 24 bit - Hi-Res Music 2025 - Audiophile Voices - YouTube&quot;</code></pre></div><div class="codebox"><pre><code>kAudioTracks	
[
  {
    &quot;bytes per channel&quot;: 4,
    &quot;bytes per frame&quot;: 8,
    &quot;channel layout&quot;: &quot;STEREO&quot;,
    &quot;channels&quot;: 2,
    &quot;codec&quot;: &quot;opus&quot;,
    &quot;codec delay&quot;: 312,
    &quot;discard decoder delay&quot;: true,
    &quot;encryption scheme&quot;: &quot;Unencrypted&quot;,
    &quot;has extra data&quot;: true,
    &quot;profile&quot;: &quot;unknown&quot;,
    &quot;sample format&quot;: &quot;Float 32-bit&quot;,
    &quot;samples per second&quot;: 48000,
    &quot;seek preroll&quot;: &quot;80000us&quot;
  }
]</code></pre></div><div class="codebox"><pre><code>&quot;Selected FFmpegAudioDecoder for audio decoding, config: codec: opus, profile: unknown, bytes_per_channel: 4, channel_layout: STEREO, channels: 2, samples_per_second: 48000, sample_format: Float 32-bit, bytes_per_frame: 8, seek_preroll: 80000us, codec_delay: 312, has extra data: true, encryption scheme: Unencrypted, discard decoder delay: true, target_output_channel_layout: STEREO, target_output_sample_format: Unknown sample format&quot;</code></pre></div><p><strong>CONCLUSION:</strong> Chromium developers are certainly deaf.</p>]]></description>
			<author><![CDATA[dummy@example.com (igorzwx)]]></author>
			<pubDate>Thu, 23 Oct 2025 00:02:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58748#p58748</guid>
		</item>
	</channel>
</rss>
