moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.49k stars 324 forks source link

no audio + no video stream on client (RPi2 osmc) (host #776

Open klen-ghost opened 4 years ago

klen-ghost commented 4 years ago

Please provide the following info.

NVidia Geforce Experience version: 3.11.0.73 (also on 3.20) nvidia display driver 411.63 Moonlight Embedded version: latest (how do i check to be sure?) Moonlight Embedded source: repository/included in distribution/compiled from source/... deb http://archive.itimmer.nl/raspbian/moonlight stretch main

Moonlight Embedded running on: Raspberry Pi2 B

Moonlight Embedded running on distribution: osmc (2019-11-1 kernel Linux 5.19.55-6) Verbose output -verbose of Moonlight Embedded: osmc@osmc:~$ moonlight pair 192.168.2.10 Connect to 192.168.2.10... Please enter the following PIN on the target PC: 1470 Succesfully paired osmc@osmc:~$ moonlight stream 192.168.2.10 Connect to 192.168.2.10... No mapping available for Gaming Keyboard G110 Consumer Control (030000006d0400002ac2000010010000) on /dev/input/event3 Initializing platform...done Resolving host name...done Starting RTSP handshake...done Initializing control stream...done Initializing video stream...done Initializing audio stream...done Initializing input stream...done Starting control stream...done Starting video stream...done Starting audio stream...done Starting input stream...done Returning RTP packet queued for too long Received OOS audio data (expected 11158, but got 11159)

What is the expected result? functional moonlight with audio & video What happens instead of that? blackscreens, host pc does start steam big picture

yukatan commented 4 years ago

I don't know if this can help you, but run "systemctl stop mediacenter" before moonlight

ferdef commented 2 years ago

Same happens to me as well. When Steam starts, sound is played through the RPi, but it cuts and no video

cgutman commented 2 years ago

I’m going to guess that’s because it’s using Full KMS mode which doesn’t support OMX/MMAL overlays.

Can you post your /boot/config.txt?

jul13579 commented 2 years ago

@cgutman I think my problem is related, although I'm using a Pi3. I'm also not getting any video or audio (possibly since the last OSMC mayor update?), however the connection can be established (host PC is launching e.g. Steam) and controller inputs are forwarded. My /boot/config.txt contents are:

[pi4]
dtoverlay=rpivid-v4l2
arm_64bit=1
kernel=kernel.img

[all]
dtoverlay=vc4-kms-v3d,cma-512
disable_overscan=1
start_x=1
disable_splash=1
disable_fw_kms_setup=1
include config-user.txt

I'm not sure what these overlays are about, but do you see anything wrong with my config?

PS: After the latest mayor OSMC update I had to change some values in /boot/config-user.txt to get sound output via 3.5mm jack working again (I use it for e.g. raspotify). I followed these instructions. But since Kodi video & audio is still working fine over HDMI, I guess this is unrelated?

cgutman commented 2 years ago

Yep it’s Full KMS as I expected.

Try changing dtoverlay=vc4-kms-v3d,cma-512 to dtoverlay=vc4-fkms-v3d,cma-512. It may cause issues with OSMC if they need something that only Full KMS provides.

jul13579 commented 2 years ago

Thanks @cgutman, that solved my problem! I'm curious if this also is the problem of @klen-ghost :thinking:

Is there any way to configure this using config-user.txt or is it required to set this in config.txt? Just asking because config.txt contains some words of warning, because the changes can be overwritten via OSMC updates. Maybe this detail is also worth noting in the Wiki? Anyway, thanks for the quick help!