zmc crashing and ffmpeg compile problems
Posted: Tue Jun 05, 2007 8:31 pm
I managed to fubar my FC4 machine slightly the other day, and to cut a long story short ended up upgrading over the top of FC4 with the Fedora 7 install disc I burnt the other day, in order to get it working again.
It's now more or less happy again, and up to date with all of the released f7 packages.
Unfortunately, this seems to have upset zm slightly - none of my monitors are currently working (source column all red, and broken image icons where the images should be).
I had to build xawtv from scratch as no rpm for f7 exists yet, but having done that I can see video from the analogue cameras just fine, so that's not the problem (and the 2 network cams don't work either).
Here's a snippet from /var/log/messages:
Jun 5 20:44:45 blackeye zmpkg[3440]: INF [Command: start]
Jun 5 20:44:47 blackeye zmdc[3459]: INF [Server starting at 07/06/05 20:44:47]
Jun 5 20:44:50 blackeye zmdc[3483]: INF ['zmc -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:44:50, pid = 3483]
Jun 5 20:44:50 blackeye zmc_m6[3483]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:44:50 blackeye zmdc[3459]: INF [Starting pending process, zmc -m 6]
Jun 5 20:44:50 blackeye zmdc[3487]: INF ['zmc -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:44:50, pid = 3487]
Jun 5 20:44:50 blackeye zmc_m6[3487]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:44:50 blackeye zmdc[3490]: INF ['zma -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:44:50, pid = 3490]
Jun 5 20:44:50 blackeye zma_m6[3490]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:44:50 blackeye zmdc[3459]: INF [Starting pending process, zma -m 6]
Jun 5 20:44:50 blackeye zmdc[3495]: INF ['zma -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:44:50, pid = 3495]
Jun 5 20:44:51 blackeye zma_m6[3495]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:44:51 blackeye zmdc[3497]: INF ['zmfilter.pl' started at 07/06/05 20:44:51]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zmfilter.pl' starting at 07/06/05 20:44:51, pid = 3497]
Jun 5 20:44:51 blackeye zmdc[3502]: INF ['zmaudit.pl -c' started at 07/06/05 20:44:51]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zmaudit.pl -c' starting at 07/06/05 20:44:51, pid = 3502]
Jun 5 20:44:51 blackeye zmfilter[3497]: INF [Scanning for events]
Jun 5 20:44:51 blackeye zmdc[3509]: INF ['zmwatch.pl' started at 07/06/05 20:44:51]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zmwatch.pl' starting at 07/06/05 20:44:51, pid = 3509]
Jun 5 20:44:52 blackeye zmwatch[3509]: INF [Watchdog starting]
Jun 5 20:44:52 blackeye zmwatch[3509]: INF [Watchdog pausing for 30 seconds]
Jun 5 20:44:52 blackeye zmdc[3514]: INF ['zmupdate.pl -c' started at 07/06/05 20:44:52]
Jun 5 20:44:52 blackeye zmdc[3459]: INF ['zmupdate.pl -c' starting at 07/06/05 20:44:52, pid = 3514]
Jun 5 20:44:55 blackeye zmdc[3459]: INF [Starting pending process, zmc -m 6]
Jun 5 20:44:55 blackeye zmdc[3608]: INF ['zmc -m 6' started at 07/06/05 20:44:55]
Jun 5 20:44:55 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:44:55, pid = 3608]
Jun 5 20:44:55 blackeye zmc_m6[3608]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:55 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:44:56 blackeye zmdc[3459]: INF [Starting pending process, zma -m 6]
Jun 5 20:44:56 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:44:56, pid = 3610]
Jun 5 20:44:56 blackeye zmdc[3610]: INF ['zma -m 6' started at 07/06/05 20:44:56]
Jun 5 20:44:56 blackeye zma_m6[3610]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:56 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:45:09 blackeye zmpkg[3638]: INF [Command: status]
Jun 5 20:45:10 blackeye zmdc[3459]: INF [Starting pending process, zmc -m 6]
Jun 5 20:45:10 blackeye zmdc[3647]: INF ['zmc -m 6' started at 07/06/05 20:45:05]
Jun 5 20:45:10 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:45:05, pid = 3647]
Jun 5 20:45:10 blackeye zmc_m6[3647]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:45:10 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:45:11 blackeye zmdc[3459]: INF [Starting pending process, zma -m 6]
Jun 5 20:45:11 blackeye zmdc[3654]: INF ['zma -m 6' started at 07/06/05 20:45:06]
Jun 5 20:45:11 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:45:06, pid = 3654]
Jun 5 20:45:11 blackeye zma_m6[3654]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:45:11 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:45:22 blackeye zmwatch[3509]: ERR [Can't get shared memory id '7a6d2006', 6: No such file or directory]
Jun 5 20:45:22 blackeye zmwatch[3509]: INF [Restarting capture daemon for Garage_2, shared memory not valid]
The shared memory is not valid because there isn't any! (confirmed with 'ipcs -m' - no shared memory segments with the id '7a6d2006' exist). This is presumably because zmc isn't getting as far as creating them.
If I try and run 'zmc -d /dev/video0' (as user 'apache'), it segfaults.
Having failed to find the cause of that, I figured it would be a good opportunity to make the jump from 1.22.0 to 1.22.3, but I've hit that problem with the released ffmpeg rpms having been built with --enable-swscaler.
I've downloaded the ffmpeg (0.4.9-22.99_r8743) source, and compiled it without that option, but I'm still getting the img_convert related error when I try and build zm!
zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
ZoneMinder-1.22.3/src/zm_mpeg.cpp:310: undefined reference to `img_convert'
collect2: ld returned 1 exit status
'strings libavcodec.a' suggests the img_convert function is present, so I've no idea why it's still complaining about not finding it.
Any help and/or suggestions of what to check to fix either problem would be very much appreciated.
Jim
It's now more or less happy again, and up to date with all of the released f7 packages.
Unfortunately, this seems to have upset zm slightly - none of my monitors are currently working (source column all red, and broken image icons where the images should be).
I had to build xawtv from scratch as no rpm for f7 exists yet, but having done that I can see video from the analogue cameras just fine, so that's not the problem (and the 2 network cams don't work either).
Here's a snippet from /var/log/messages:
Jun 5 20:44:45 blackeye zmpkg[3440]: INF [Command: start]
Jun 5 20:44:47 blackeye zmdc[3459]: INF [Server starting at 07/06/05 20:44:47]
Jun 5 20:44:50 blackeye zmdc[3483]: INF ['zmc -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:44:50, pid = 3483]
Jun 5 20:44:50 blackeye zmc_m6[3483]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:44:50 blackeye zmdc[3459]: INF [Starting pending process, zmc -m 6]
Jun 5 20:44:50 blackeye zmdc[3487]: INF ['zmc -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:44:50, pid = 3487]
Jun 5 20:44:50 blackeye zmc_m6[3487]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:44:50 blackeye zmdc[3490]: INF ['zma -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:44:50, pid = 3490]
Jun 5 20:44:50 blackeye zma_m6[3490]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:44:50 blackeye zmdc[3459]: INF [Starting pending process, zma -m 6]
Jun 5 20:44:50 blackeye zmdc[3495]: INF ['zma -m 6' started at 07/06/05 20:44:50]
Jun 5 20:44:50 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:44:50, pid = 3495]
Jun 5 20:44:51 blackeye zma_m6[3495]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:44:51 blackeye zmdc[3497]: INF ['zmfilter.pl' started at 07/06/05 20:44:51]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zmfilter.pl' starting at 07/06/05 20:44:51, pid = 3497]
Jun 5 20:44:51 blackeye zmdc[3502]: INF ['zmaudit.pl -c' started at 07/06/05 20:44:51]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zmaudit.pl -c' starting at 07/06/05 20:44:51, pid = 3502]
Jun 5 20:44:51 blackeye zmfilter[3497]: INF [Scanning for events]
Jun 5 20:44:51 blackeye zmdc[3509]: INF ['zmwatch.pl' started at 07/06/05 20:44:51]
Jun 5 20:44:51 blackeye zmdc[3459]: INF ['zmwatch.pl' starting at 07/06/05 20:44:51, pid = 3509]
Jun 5 20:44:52 blackeye zmwatch[3509]: INF [Watchdog starting]
Jun 5 20:44:52 blackeye zmwatch[3509]: INF [Watchdog pausing for 30 seconds]
Jun 5 20:44:52 blackeye zmdc[3514]: INF ['zmupdate.pl -c' started at 07/06/05 20:44:52]
Jun 5 20:44:52 blackeye zmdc[3459]: INF ['zmupdate.pl -c' starting at 07/06/05 20:44:52, pid = 3514]
Jun 5 20:44:55 blackeye zmdc[3459]: INF [Starting pending process, zmc -m 6]
Jun 5 20:44:55 blackeye zmdc[3608]: INF ['zmc -m 6' started at 07/06/05 20:44:55]
Jun 5 20:44:55 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:44:55, pid = 3608]
Jun 5 20:44:55 blackeye zmc_m6[3608]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:55 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:44:56 blackeye zmdc[3459]: INF [Starting pending process, zma -m 6]
Jun 5 20:44:56 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:44:56, pid = 3610]
Jun 5 20:44:56 blackeye zmdc[3610]: INF ['zma -m 6' started at 07/06/05 20:44:56]
Jun 5 20:44:56 blackeye zma_m6[3610]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:44:56 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:45:09 blackeye zmpkg[3638]: INF [Command: status]
Jun 5 20:45:10 blackeye zmdc[3459]: INF [Starting pending process, zmc -m 6]
Jun 5 20:45:10 blackeye zmdc[3647]: INF ['zmc -m 6' started at 07/06/05 20:45:05]
Jun 5 20:45:10 blackeye zmdc[3459]: INF ['zmc -m 6' starting at 07/06/05 20:45:05, pid = 3647]
Jun 5 20:45:10 blackeye zmc_m6[3647]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:45:10 blackeye zmdc[3459]: INF ['zmc -m 6' died, signal 10]
Jun 5 20:45:11 blackeye zmdc[3459]: INF [Starting pending process, zma -m 6]
Jun 5 20:45:11 blackeye zmdc[3654]: INF ['zma -m 6' started at 07/06/05 20:45:06]
Jun 5 20:45:11 blackeye zmdc[3459]: INF ['zma -m 6' starting at 07/06/05 20:45:06, pid = 3654]
Jun 5 20:45:11 blackeye zma_m6[3654]: INF [Debug Level = 0, Debug Log = <none>]
Jun 5 20:45:11 blackeye zmdc[3459]: INF ['zma -m 6' died, signal 10]
Jun 5 20:45:22 blackeye zmwatch[3509]: ERR [Can't get shared memory id '7a6d2006', 6: No such file or directory]
Jun 5 20:45:22 blackeye zmwatch[3509]: INF [Restarting capture daemon for Garage_2, shared memory not valid]
The shared memory is not valid because there isn't any! (confirmed with 'ipcs -m' - no shared memory segments with the id '7a6d2006' exist). This is presumably because zmc isn't getting as far as creating them.
If I try and run 'zmc -d /dev/video0' (as user 'apache'), it segfaults.
Having failed to find the cause of that, I figured it would be a good opportunity to make the jump from 1.22.0 to 1.22.3, but I've hit that problem with the released ffmpeg rpms having been built with --enable-swscaler.
I've downloaded the ffmpeg (0.4.9-22.99_r8743) source, and compiled it without that option, but I'm still getting the img_convert related error when I try and build zm!
zm_mpeg.o: In function `VideoStream::EncodeFrame(unsigned char*, int, bool, unsigned int)':
ZoneMinder-1.22.3/src/zm_mpeg.cpp:310: undefined reference to `img_convert'
collect2: ld returned 1 exit status
'strings libavcodec.a' suggests the img_convert function is present, so I've no idea why it's still complaining about not finding it.
Any help and/or suggestions of what to check to fix either problem would be very much appreciated.
Jim