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

Starting audio stream...Invalid audio configuration / Audio stream start failed: -1 #787

Closed sascha777 closed 4 years ago

sascha777 commented 4 years ago

Hi everyone,

I just moved from OSMC / Luna project to a new Raspbian image because the new GFE version wasn't supported anymore.

When starting moonlight on the new system via moonlight stream 192.168.178.25 -1080 -fps 60 -app notepad I get an error for the audio stream

Starting audio stream...Invalid audio configuration: 197322
Audio stream start failed: -1

I tried different options with -surround -audio hdmi and even -localaudio but still get the same error.

My system config is: _NVidia Geforce Experience version: GFE 3.20.3.63 Moonlight Embedded version: 2.4.10 Moonlight Embedded source: tried both repository and compilation from source as described in Wiki Moonlight Embedded running on: Raspberry Pi 3b+ Moonlight Embedded running on distribution: Raspbian

Verbose output -verbose of Moonlight Embedded:

Moonlight Embedded 2.4.10 (PI;MMAL;ALSA;PULSE;EMBEDDED)
Connect to 192.168.178.25...
NVIDIA GeForce GTX 750 Ti, GFE 3.20.3.63 (gs_04_22_28196077, 7.1.422.0)
Platform Raspberry Pi (Broadcom)
Loading mappingfile /usr/share/moonlight/gamecontrollerdb.txt
Detected Microsoft X-Box 360 pad (030000005e0400008e02000014010000) on /dev/input/event1 as X360 Controller
Stream 1920 x 1080, 60 fps, 20000 kbps
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...Invalid audio configuration: 197322
Audio stream start failed: -1
Stopping video stream...ENet wait interrupted
Control stream connection failed: -1
done
Stopping control stream...done
Cleaning up input stream...done
Cleaning up audio stream...done
Cleaning up video stream...done
Cleaning up control stream...done
Cleaning up platform...done

What is the expected result? Setting up audio stream connection successful and start game streaming

What happens instead of that?

Starting audio stream...Invalid audio configuration: 197322
Audio stream start failed: -1

Any ideas of what I am doing wrong?

Thanks for your help!

sascha777 commented 4 years ago

I thing I figuered it out myself already. I set up a minimum raspbian image and when configuring the system via raspi-config I also got an audio error there was an error running option a4 audio Uncommenting hdmi_drive=2 in /boot/config.txt solved this issue and also the audio error with moonlight. Will try soon with desktop again, but I think that this was the issue. Will report back if problem still occurs.