apache – mpg123 segmentation fault on Raspberry Pi

I am attempting to play music on an online browser utilizing mpg123. I exploit Apache as the online server on a Raspberry Pi ZH with no audio units on it as I do not want any sound to come back out of the Raspberry however to play the sound within the laptop that connects to the online my Raspberry Pi is serving.

When accessing to the online web page, a CGI-script executes on the server and runs mpg123 ../music/audio1.mp3 however no music sounds.

Trying on the logs I can see the next output from mpg123:

Excessive Efficiency MPEG 1.0/2.0/2.5 Audio Participant for Layers 1, 2 and three
    model 1.26.4; written and copyright by Michael Hipp and others
    free software program (LGPL) with none guarantee however with finest needs
Decoder: generic
Making an attempt output module: alsa, machine: <nil>
Making an attempt output module: oss, machine: <nil>
Making an attempt output module: jack, machine: <nil>
Can not hook up with server socket err = No such file or listing
Can not hook up with server request channel
jack server is just not working or can't be began
JackShmReadWritePtr::~JackShmReadWritePtr - Init not carried out for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not carried out for -1, skipping unlock
Making an attempt output module: portaudio, machine: <nil>
Segmentation fault

As you may see, this system fails with a Segmentation fault error.

Debugging the execution of mpg123 music/audio1.mp3 I noticed it fails right here:

openat(AT_FDCWD, "/dev/snd/pcmC0D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 ENODEV (No such machine)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0xb67eacf0} ---
+++ killed by SIGSEGV +++
Segmentation fault 

Any clue on how can I make this work and play music by the browser?



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *