command line audio streaming
Posted: 19 Nov 2019 08:10
Hi,
I've an embedded board, compiled with the Yocto Environment. I'd like to stream out the audio, preferable rtsp or http.
I created an asounrc file which looks like this:
And here is the tesing script:
I got these errors when I run the test script
I suppose there was an error when Yocto comiled the vlc. I'm very new to the yocto environment, so I cannot determine exactly what should be done. I also tried different bb recipies, without success. COuld you please help me out?
I've an embedded board, compiled with the Yocto Environment. I'd like to stream out the audio, preferable rtsp or http.
I created an asounrc file which looks like this:
Code: Select all
pcm.mixin {
type dsnoop
ipc_key 5978293
ipc_key_add_uid yes
slave {
pcm "hw:0,0"
channels 2
period_size 1024
buffer_size 4096
rate 44100
periods 0
period_time 0
}
bindings {
0 0
0 1
}
}
Code: Select all
#!/bin/bash
ALSA_CONFIG_ROUTE="/home/root/.asoundrc"
ALSA_DEVICE="hw:0,0"
ALSA_DSNOOP_PCM_NAME="mixin"
T="#transcode{vcodec=none,acodec=mpga,ab=192,channels=1,samplerate=16000,scodec=none} :rtp{proto=udp,dst=127.0.0.1,sdp=rtsp://:4444/live.sdp}"
cvlc -vvv alsa://dsnoop --sout "$T"
Code: Select all
[000978a8] core xml reader error: XML reader not found
[000988e8] core interface error: no suitable interface module
[000230d0] core libvlc error: interface "globalhotkeys,none" initialization failed
[000988e8] core interface error: no suitable interface module
[000230d0] core libvlc error: interface "dbus,none" initialization failed
[000988e8] dbus interface error: Failed to connect to the D-Bus session daemon: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
[b66027b8] core stream out error: option avcodec-hw does not exist
[b66027b8] stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc:mpga). Take a look few lines earlier to see possible reason.
[b60005a8] core generic debug: removing module "araw"
[b66027b8] stream_out_transcode stream out error: cannot create audio chain
[b6627e18] core decoder error: cannot create packetizer output (s32l)
[b66027b8] core stream out error: option avcodec-hw does not exist