FD- / RPiPlay

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

No audio! #88

Closed obaidsamadian closed 4 years ago

obaidsamadian commented 4 years ago

I have two routers (Huawei and MikroTik). when I connect the Pi to the Huawei Router and I mirror the screen audio works fine, but when I connect the Pi to the MikroTik router the audio doesn’t work.

Lineaire commented 4 years ago

I have the same problem as you, on my mikrotik it does not work. probably a wearing problem.

obaidsamadian commented 4 years ago

I've installed and configured multicast package on my mikrotik. I didn't work.

I have the same problem as you, on my mikrotik it does not work. probably a wearing problem.

obaidsamadian commented 4 years ago

I have the same problem as you, on my mikrotik it does not work. probably a wearing problem.

I found a solution! I've made these changes on my Pi: 1- Increase GPU memory 2- Change display resolution to 720p 50hz 3- add latency flag ( -l ) to rpiplay

g-philipp commented 4 years ago

Ive got the same problem and Im getting the following error: aacDecoder_DecodeFrame error : 0x400c

How much did you increase the GPU memory.

Btw Im using an usb dac and I changed the audio device in this config: "nano /usr/share/alsa/alsa.conf" (Yes normally the audio is working fine, but not with AirPlay or screenmirroring)

FD- commented 4 years ago

The decode error usually means you're using RPiPlay as an audio-only Airplay receiver, which it doesn't support. It only supports screen mirroring. See #2.

obaidsamadian commented 4 years ago

Ive got the same problem and Im getting the following error: aacDecoder_DecodeFrame error : 0x400c

How much did you increase the GPU memory.

Btw Im using an usb dac and I changed the audio device in this config: "nano /usr/share/alsa/alsa.conf" (Yes normally the audio is working fine, but not with AirPlay or screenmirroring)

400

FD- commented 4 years ago

@g-philipp Also, I missed you're using a USB DAC. These are not supported by RPiPlay, because the hardware PCM decoder only supports HDMI and analog audio.

brechtknecht commented 2 years ago

I figured out how to get audio working with my setup. I noticed that when I was running the rpiplay server with -ar gstreamer an error occured.

The fix was to install a missing package, answer from here:

sudo apt-get install gstreamer1.0-alsa

Now my audio is working, both hdmi and analog.