FD- / RPiPlay

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

Problem with start #39

Closed Simplyha closed 4 years ago

Simplyha commented 5 years ago

Hello, I've an RPI 4 with 2GB RAM I've done all that, which was written in the README but after when I start with "./rpiplay -n RPI" Only this comes: Initialized server socket(s) WARNING The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/blog/projects/avahi-compat.html

Thank you for your support

FD- commented 5 years ago

I don't see a problem here. Seems to work fine so far. Did you try to connect to it?

Simplyha commented 5 years ago

Hello it was first a problem with the phone and jet I can connect put an other Problem: I connect the RPI4 with HDMI and try to load a video but It is only a blackscreen. And console is this:

Accepted IPv4 client on socket 18 Local: 192.168.1.177 Remote: 192.168.1.149 Accepted IPv4 client on socket 20 Local: 192.168.1.177 Remote: 192.168.1.149 raop_rtp starting audio raop_ntp receive timeout

Simplyha commented 5 years ago

Update: Jet I'm also get metadata. Anzeige

FD- commented 5 years ago

How are you starting the connection on the sender?

Simplyha commented 5 years ago

Thank you for your Answer now I've a Picture. But I can't play a Video. Whether youtube or a browser video. And also the audio does not work with "-a hdmi" or "-a analog"

tuxx1112 commented 5 years ago

I'm having the same issue. Does this have something to do with the RPI 4? I'm running on an RPI 4 - 4GB. I can connect but can't seem to get a Youtube video or Spotify song to play.

FD- commented 5 years ago

Does playing music through the Music app work? Are you aware of #2 and #7?

tuxx1112 commented 5 years ago

Does playing music through the Music app work? Are you aware of #2 and #7?

I have checked the issues and have been able to connect Airplay through the dedicated button. The Screen Mirroring works just fine - I can even watch recorded videos from my phone - but the audio is not coming along. The output states "raop_rtp starting audio" every time I open a video. The same issue when playing music through the Music app: "raop_rtp starting audio" is printed, the phone thinks it is casting to the Pi, but audio is not coming along. I tried it with and without the '-a hdmi' parameter to force audio through HDMI.

I attached a debug log (first Music app, then recorded video). logfile.txt

FD- commented 5 years ago

Does audio work if you use low-latency mode (the -l flag)?

tuxx1112 commented 5 years ago

I just tried it without result. I got the same output so didn't upload a new logfile.

Simplyha commented 5 years ago

I have also tested with the an analog cable but it is the same problem. An other hint is that: I got metadata if I connect with the "white circle" but no audio and no Picture. And if I connect with the "green circle" I don't get metadata and no audio but a picture. image

FD- commented 5 years ago

The white circle is for audio only AirPlay, and this protocol is not supported by RPiPlay (use Shairport-sync or Shairplay for that), so it's not supposed to work. The green circle is for AirPlay mirroring, and this is supposed to work in that the iPhone's screen and audio output should be played on the Raspberry Pi.

Does the hello_audio sample (source should be shipped with Raspbian at /opt/vc/src/hello_pi/hello_audio) produce any sound output on your Pi 4?

Simplyha commented 4 years ago

I've change the HDMI Port and then the audio works but Youtube and Google Videos doesn't work.

FD- commented 4 years ago

Could you detail how exactly you changed the HDMI port? Do audio and video output on different HDMI ports?

fosple commented 4 years ago

@FD- Same issue here.

The rPi4 has 2 HDMI ports (see https://images.vogel.de/vogelonline/bdb/1580200/1580232/39.jpg ). If I use the left port (the one next to the USB-C port) I don't get video -only a black screen. If I use the right port (the one next to the audio-jack) I do get video but no audio.

FD- commented 4 years ago

@fosple Do you get audio on the port that has no video? IIRC Pi 4 only has audio output on one of the 2 HDMI ports.

fosple commented 4 years ago

@FD- Currently I don't have my rPi4 with me, so I can't check. Will let you know once I've access to it again.

SaltwaterC commented 4 years ago

@fosple by default, RPi 4 only outputs sound on HDMI0. You need to manually enable sound output for HDMI1, albeit that's not ideal. More details: raspberrypi/firmware#1243

fosple commented 4 years ago

@SaltwaterC Thanks a lot!

pallas commented 4 years ago

This is resolved?

dubaleeiro commented 3 years ago

Hello verybody, same issue here - video streaming through HDMI works pretty well but no sound:

pi@octopi:~ $ rpiplay -n MyRpiPlay -a hdmi -ar gstreamer -l Using low-latency mode Initialized server socket(s) *** WARNING *** The program 'rpiplay' uses the Apple Bonjour compatibility layer of Avahi. *** WARNING *** Please fix your application to use the native API of Avahi! *** WARNING *** For more information see <http://0pointer.de/blog/projects/avahi-compat.html> Accepted IPv4 client on socket 19 Local: 192.168.0.213 Remote: 192.168.0.164 Accepted IPv4 client on socket 21 Local: 192.168.0.213 Remote: 192.168.0.164 raop_rtp_mirror starting mirroring raop_ntp receive timeout raop_ntp receive timeout raop_ntp receive timeout raop_ntp receive timeout raop_rtp starting audio I am using a Raspberry Pi 3 B+. Has anyone a hint?