When I put a UE5 project packaged for Linux on a Linux container and use PixelStreaming, I can’t hear the audio.
How can I hear the voice?
【Operating environment】
UE: 5.0.3
Container environment: on EKS on AWS
Signaling Web Server: ghcr.io/epicgames/pixel-streaming-signalling-server:5.0.3
[Audio playback method in UE project]
Use Plugin “Bink Media”
[PalseAudio related]
- The files related to PalseAudio in the container running the UE1 project were as follows. The validity of this content has not been confirmed.
/etc/pulse/default.pa
#!/usr/bin/pulseaudio -nF
.fail
# Load the native PulseAudio protocol implementation for communication over Unix sockets and disable authentication
load-module module-native-protocol-unix auth-anonymous=1
# Create a null sink to ensure the Unreal Engine has somewhere to send its audio output
load-module module-always-sink
etc/pulse/daemon.conf
default-sample-channels = 6
default-sample-format = float32le
default-sample-rate = 48000
high-priority = no
realtime-scheduling = no
- The following is executed in the DockerFile for the UE project.
RUN pulseaudio --start
[Confirmed]
- Before Linux package, executed on Unreal Editor ⇒ Sound played
- After Windows package, run Local ⇒ Audio played
[Reference information]
https://udn.unrealengine.com/s/question/0D54z000082TL2zCAG/sound-is-not-streamed-when-running-pixel-streaming-on-linux
[pulsaudio settings]
I got the pulseaudio settings with the “pacmd list-sink-inputs” command, so I’ll share them.
1 sink input(s) available.
index: 2
driver: <protocol-native.c>
flags:
state: RUNNING
sink: 0 <auto_null>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB, front-center: 65536 / 100% / 0.00 dB, lfe: 65536 / 100% / 0.00 dB, rear-left: 65536 / 100% / 0.00 dB, rear-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 32.00 ms
requested latency: 10.67 ms
sample spec: float32le 6ch 48000Hz
channel map: front-left,front-right,front-center,lfe,rear-left,rear-right
Surround 5.1
resample method: copy
module: 0
client: 3 <MT_Shop_STC>
properties:
media.name = "Audio Stream"
application.name = "MT_Shop_STC"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "32"
application.process.id = "12"
application.process.user = "ue4"
application.process.host = "pixel-streaming-deployment-pub-1-1-5994fbb884-q7t7s"
application.process.binary = "MT_Shop_STC"
application.language = "C"
application.process.machine_id = "pixel-streaming-deployment-pub-1-1-5994fbb884-q7t7s"
We apologize for the inconvenience, but please reply.