Source shows red and running status confusion
Posted: Fri Apr 04, 2014 3:52 am
i was using v1.27 on an Arm board.
the status in Console is always 'Stopped', the Name list showed Black without poplink and the Source list showed red.
all the log messages seem right. and I can record videos using ffmpeg.
when i ran '/usr/bin/zmdc.pl check' in console, it got 'running';
and when i ran '/usr/bin/zmdc.pl status' in console, it got the following:
but, i added some debug print in /var/www/html/includes/functions.php, i found:
in function daemonCheck(), '/usr/bin/zmdc.pl check' got 'stopped';
why can this happened ? what is the difference between running perl script on console and calling by the php script ?
the log:
the status in Console is always 'Stopped', the Name list showed Black without poplink and the Source list showed red.
all the log messages seem right. and I can record videos using ffmpeg.
when i ran '/usr/bin/zmdc.pl check' in console, it got 'running';
and when i ran '/usr/bin/zmdc.pl status' in console, it got the following:
Code: Select all
'zmaudit.pl -c' running since 14/03/16 09:31:53, pid = 568, valid
'zmfilter.pl' running since 14/03/16 09:31:53, pid = 560, valid
'zmc -m 3' running since 14/03/16 09:31:51, pid = 542, valid
'zmc -d /dev/video0' running since 14/03/16 09:31:52, pid = 551, valid
'zmupdate.pl -c' running since 14/03/16 09:31:55, pid = 589, valid
'zmwatch.pl' running since 14/03/16 09:31:54, pid = 580, valid
in function daemonCheck(), '/usr/bin/zmdc.pl check' got 'stopped';
why can this happened ? what is the difference between running perl script on console and calling by the php script ?
the log:
Code: Select all
2014-04-06 12:06:31.948974 zmc_dvideo0 2043 INF Monitor-1: 4000 - Capturing at 33.33 fps zm_monitor.cpp 2831
2014-04-06 12:06:01.985260 zmc_dvideo0 2043 INF Monitor-1: 3000 - Capturing at 34.48 fps zm_monitor.cpp 2831
2014-04-06 12:05:32.011962 zmc_dvideo0 2043 INF Monitor-1: 2000 - Capturing at 33.33 fps zm_monitor.cpp 2831
2014-04-06 12:05:02.053558 zmc_dvideo0 2043 INF Monitor-1: 1000 - Capturing at 32.26 fps zm_monitor.cpp 2831
2014-04-06 12:04:35.216920 zmupdate 2081 ERR Error check failed: '501 Protocol scheme 'http' is not supported' zmupdate.pl
2014-04-06 12:04:35.150630 zmupdate 2081 INF Checking for updates zmupdate.pl
2014-04-06 12:04:34.309330 zmdc 2016 INF 'zmupdate.pl -c' starting at 14/04/06 12:04:34, pid = 2081 zmdc.pl
2014-04-06 12:04:34.305540 zmdc 2081 INF 'zmupdate.pl -c' started at 14/04/06 12:04:34 zmdc.pl
2014-04-06 12:04:34.037140 zmwatch 2068 INF Watchdog pausing for 30 seconds zmwatch.pl
2014-04-06 12:04:34.033750 zmwatch 2068 INF Watchdog starting zmwatch.pl
2014-04-06 12:04:33.428680 zmfilter 2052 INF Scanning for events zmfilter.pl
2014-04-06 12:04:33.398990 zmdc 2068 INF 'zmwatch.pl' started at 14/04/06 12:04:33 zmdc.pl
2014-04-06 12:04:33.378780 zmdc 2016 INF 'zmwatch.pl' starting at 14/04/06 12:04:33, pid = 2068 zmdc.pl
2014-04-06 12:04:32.280700 zmdc 2060 INF 'zmaudit.pl -c' started at 14/04/06 12:04:32 zmdc.pl
2014-04-06 12:04:32.280670 zmdc 2016 INF 'zmaudit.pl -c' starting at 14/04/06 12:04:32, pid = 2060 zmdc.pl
2014-04-06 12:04:31.572600 zmdc 2052 INF 'zmfilter.pl' started at 14/04/06 12:04:31 zmdc.pl
2014-04-06 12:04:31.568330 zmdc 2016 INF 'zmfilter.pl' starting at 14/04/06 12:04:31, pid = 2052 zmdc.pl
2014-04-06 12:04:31.160430 zmc_dvideo0 2043 INF Starting Capture zmc.cpp 195
2014-04-06 12:04:31.080108 zmc_dvideo0 2043 INF No direct match for the selected palette and target colorspace. Format conversion is required, performance penalty expected zm_local_camera.cpp 408
2014-04-06 12:04:31.078979 zmc_dvideo0 2043 INF Selected capture palette: YUV 4:2:2 (YUYV) (YUYV) zm_local_camera.cpp 346
2014-04-06 12:04:30.924870 zmdc 2043 INF 'zmc -d /dev/video0' started at 14/04/06 12:04:30 zmdc.pl
2014-04-06 12:04:30.924500 zmdc 2016 INF 'zmc -d /dev/video0' starting at 14/04/06 12:04:30, pid = 2043 zmdc.pl
2014-04-06 12:04:27.119050 zmdc 2016 INF Server starting at 14/04/06 12:04:27 zmdc.pl
2014-04-06 12:04:25.912720 zmpkg 1998 INF Command: start zmpkg.pl