1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ArchLinuxでYoutubeの動画が再生できない問題

1
Last updated at Posted at 2026-01-01

ArchlinuxでYoutubeの動画が再生できなくなりました

Archlinuxを普段遣いしていると、Youtubeで動画が見られないのはかなり困ります。
現象としては、再生する動画をクリックして再生画面まではブラウザで表示できるのですが、そこで音が出ない、動画が再生されない(永遠にローディングしている)といったようなものでした。
とりあえず解決したので備忘録として記録しておきます。

Pulse-audioが悪さをしていたみたいです

便利なこちらのコマンドを使って原因を調べていたところ、pulse-audioのエラーが複数表示されていました。(ログは取り忘れました。。。)

journalctl -ex

あと調べたところ、今のArchlinux?GUNOME?の標準のオーディオパッケージはpipewireらしいので、とりあえずpulse-audioからpipewireに切り替えを行うことにしました。

Pulse-audioからPipewireに切り替え

PulseAudio関連のパッケージを強制削除。
依存関係上、通常の削除ができなかったので-Rddで強制削除しました。強制削除なので取り扱い注意です。

sudo pacman -Rdd pulseaudio pulseaudio-bluetooth

PipeWireパッケージのインストール。
これにより、PulseAudio互換のPipeWireモジュールがインストールされ、依存関係も自動的に置き換えられます。

sudo pacman -S pipewire-pulse

PulseAudio関連サービスを無効化し、PipeWire関連サービスを有効化します。

# PulseAudio関連サービスを停止
systemctl --user stop pulseaudio.service pulseaudio.socket
systemctl --user disable pulseaudio.service pulseaudio.socket

# PipeWire関連サービスを有効化
systemctl --user enable pipewire.service pipewire-pulse.service
systemctl --user start pipewire.service pipewire-pulse.service

音声システムが正しくPipeWireに切り替わったかどうかを確認します。
”Server Name: PulseAudio (on PipeWire 1.4.9)”と表示されましたが、PipeWireがPulseAudioをエミュレートしており、PipeWireの環境が正しく動作できてはいるみたいです。

pactl info

とりあえずこれでYoutubeの動画は再生できました。

参考ページ

pulse-audioとpipewireの仕組みについてはこちら
https://medium.com/@YihuiXiong/record-play-audio-on-linux-8f59adf93710

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?