RTSP with libvlc trying to open audio outputs

Forum for questions and support relating to the 1.30.x releases only.
Locked
Sidicas
Posts: 4
Joined: Mon Dec 31, 2012 7:31 am

RTSP with libvlc trying to open audio outputs

Post by Sidicas »

I'm having a problem with RTSP streams with the libvlc selected.
No problems at all using ffmpeg.
When I select libvlc, I start getting hundreds of system bells in regards to error messages from the libvlc library.
The errors are
"PulseAudio server connection failure: Connection refused"
repeated over and over again. This floods any console or command prompt windows I open with the message.

This seems to be coming from "zmc" process running as "www-data" using libvlc which is connecting to pulseaudio process running as currently logged in user.

So then I added "www-data" to audio and video groups on the system and now I can see and hear the audio from all my cameras, they are recording with libvlc and everything is fine. But they are all outputting their camera audio to the system speakers at the same time.

I've tried disabling the audio in the camera configuration but libvlc still tries to connect to pulseaudio and if it's not available the libvlc and zmc both crash.

Code: Select all

Apr 19 18:33:42 Server zmc_m3[5117]: ERR [Backtrace 0: /usr/bin/zmc(_Z14zm_die_handleriP9siginfo_tPv+0x78) [0x55e48e36a148]]
Apr 19 18:33:42 Server zmc_m3[5117]: ERR [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0x110e0) [0x7f1227b2c0e0]]
Apr 19 18:33:42 Server zmc_m3[5117]: ERR [Backtrace 2: /usr/bin/zmc(_ZN6SocketD1Ev+0x2b) [0x55e48e35ad5b]]
Apr 19 18:33:42 Server zmc_m3[5117]: ERR [Backtrace 3: /usr/lib/x86_64-linux-gnu/libgroupsock.so.8(_ZN9GroupsockD0Ev+0x9) [0x7f11f85e3d79]]
Apr 19 18:33:42 Server zmc_m3[5117]: ERR [Backtrace 4: /usr/lib/x86_64-linux-gnu/libliveMedia.so.58(_ZN15MediaSubsession10deInitiateEv+0x52) [0x7f11f88adf22]]
Apr 19 18:33:42 Server zmc_m3[5117]: ERR [Backtrace 5: /usr/lib/x86_64-linux-gnu/libliveMedia.so.58(_ZN15MediaSubsessionD1Ev+0x17) [0x7f11f88adf77]]
Apr 19 18:33:42 Server zmc_m3[5117]: ERR [Backtrace 6: /usr/lib/x86_64-linux-gnu/libliveMedia.so.58(_ZN15MediaSubsessionD0Ev+0x9) [0x7f11f88ae059]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 7: /usr/lib/x86_64-linux-gnu/libliveMedia.so.58(_ZN12MediaSessionD1Ev+0x21) [0x7f11f88ad131]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 8: /usr/lib/x86_64-linux-gnu/libliveMedia.so.58(_ZN12MediaSessionD0Ev+0x9) [0x7f11f88ad1c9]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 9: /usr/lib/x86_64-linux-gnu/vlc/plugins/access/liblive555_plugin.so(+0x303a) [0x7f11f8b1603a]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 10: /usr/lib/x86_64-linux-gnu/libvlccore.so.9(vlc_module_unload+0x9e) [0x7f1218953e8e]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 11: /usr/lib/x86_64-linux-gnu/libvlccore.so.9(demux_Delete+0xd) [0x7f121897978d]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 12: /usr/lib/x86_64-linux-gnu/libvlccore.so.9(+0x66689) [0x7f1218989689]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 13: /usr/lib/x86_64-linux-gnu/libvlccore.so.9(+0x668c7) [0x7f12189898c7]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 14: /usr/lib/x86_64-linux-gnu/libvlccore.so.9(+0x6e417) [0x7f1218991417]]
Apr 19 18:33:43 Server zmc_m3[5117]: ERR [Backtrace 15: /lib/x86_64-linux-gnu/libpthread.so.0(+0x74a4) [0x7f1227b224a4]]

Any way to tell the libvlc library to not use audio?

I found the below which seems to be helpful
Specifically, it is useful for playing from camera, you don’t need sound and want to make an output for streaming, such as RTSP…you will need to add acodec=none to the transcode module.

$ vlc v4l2:///dev/video0 --sout ‘#transcode{acodec=none,vcodec=h264}:rtp{mux=ts,sdp=rtsp://IP:PORT/cam.sdp}’
Any ideas on how to add "acodec=none" to zm configuration for libvlc?
Locked