Page 1 of 1

OK, I'm REAL close (finally) - gotta add my BT878 cameras...

Posted: Sat Jun 06, 2009 12:52 am
by Jim March
Almost there!

Here's my situation: I had ZM running out the Ubuntu repos (Hardy) but I couldn't mesh it with Mythzoneminder (mismatched version support even within the same repo - silly Ubuntu package maintainer!). System involved a pair of BT878 cards with three ports each so I had /dev/video0 (channels 0/1/2 I think) and ditto /dev/video0. Six cameras, about 4fps each but I could live with that.

However, with no video streaming support in ZM prior to 1.24x the user interface on playback sucked wind so I basically had to start over, do a fresh install of Ubuntu 8.10 and follow these instructions on compiling 1.24 slavishly (AFTER finding out they fail big with Jaunty!):

http://www.zoneminder.com/wiki/index.ph ... ozola-0.7)

Note that I haven't yet installed the MythTV parts or mythzoneminder and with the new video playback stuff in ZM 1.24 I may not need them.

Right now, my web browser interface at http://localhost is working as far as getting to ZM's console and user interface. Kewl.

OK. So now I'm adding my cameras, and it's failing. NOTE: I only want to "record", no "event" stuff.

I *think* my cameras were each working at 320x200 resolution but...dammit, I can't recall. I know they're NTSC (I'm in Arizona <grin>). If I do:

Code: Select all

xawtv -device /dev/video0
...I get an image (woot!) and it reports back to the terminal like so:

Code: Select all

zmuser@zmuser-camerastation:~$ xawtv -device /dev/video0
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.27-14-generic)
xinerama 0: 1280x1024+0+0
WARNING: No DGA direct video mode for this display.
WARNING: couldn't find framebuffer base address, try manual
        configuration ("v4l-conf -a <addr>")
v4l2: WARNING: framebuffer base address mismatch
v4l2: me=(nil) v4l=(nil)
Warning: Cannot convert string
"-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
zmuser@zmuser-camerastation:~$
I assume this means I use video for linux "2" instead of "1"?

And if I do:

Code: Select all

zmuser@zmuser-camerastation:~$ [b]zmu -d /dev/video0 -q -v[/b]
Video Device: /dev/video0
General Capabilities
 Driver: bttv
 Card: BT878 video (Hauppauge (bt878))
 Bus: PCI:0000:01:09.0
 Version: 0.9.17
 Type: 0x5010015
   Supports video capture (X)
   Does not support video output
   Supports frame buffer overlay
   Supports VBI capture
   Does not support VBI output
   Does not support sliced VBI capture
   Does not support sliced VBI output
   Does not support video output overlay
   Has tuner
   Does not have audio in and/or out
   Does not have radio
   Supports read/write i/o (X)
   Does not support async i/o
   Supports streaming i/o (X)
   Standards:
     NTSC
     NTSC-M
     NTSC-M-JP
     NTSC-M-KR
     PAL
     PAL-BG
     PAL-H
     PAL-I
     PAL-DK
     PAL-M
     PAL-N
     PAL-Nc
     PAL-60
     SECAM
     SECAM-B
     SECAM-G
     SECAM-H
     SECAM-DK
     SECAM-L
     SECAM-Lc
 Formats:
   8 bpp, gray (GREY)
   8 bpp, dithered color (HI24)
   15 bpp RGB, le (RGBO)
   15 bpp RGB, be (RGBQ)
   16 bpp RGB, le (RGBP)
   16 bpp RGB, be (RGBR)
   24 bpp RGB, le (BGR3)
   32 bpp RGB, le (BGR4)
   32 bpp RGB, be (RGB4)
   4:2:2, packed, YUYV (YUYV)
   4:2:2, packed, YUYV (YUYV)
   4:2:2, packed, UYVY (UYVY)
   4:2:2, planar, Y-Cb-Cr (422P)
   4:2:0, planar, Y-Cb-Cr (YU12)
   4:2:0, planar, Y-Cr-Cb (YV12)
   4:1:1, planar, Y-Cb-Cr (411P)
   4:1:0, planar, Y-Cb-Cr (YUV9)
   4:1:0, planar, Y-Cr-Cb (YVU9)
Crop Capabilities
 Bounds: 838 x 504
 Default: 768 x 480
 Current: 768 x 480
Inputs: 4
 Input 0
   Name: Television
   Type: Tuner
   Audioset: 00000001
   Standards: 0xffbfff
   Power on  (X)
   Signal detected  (X)
   Colour Signal detected
   Horizontal Lock detected
 Input 1
   Name: Composite1
   Type: Camera
   Audioset: 00000001
   Standards: 0xffbfff
   Power on  (X)
   Signal detected  (X)
   Colour Signal detected
   Horizontal Lock detected
 Input 2
   Name: S-Video
   Type: Camera
   Audioset: 00000001
   Standards: 0xffbfff
   Power on  (X)
   Signal detected  (X)
   Colour Signal detected
   Horizontal Lock detected
 Input 3
   Name: Composite3
   Type: Camera
   Audioset: 00000001
   Standards: 0xffbfff
   Power on  (X)
   Signal detected  (X)
   Colour Signal detected
   Horizontal Lock detected
zmuser@zmuser-camerastation:~$
...I assume that tells us something too?

ANY help setting up my cameras in ZM based on the above would be very helpful. Even guesstimates as to what my $%@^%$ resolution settings are would be nice :(.

Thanks!

Jim March

Posted: Sat Jun 06, 2009 12:58 am
by Jim March
Man, I'm trying all kinds of different resolutions, PAL/NTSC, V4L1/2...can't get a camera image when I click on the camera name.

The words "record" (under "function") and the devicename (under "source") are both green. They were red at first.

Errrr...as they say in Marin County..."Like HELP!"

:oops:

Posted: Mon Jun 08, 2009 6:23 pm
by cordel
Should be 320x240 for NTSC. Green is a good sign, but if you still can't see the cams, then check your your logs (apache error log would be of interest.).

Posted: Tue Jun 09, 2009 10:41 pm
by Jim March
If I had any idea where to find the Apache error log, I'd do so :(.

Posted: Tue Jun 09, 2009 10:53 pm
by cordel
Any and all logs will usually be in /var/log
Apache should be in /var/log/http, /var/log/httpd, /var/log/apache, or /var/log/apache2 depending on your linux distro.

The one you would be most interested in is the error log (formated various ways again depending on the distro used, should be obvious enough though).

Posted: Tue Jun 09, 2009 11:11 pm
by Jim March
Oh bleep...yeah, something seems wrong all right. Any idea what to do about it?

Code: Select all

[Tue Jun 09 13:33:04 2009] [notice] Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.2 with Suhosin-Patch configured -- resuming normal operations
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 13:34:40 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:34:40 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:34:44 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-178970s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:34:44 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-178970s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 13:35:09 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:35:09 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 13:36:07 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:36:07 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 13:43:31 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:43:31 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 13:55:30 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-233657s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:55:30 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-233657s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 13:57:39 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-872683s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:57:39 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-872683s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 13:58:25 2009] [notice] caught SIGTERM, shutting down
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/ffmpeg.so' - /usr/lib/php5/20060613+lfs/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/gd.so' - /usr/lib/php5/20060613+lfs/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Jun 09 14:06:13 2009] [notice] Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.2 with Suhosin-Patch configured -- resuming normal operations
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:11:30 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:11:30 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:11:34 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-852732s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:11:34 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-852732s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:39:00 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:39:00 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:39:31 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:39:31 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:39:55 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:39:55 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:42:15 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:42:15 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:42:38 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:42:38 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:42:42 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-888667s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:42:42 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-888667s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:50:57 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:50:57 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:51:01 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-945654s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:51:01 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-945654s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 14:59:44 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 14:59:44 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 15:03:25 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 15:03:25 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 15:04:35 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 15:04:35 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 15:04:45 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-418991s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 15:04:45 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-418991s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 15:04:58 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-418991s.sock ) failed: No such file or directory, referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 15:04:58 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-418991s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/index.php?view=watch&mid=2
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
[Tue Jun 09 16:02:14 2009] [notice] caught SIGTERM, shutting down
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/ffmpeg.so' - /usr/lib/php5/20060613+lfs/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/gd.so' - /usr/lib/php5/20060613+lfs/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Jun 09 16:05:26 2009] [notice] Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.2 with Suhosin-Patch configured -- resuming normal operations
df: `/media/disk/events': No such file or directory
df: no file systems processed
df: `/media/disk/events': No such file or directory
df: no file systems processed
Looks like *something* went wrong while compiling!? I had followed the instructions at:

http://www.zoneminder.com/wiki/index.ph ... ozola-0.7)

...to the LETTER!

Halp!

Posted: Tue Jun 09, 2009 11:29 pm
by cordel
You can either switch to mjpeg streaming, or you will need to figure out what went wrong with building ZM with ffmpeg support. Either something is off in your ffmpeg build or ZM was not able to find the libraries.
[Tue Jun 09 13:34:40 2009] [error] [client 127.0.0.1] MPEG streaming is disabled., referer: http://localhost/index.php?view=watch&mid=2
[Tue Jun 09 13:34:40 2009] [error] [client 127.0.0.1] You should configure with the --with-ffmpeg option and rebuild to use this functionality., referer: http://localhost/index.php?view=watch&mid=2
Also it seems that you have various other errors in your apache /ZM configuration as well:
df: `/media/disk/events': No such file or directory
df: no file systems processed
See the Wiki about moving ZM events.

The rest is collateral.

Posted: Tue Jun 09, 2009 11:50 pm
by Jim March
THANK YOU, now we're getting somewhere!

I got the disk access thing fixed, didn't realize it wasn't auto-mounting yet.

Under the "Options" screen and "images" tab, I've got choices for "STREAM_METHOD" of mpeg or jpeg, with mpeg checked.

Further down at "PATH_FFMPEG" it's set to /usr/local/bin/ffmpeg - I look there and presto, it's AWOL. Dayum, yeah, that'll do it. So OK, it DID seem to build properly so it's gotta be somewhere, searching...heh, yeah, somehow it ended up in /home/zmuser/ffmpeg - easy swap.

Rebooting...and nope, no joy.

OK...you didn't say how to switch away from FFMPEG but I assume it involves the checkbox at "OPT_FFMPEG" (is ffmpeg around?). I've now turned that off. STILL no joy. Deleted the camera and tried re-creating it, no joy. And now here's the last bit of my Apache log...which is still saying "MPEG streaming is disabled". How do I enable it?

Posted: Wed Jun 10, 2009 12:09 am
by cordel
The MPEG is disabled error is displayed when ffmpeg has not been properly compiled into ZM so it will require rebuilding ZM.

As to switch to mjpeg streaming (sorry I forgot) you should check JPEG, instead of MPEG streaming. This will get you around the fact that ffmpeg was not compiled into ZM.

If you try to rebuild ZM, check that when you run configure, the script was actually able to locate the ffmpeg libraries before running make.

If you still have your sources, remember to run a "make clean" before hand and it might be prudent to run 'make uninstall" before running the "make clean" to remove all the bits of the previous install.

Posted: Wed Jun 10, 2009 12:27 am
by Jim March
Damn...switching to "jpeg" from "mpeg" didn't help any. It's still giving the same errors in the apache log telling me I need to recompile with FFMpeg successfully.

SIGH.

OK, so two questions:

1) Assuming I've got a valid ffmpeg compile in the wrong place but otherwise correct, what ffmpeg pieces to I need to put where? I've got four "binary files" called "ffmpeg", "ffserver", "ffserver_g" and "ffmpeg_g" plus other stuff of course. Can I just stick them in...damn, I'm not sure what the default was! Sigh. Any clues on this part, pre-compile?

2) To re-compile ZM I'll have to get it to NOT auto-start, right? What's the safest way to do that?

Thanks, I'll take any help I can get on this and re-compile in the morning. For now, it looks like I did compile ffmpeg successfully but had it in the wrong place and ZM didn't compile with it. Which...should be fixable enough. As I recall, compiling ffmpeg took a ghastly long time, ZM was quick by comparison. So if I can just repair this ffmpeg install...

Question: why doesn't the ffmpeg from Ubuntu's package management work? And if it won't, fine, but is there an alternate .deb file I can use instead of the custom-compiled flavor?

Posted: Wed Jun 10, 2009 12:28 am
by Jim March
If it's not clear yet: THANK YOU, we are finally getting closer.

Posted: Wed Jun 10, 2009 12:39 am
by cordel
I should have mentioned that you have to reload the console page before selecting a monitor to view or it will still have the mpeg setting in the console. That or to be sure close the browser and reopen.

Posted: Wed Jun 10, 2009 1:01 am
by cordel
As to your two questions....
1) If you ran a make install for ffmpeg it should be in an appropriate place, I think the defualt is in prefix /usr/local as ZM is. This means you should find the binaries in /usr/local/bin and the libraries in /usr/local/lib and the headers in /usr/local/include.

If the above is true and ZM configure is not finding them, you need to run ldconfig to try to pick them up, it should in most cases but not in all distros. If it still don't pick them up then you need to add it to ld's path:
Create a file called "ffmpeg.conf" in /etc/ld.so.conf.d, which contains a single line that says "/usr/local/lib", run the "ldconfig" command, and it should be able to now be picked up. Only do this if it don't work any other way, but it is proper way of going about it.

This of coarse assumes that the ffmpeg build is good, and installed.

2) 1.24.x is the current development, to be supported by the ffmpeg folks, they require us to develop on their development version. So unless we are using the latest ffmpeg build, they will not support us when we need help. Packages normally are behind the development version by anywhere up to six months for any software, ffmpeg is a pain because they don't release a version very often, actually twice in six or seven years. this makes things a bit tough for everyone including us. It also didn't help when they were changing the API as often as one changes his shorts as that tends to break everything and without release versions is hard to adjust for in the code. This is why the packaged version may not work.

Posted: Wed Jun 10, 2009 1:57 am
by Jim March
OK. So I'll try all that tomorrow. Thanks!

Posted: Fri Jun 12, 2009 2:54 am
by Jim March
After mucho strain and agony I think I have FFMPeg fully sorted out, and ZM compiled with it.

Still no joy but the camera "source" in the console has gone from red to green for the first time, and the Apache error log is showing a brand spankin' new issue...so it looks like we're closing in on another problem:

Code: Select all

[Thu Jun 11 19:47:24 2009] [error] [client 127.0.0.1] [flv @ 0xe76c070]bitrate tolerance too small for bitrate, referer: http://localhost/?view=watch&mid=4
[Thu Jun 11 19:47:32 2009] [error] [client 127.0.0.1] socket_sendto( /tmp/zms-439282s.sock ) failed: Connection refused, referer: http://localhost/?view=watch&mid=4
[Thu Jun 11 19:47:32 2009] [error] [client 127.0.0.1] array (\n  0 => \n  array (\n    'file' => '/var/www/ajax/stream.php',\n    'line' => 55,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-439282s.sock ) failed: Connection refused',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/var/www/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/var/www/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://localhost/?view=watch&mid=4
And at this point I have no clue what's going on..."bitrate tolerance"? Is this maybe a permissions issue somewhere?

Like haaaaalp!

:?

Thanks...