command line audio streaming

About encoding, codec settings, muxers and filter usage
kerzol81
New Cone
New Cone
Posts: 1
Joined: 19 Nov 2019 07:58

command line audio streaming

Postby kerzol81 » 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:

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 } }
And here is the tesing script:

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"
I got these errors when I run the test script

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
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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: command line audio streaming

Postby Rémi Denis-Courmont » 19 Nov 2019 19:19

Ostensibly no MPEG Audio encoder in your VLC installation.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 25 guests