FD- / RPiPlay

An open-source AirPlay mirroring server for the Raspberry Pi. Supports iOS 9 and up.
GNU General Public License v3.0
4.94k stars 354 forks source link

No audio/sound through HDMI #247

Closed majuss closed 2 years ago

majuss commented 3 years ago

Latest raspbian on Pi 4/2 GB

So I started RPIplay in the following manner: rpiplay -a hdmi but I can't get any sounds to work. The output on my Mac is set correctly, a alsa test command is playing back audio on my TV.

The logs show:

raop_rtp starting audio
RAOP initialized success
MiracleXYZ commented 3 years ago

I came across this issue yesterday, but managed to fix the audio thanks to this reply.

Just follow the installation steps for Ubuntu 18.04/20.04 and install gstreamer1.0-tools and gstreamer1.0-pulseaudio:

sudo apt-get install cmake libavahi-compat-libdnssd-dev libplist-dev libssl-dev \
    libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav \
    gstreamer1.0-vaapi gstreamer1.0-plugins-bad
sudo apt-get install gstreamer1.0-tools gstreamer1.0-pulseaudio

Then rebuild and install the binary:

mkdir build
cd build
cmake ..
make
sudo make install

I ran the following command (using -ar gstreamer) and audio worked like a charm.

rpiplay -n MyRpiPlay -a hdmi -ar gstreamer -l
RussQuan commented 3 years ago

我昨天遇到了這個問題,但由於此回复,我設法修復了音頻。

只需按照 Ubuntu 18.04/20.04 的安裝步驟進行安裝gstreamer1.0-toolsgstreamer1.0-pulseaudio

sudo apt-get install cmake libavahi-compat-libdnssd-dev libplist-dev libssl-dev \
    libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav \
    gstreamer1.0-vaapi gstreamer1.0-plugins-bad
sudo apt-get install gstreamer1.0-tools gstreamer1.0-pulseaudio

然後重建並安裝二進製文件:

mkdir build
cd build
cmake ..
make
sudo make install

我運行了以下命令(使用-ar gstreamer),音頻效果很好。

rpiplay -n MyRpiPlay -a hdmi -ar gstreamer -l

This works sooooo good !! Thank you!