Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with start #39

Closed
Simplyha opened this issue Nov 12, 2019 · 21 comments
Closed

Problem with start #39

Simplyha opened this issue Nov 12, 2019 · 21 comments

Comments

@Simplyha
Copy link

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-
Copy link
Owner

FD- commented Nov 12, 2019

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

@Simplyha
Copy link
Author

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
Copy link
Author

Update:
Jet I'm also get metadata.
Anzeige

@FD-
Copy link
Owner

FD- commented Nov 12, 2019

How are you starting the connection on the sender?

@Simplyha
Copy link
Author

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
Copy link

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-
Copy link
Owner

FD- commented Nov 15, 2019

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

@tuxx1112
Copy link

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-
Copy link
Owner

FD- commented Nov 15, 2019

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

@tuxx1112
Copy link

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

@Simplyha
Copy link
Author

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-
Copy link
Owner

FD- commented Nov 18, 2019

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
Copy link
Author

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

@FD-
Copy link
Owner

FD- commented Nov 24, 2019

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

@fosple
Copy link

fosple commented Dec 22, 2019

@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-
Copy link
Owner

FD- commented Dec 22, 2019

@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
Copy link

fosple commented Dec 22, 2019

@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
Copy link

@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
Copy link

fosple commented Feb 14, 2020

@SaltwaterC Thanks a lot!

@pallas
Copy link
Collaborator

pallas commented Oct 6, 2020

This is resolved?

@pallas pallas closed this as completed Oct 6, 2020
@dubaleeiro
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants