Can't run query: Lost connection to MySQL server during query - Only with libvlc

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
srb
Posts: 5
Joined: Sun Jul 04, 2021 8:03 am

Can't run query: Lost connection to MySQL server during query - Only with libvlc

Post by srb »

Hi,

I am using my camera through libvlc. I see that it starts capturing but then it errors out with `Can't run query: Lost connection to MySQL server during query` and stops.

Logs here:
07/04/21 03:04:23.517246 zmc_m8[1147542].INF-zmc.cpp/223 [Starting Capture version 1.34.26]
07/04/21 03:04:25.089744 zmc_m8[1147542].INF-zm_libvlc_camera.cpp/160 [Priming capture from http://admin:@172.20.14.36:80/livestrea ... audio_data]
07/04/21 03:04:25.498713 zmc_m8[1147542].WAR-zm_libvlc_camera.cpp/271 [PulseAudio server connection failure: Connection refused]
07/04/21 03:04:25.769602 zmc_m8[1147550].INF-zm_libvlc_camera.cpp/271 [Password in a URI is DEPRECATED]
07/04/21 03:04:26.237252 zmc_m8[1147550].INF-zm_libvlc_camera.cpp/271 [this does not look like an MPEG PS stream, continuing anyway]
07/04/21 03:04:26.429009 zmc_m8[1147550].INF-zm_libvlc_camera.cpp/271 [garbage at input from 509, trying to resync...]
07/04/21 03:04:26.840397 zmc_m8[1147542].ERR-zmc.cpp/279 [Can't run query: Lost connection to MySQL server during query]

If I change the source type to ffmpeg, the system starts capturing. The reason I am trying to use libvlc is, because sometimes my cameras go into a mode that is not compatible with ffmpeg. Ffmpeg starts showing `Invalid data found when processing input` message. ffprobe shows same message when my cameras go into that mode. However, if I open the stream on vlc media player, it works flawlessly. Therefore I am assuming that if I will be able to use libvlc in zoneminder, it will provide a reliable capturing.

I have tried setting max_allowed_packet = 64M in my.cnf for mysql and restarted, it didn't help. Please suggest if I am missing anything.

Thanks in advance!
Post Reply