I can't get any live video

Forum for questions and support relating to the 1.24.x releases only.
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

Downloaded from svn and compiled it without errors.
The error seems to be the same:

Code: Select all

# cat zm_debug.log.31181
02/16/09 20:14:27.043313 zmc_dvideo0[-1].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /var/log/zm/zm_debug.log.31181]
02/16/09 20:14:27.043473 zmc_dvideo0[-1].DB1-zm_monitor.cpp/1706 [Got 1 monitors]
02/16/09 20:14:27.043516 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/287 [V4L2 support enabled, using V4L2 api]
02/16/09 20:14:27.044804 zmc_dvideo0[-1].DB1-zm_monitor.cpp/338 [monitor purpose=1]
02/16/09 20:14:27.044824 zmc_dvideo0[-1].DB1-zm_monitor.cpp/345 [mem.size=36865524]
02/16/09 20:14:27.044860 zmc_dvideo0[-1].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/.zm.mmap.5 (36865524 bytes) to locked memory, trying unlocked]
02/16/09 20:14:27.066349 zmc_dvideo0[-1].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 640x480 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
02/16/09 20:14:27.066598 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:0,y1:479 x2:0,y2:0]
02/16/09 20:14:27.066612 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:0,y1:0 x2:639,y2:0]
02/16/09 20:14:27.066622 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:639,y1:0 x2:639,y2:479]
02/16/09 20:14:27.066633 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:639,y1:479 x2:0,y2:479]
02/16/09 20:14:27.066649 zmc_dvideo0[-1].DB9-zm_image.cpp/1371 [0: min_y: 0, max_y:479, min_x:0.00, 1/m:-0.00]
02/16/09 20:14:27.066672 zmc_dvideo0[-1].DB9-zm_image.cpp/1371 [1: min_y: 0, max_y:479, min_x:639.00, 1/m:0.00]
02/16/09 20:14:27.066689 zmc_dvideo0[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/16/09 20:14:27.066703 zmc_dvideo0[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/16/09 20:14:27.066714 zmc_dvideo0[-1].DB9-zm_image.cpp/1406 [0 - 0: min_y: 0, max_y:479, min_x:0.00, 1/m:-0.00]
02/16/09 20:14:27.066726 zmc_dvideo0[-1].DB9-zm_image.cpp/1406 [0 - 1: min_y: 0, max_y:479, min_x:639.00, 1/m:0.00]
02/16/09 20:14:27.066746 zmc_dvideo0[-1].DB9-zm_image.cpp/1406 [1 - 0: min_y: 0, max_y:479, min_x:0.00, 1/m:-0.00]

...

02/16/09 20:14:27.152689 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:74, y:479.00]
02/16/09 20:14:27.152700 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:73, y:479.00]
02/16/09 20:14:27.152712 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:72, y:479.00]
02/16/09 20:14:27.152723 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:71, y:479.00]
02/16/09 20:14:27.152734 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:70, y:479.00]
02/16/09 20:14:27.152745 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:69, y:479.00]
02/16/09 20:14:27.152756 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:68, y:479.00]
02/16/09 20:14:27.152768 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:67, y:479.00]
02/16/09 20:14:27.152779 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:66, y:479.00]
02/16/09 20:14:27.152790 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:65, y:479.00]
02/16/09 20:14:27.152801 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:64, y:479.00]
02/16/09 20:14:27.152812 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:63, y:479.00]
02/16/09 20:14:27.152824 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:62, y:479.00]
02/16/09 20:14:27.152835 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:61, y:479.00]
02/16/09 20:14:27.152846 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:60, y:479.00]
02/16/09 20:14:27.152857 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:59, y:479.00]
02/16/09 20:14:27.152868 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:58, y:479.00]
02/16/09 20:14:27.152880 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:57, y:479.00]
02/16/09 20:14:27.152891 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:56, y:479.00]
02/16/09 20:14:27.152902 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:55, y:479.00]
02/16/09 20:14:27.152913 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:54, y:479.00]
02/16/09 20:14:27.152924 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:53, y:479.00]
02/16/09 20:14:27.152935 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:52, y:479.00]
02/16/09 20:14:27.152947 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:51, y:479.00]
02/16/09 20:14:27.152958 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:50, y:479.00]
02/16/09 20:14:27.152969 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:49, y:479.00]
02/16/09 20:14:27.152980 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:48, y:479.00]
02/16/09 20:14:27.152991 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:47, y:479.00]
02/16/09 20:14:27.153003 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:46, y:479.00]
02/16/09 20:14:27.153014 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:45, y:479.00]
02/16/09 20:14:27.153025 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:44, y:479.00]
02/16/09 20:14:27.153036 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:43, y:479.00]
02/16/09 20:14:27.153047 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:42, y:479.00]
02/16/09 20:14:27.153059 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:41, y:479.00]
02/16/09 20:14:27.153070 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:40, y:479.00]
02/16/09 20:14:27.153081 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:39, y:479.00]
02/16/09 20:14:27.153092 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:38, y:479.00]
02/16/09 20:14:27.153103 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:37, y:479.00]
02/16/09 20:14:27.153115 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:36, y:479.00]
02/16/09 20:14:27.153126 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:35, y:479.00]
02/16/09 20:14:27.153137 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:34, y:479.00]
02/16/09 20:14:27.153148 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:33, y:479.00]
02/16/09 20:14:27.153159 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:32, y:479.00]
02/16/09 20:14:27.153170 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:31, y:479.00]
02/16/09 20:14:27.153182 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:30, y:479.00]
02/16/09 20:14:27.153200 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:29, y:479.00]
02/16/09 20:14:27.153214 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:28, y:479.00]
02/16/09 20:14:27.153225 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:27, y:479.00]
02/16/09 20:14:27.153237 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:26, y:479.00]
02/16/09 20:14:27.153248 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:25, y:479.00]
02/16/09 20:14:27.153259 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:24, y:479.00]
02/16/09 20:14:27.153270 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:23, y:479.00]
02/16/09 20:14:27.153281 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:22, y:479.00]
02/16/09 20:14:27.153293 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:21, y:479.00]
02/16/09 20:14:27.153304 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:20, y:479.00]
02/16/09 20:14:27.153315 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:19, y:479.00]
02/16/09 20:14:27.153326 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:18, y:479.00]
02/16/09 20:14:27.153338 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:17, y:479.00]
02/16/09 20:14:27.153349 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:16, y:479.00]
02/16/09 20:14:27.153360 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:15, y:479.00]
02/16/09 20:14:27.153371 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:14, y:479.00]
02/16/09 20:14:27.153382 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:13, y:479.00]
02/16/09 20:14:27.153393 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:12, y:479.00]
02/16/09 20:14:27.153405 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:11, y:479.00]
02/16/09 20:14:27.153416 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:10, y:479.00]
02/16/09 20:14:27.153427 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:9, y:479.00]
02/16/09 20:14:27.153438 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:8, y:479.00]
02/16/09 20:14:27.153450 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:7, y:479.00]
02/16/09 20:14:27.153461 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:6, y:479.00]
02/16/09 20:14:27.153472 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:5, y:479.00]
02/16/09 20:14:27.153483 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:4, y:479.00]
02/16/09 20:14:27.153494 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:3, y:479.00]
02/16/09 20:14:27.153505 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:2, y:479.00]
02/16/09 20:14:27.153516 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:1, y:479.00]
02/16/09 20:14:27.156314 zmc_dvideo0[-1].DB1-zm_monitor.cpp/1808 [Loaded monitor 5(test2), 1 zones]
02/16/09 20:14:27.156329 zmc_dvideo0[-1].INF-zmc.cpp/186 [Starting Capture]
02/16/09 20:14:27.156439 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/348 [Opening video device /dev/video0]
02/16/09 20:14:27.156467 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/354 [V4L2 support enabled, using V4L2 api]
02/16/09 20:14:27.156481 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/359 [Checking video device capabilities]
02/16/09 20:14:27.156500 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/369 [Setting up video format]
02/16/09 20:14:27.156514 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/398 [Setting up request buffers]
02/16/09 20:14:27.156618 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/420 [Setting up 8 data buffers]
02/16/09 20:14:27.156718 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/455 [Configuring video source]
02/16/09 20:14:27.156733 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/636 [Setting up static colour tables]
02/16/09 20:14:27.156750 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/1140 [Priming capture]
02/16/09 20:14:27.156760 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1144 [Queueing buffers]
02/16/09 20:14:27.156774 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1160 [Starting video stream]
02/16/09 20:14:29.030984 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/1190 [Pre-capturing]
02/16/09 20:14:29.031009 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1237 [Capturing]
02/16/09 20:14:29.031023 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1260 [Capturing 1 frames]
02/16/09 20:14:29.200952 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1284 [Captured frame 0/1 from channel 0]
02/16/09 20:14:29.200972 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1320 [Doing format conversion[swscaler @ 0x806de10]No accelerated colorspace conversion found.
]
02/16/09 20:14:29.201157 zmc_dvideo0[-1].INF-zm_signal.cpp/60 [Got signal 11 (Segmentation fault), crashing]
02/16/09 20:14:29.201192 zmc_dvideo0[-1].ERR-zm_signal.cpp/77 [Signal address is 0x10212, no eip]
02/16/09 20:14:29.201395 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /lib/libpthread.so.0 [0x7f40844237b0]]
02/16/09 20:14:29.201416 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /usr/local/lib/libswscale.so.0 [0x7f4085d64e00]]
02/16/09 20:14:29.201435 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /usr/local/lib/libswscale.so.0(sws_scale+0x590) [0x7f4085d55240]]
02/16/09 20:14:29.201452 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /usr/local/bin/zmc [0x41bf85]]
02/16/09 20:14:29.201469 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /usr/local/bin/zmc [0x424786]]
02/16/09 20:14:29.201486 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /usr/local/bin/zmc [0x4068ea]]
02/16/09 20:14:29.201502 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f40832fd5a6]]
02/16/09 20:14:29.201518 zmc_dvideo0[-1].ERR-zm_signal.cpp/98 [Backtrace: /usr/local/bin/zmc [0x406249]]
02/16/09 20:14:29.201535 zmc_dvideo0[-1].INF-zm_signal.cpp/99 [Backtrace complete]
gdb:

Code: Select all

# gdb /usr/local/bin/zmc
GNU gdb (GDB) 6.8.50.20090106-cvs-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http>...
(gdb) run -d /dev/video0
Starting program: /usr/local/bin/zmc -d /dev/video0
[Thread debugging using libthread_db enabled]
[swscaler @ 0x60fbea0]No accelerated colorspace conversion found.

Program received signal SIGSEGV, Segmentation fault.
yuv2rgb_c_24_rgb (c=0x60fbea0, src=0x7fffffffe450, srcStride=0x7fffffffe470,
    srcSliceY=<value>, srcSliceH=480, dst=0x60f9aa0, dstStride=0x7fffffffe480)
    at libswscale/yuv2rgb.c:198
198         RGB(0);
Current language:  auto; currently c
(gdb) bt
#0  yuv2rgb_c_24_rgb (c=0x60fbea0, src=0x7fffffffe450, srcStride=0x7fffffffe470,
    srcSliceY=<value>, srcSliceH=480, dst=0x60f9aa0, dstStride=0x7fffffffe480)
    at libswscale/yuv2rgb.c:198
#1  0x00007ffff79b9240 in sws_scale (c=0x60fbea0, src=<value>, srcStride=0x60e13d0, srcSliceY=
    0, srcSliceH=480, dst=0x60f9aa0, dstStride=0x60f9ac0) at libswscale/swscale.c:2805
#2  0x000000000041bf85 in LocalCamera::Capture (this=0x60e7390, image=@0x60e7520) at zm_local_camera.cpp:1342
#3  0x0000000000424786 in Monitor::Capture (this=0x60e73f0) at zm_monitor.cpp:2470
#4  0x00000000004068ea in main (argc=<value>, argv=0x7fffffffe778) at zmc.cpp:256
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

That does appear to be crashing in the ffmpeg function but it's not obvious why. Have you tried with a different palette?
Phil
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

with the resolution 160x120, I get a live-stream. I cannot see the "real" video. I tried every possible combination of format(Pal B, Pal G, ...) with palettes. I attached 2 images how the video looks like.

ImageImage

This is a debug.log while zmc is running(160x120-2.jpg)

Code: Select all

# cat zm_debug.log.11935
02/17/09 00:34:01.608814 zms[-1].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /var/log/zm/zm_debug.log.11935]
02/17/09 00:34:01.608911 zms[-1].DB1-zms.cpp/92 [Query: mode=jpeg&monitor=5&scale=100&maxfps=15&buffer=1000&connkey=455669&rand=1234827241]
02/17/09 00:34:01.609343 zms[-1].DB1-zm_monitor.cpp/2258 [Got 1 monitors]
02/17/09 00:34:01.609505 zms[-1].DB1-zm_monitor.cpp/338 [monitor purpose=0]
02/17/09 00:34:01.609519 zms[-1].DB1-zm_monitor.cpp/345 [mem.size=2017444]
02/17/09 00:34:01.609555 zms[-1].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/.zm.mmap.5 (2017444 bytes) to locked memory, trying unlocked]
02/17/09 00:34:01.609634 zms[-1].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 160x120 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
02/17/09 00:34:01.609676 zms[-1].DB9-zm_image.cpp/1351 [x1:0,y1:119 x2:0,y2:0]
02/17/09 00:34:01.609689 zms[-1].DB9-zm_image.cpp/1351 [x1:0,y1:0 x2:159,y2:0]
02/17/09 00:34:01.609700 zms[-1].DB9-zm_image.cpp/1351 [x1:159,y1:0 x2:159,y2:119]
02/17/09 00:34:01.609711 zms[-1].DB9-zm_image.cpp/1351 [x1:159,y1:119 x2:0,y2:119]
02/17/09 00:34:01.609725 zms[-1].DB9-zm_image.cpp/1371 [0: min_y: 0, max_y:119, min_x:0.00, 1/m:-0.00]
02/17/09 00:34:01.609748 zms[-1].DB9-zm_image.cpp/1371 [1: min_y: 0, max_y:119, min_x:159.00, 1/m:0.00]
02/17/09 00:34:01.609765 zms[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/17/09 00:34:01.609779 zms[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/17/09 00:34:01.609790 zms[-1].DB9-zm_image.cpp/1406 [0 - 0: min_y: 0, max_y:119, min_x:0.00, 1/m:-0.00]

...

02/17/09 00:34:01.749450 zms[-1].DB9-zm_image.cpp/1313 [x:1, y:119.00]
02/17/09 00:34:01.749688 zms[-1].DB1-zm_monitor.cpp/458 [Monitor test2 has function 2]
02/17/09 00:34:01.749701 zms[-1].DB1-zm_monitor.cpp/459 [Monitor test2 LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
02/17/09 00:34:01.749712 zms[-1].DB1-zm_monitor.cpp/460 [Monitor test2 IBC = 35, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
02/17/09 00:34:01.749731 zms[-1].DB1-zm_monitor.cpp/2455 [Loaded monitor 5(test2), 0 zones]
02/17/09 00:34:01.749823 zms[-1].DB3-zm_stream.cpp/58 [FPS:11.76, MXFPS:15, BFPS:11, EFPS:11, FM:1]
02/17/09 00:34:01.749841 zms[-1].DB3-zm_stream.cpp/65 [aEFPS:11, aFM:1]
02/17/09 00:34:01.749939 zms[-1].DB2-zm_monitor.cpp/3332 [Checking swap image location]
02/17/09 00:34:01.749956 zms[-1].DB3-zm_monitor.cpp/3333 [Checking swap image path]
02/17/09 00:34:01.749993 zms[-1].DB3-zm_monitor.cpp/2856 [Swap path '/var/log/zm//zmswap-m5/zmswap-q455669' missing, creating]
02/17/09 00:34:01.750050 zms[-1].DB2-zm_monitor.cpp/3354 [Assigning temporary buffer]
02/17/09 00:34:01.754137 zms[-1].DB2-zm_monitor.cpp/3357 [Assigned temporary buffer]
02/17/09 00:34:01.754185 zms[-1].DB3-zm_stream.cpp/115 [Scaling by 100, zooming by 100 = magnifying by 100(100)]
02/17/09 00:34:01.754220 zms[-1].DB3-zm_stream.cpp/119 [Last scaling by 100, zooming by 100 = magnifying by 100(100)]
02/17/09 00:34:01.754233 zms[-1].DB3-zm_stream.cpp/122 [Base image width = 160, height = 120]
02/17/09 00:34:01.754243 zms[-1].DB3-zm_stream.cpp/125 [Virtual image width = 160, height = 120]
02/17/09 00:34:01.771935 zms[-1].DB3-zm_stream.cpp/128 [Last virtual image width = 160, height = 120]
02/17/09 00:34:01.771951 zms[-1].DB3-zm_stream.cpp/131 [Actual image width = 160, height = 120]
02/17/09 00:34:01.771962 zms[-1].DB3-zm_stream.cpp/134 [Last actual image width = 160, height = 120]
02/17/09 00:34:01.772007 zms[-1].DB3-zm_stream.cpp/137 [Display image width = 160, height = 120]
02/17/09 00:34:01.772020 zms[-1].DB3-zm_stream.cpp/140 [Last display image width = 160, height = 120]
02/17/09 00:34:01.772031 zms[-1].DB3-zm_stream.cpp/143 [Send image width = 160, height = 120]
02/17/09 00:34:01.772041 zms[-1].DB3-zm_stream.cpp/146 [Last send image width = 160, height = 120]
02/17/09 00:34:01.772052 zms[-1].DB3-zm_stream.cpp/164 [Real image width = 160, height = 120]
02/17/09 00:34:01.774342 zms[-1].DB2-zm_monitor.cpp/3494 [Storing frame 0]
If I increase the resolution from 160x120 to 352x240 I get a live image every 8th second.
With 640x480 zmc crashed:

Code: Select all

02/17/09 00:43:12.072827 zmdc[5504].INF [Starting pending process, zmc -d /dev/video0]
02/17/09 00:43:12.073677 zmdc[5504].INF ['zmc -d /dev/video0' starting at 09/02/17 00:43:12, pid = 10328]
02/17/09 00:43:12.097783 zmdc[5504].INF ['zmc -d /dev/video0' crashed, signal 6]
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The debug log is from zms which is the streamer, which won't tell us much as that is just relaying on what is captured. Really it's the zmc one we need.
Phil
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

Oh sorry here's the debug from zmc:

Code: Select all

# cat zm_debug.log.10546
02/17/09 14:34:12.566268 zmc_dvideo0[-1].INF-zm_debug.c/292 [New Debug Level = 9, New Debug Log = /var/log/zm/zm_debug.log.10546]
02/17/09 14:34:12.566785 zmc_dvideo0[-1].DB1-zm_monitor.cpp/1706 [Got 1 monitors]
02/17/09 14:34:12.566832 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/287 [V4L2 support enabled, using V4L2 api]
02/17/09 14:34:12.566996 zmc_dvideo0[-1].DB1-zm_monitor.cpp/338 [monitor purpose=1]
02/17/09 14:34:12.567011 zmc_dvideo0[-1].DB1-zm_monitor.cpp/345 [mem.size=2017444]
02/17/09 14:34:12.567036 zmc_dvideo0[-1].ERR-zm_monitor.cpp/362 [Got unexpected memory map file size 10645924, expected 2017444]
02/17/09 14:34:12.567096 zmc_dvideo0[-1].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/.zm.mmap.5 (2017444 bytes) to locked memory, trying unlocked]
02/17/09 14:34:12.568583 zmc_dvideo0[-1].DB1-zm_zone.cpp/50 [Initialised zone 0/All - 1 - 160x120 - Rgb:ff0000, CM:3, MnAT:15, MxAT:0, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0, OF: 0]
02/17/09 14:34:12.568634 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:0,y1:119 x2:0,y2:0]
02/17/09 14:34:12.568646 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:0,y1:0 x2:159,y2:0]
02/17/09 14:34:12.568657 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:159,y1:0 x2:159,y2:119]
02/17/09 14:34:12.568668 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:159,y1:119 x2:0,y2:119]
02/17/09 14:34:12.568683 zmc_dvideo0[-1].DB9-zm_image.cpp/1371 [0: min_y: 0, max_y:119, min_x:0.00, 1/m:-0.00]
02/17/09 14:34:12.568707 zmc_dvideo0[-1].DB9-zm_image.cpp/1371 [1: min_y: 0, max_y:119, min_x:159.00, 1/m:0.00]
02/17/09 14:34:12.568724 zmc_dvideo0[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/17/09 14:34:12.568738 zmc_dvideo0[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/17/09 14:34:12.568749 zmc_dvideo0[-1].DB9-zm_image.cpp/1406 [0 - 0: min_y: 0, max_y:119, min_x:0.00, 1/m:-0.00]
02/17/09 14:34:12.568761 zmc_dvideo0[-1].DB9-zm_image.cpp/1406 [0 - 1: min_y: 0, max_y:119, min_x:159.00, 1/m:0.00]
02/17/09 14:34:12.568776 zmc_dvideo0[-1].DB9-zm_image.cpp/1406 [1 - 0: min_y: 0, max_y:119, min_x:0.00, 1/m:-0.00]

...

02/17/09 14:34:12.596071 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:1, y:119.00]
02/17/09 14:34:12.596291 zmc_dvideo0[-1].DB1-zm_monitor.cpp/458 [Monitor test2 has function 2]
02/17/09 14:34:12.596306 zmc_dvideo0[-1].DB1-zm_monitor.cpp/459 [Monitor test2 LBF = '%N - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
02/17/09 14:34:12.596318 zmc_dvideo0[-1].DB1-zm_monitor.cpp/460 [Monitor test2 IBC = 35, WUC = 25, pEC = 10, PEC = 10, EAF = 1, FRI = 1000, RBP = 7, FM = 0]
02/17/09 14:34:12.596763 zmc_dvideo0[-1].DB1-zm_zone.cpp/889 [Got 1 zones for monitor test2]
02/17/09 14:34:12.596788 zmc_dvideo0[-1].DB5-zm_zone.cpp/918 [Parsing polygon 0,0 159,0 159,119 0,119]
02/17/09 14:34:12.596806 zmc_dvideo0[-1].DB3-zm_zone.cpp/758 [Parsing polygon string '0,0 159,0 159,119 0,119']
02/17/09 14:34:12.596819 zmc_dvideo0[-1].DB3-zm_zone.cpp/796 [Got coordinate 0,0 from polygon string]
02/17/09 14:34:12.596830 zmc_dvideo0[-1].DB3-zm_zone.cpp/796 [Got coordinate 159,0 from polygon string]
02/17/09 14:34:12.596842 zmc_dvideo0[-1].DB3-zm_zone.cpp/796 [Got coordinate 159,119 from polygon string]
02/17/09 14:34:12.596854 zmc_dvideo0[-1].DB3-zm_zone.cpp/796 [Got coordinate 0,119 from polygon string]
02/17/09 14:34:12.596868 zmc_dvideo0[-1].DB3-zm_zone.cpp/816 [Successfully parsed polygon string]
02/17/09 14:34:12.596881 zmc_dvideo0[-1].DB1-zm_zone.cpp/50 [Initialised zone 5/All - 1 - 160x120 - Rgb:ff0000, CM:3, MnAT:25, MxAT:0, MnAP:576, MxAP:14400, FB:3x3, MnFP:576, MxFP:14400, MnBS:384, MxBS:0, MnB:1, MxB:0, OF: 0]
02/17/09 14:34:12.596919 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:0,y1:119 x2:0,y2:0]
02/17/09 14:34:12.596932 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:0,y1:0 x2:159,y2:0]
02/17/09 14:34:12.596943 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:159,y1:0 x2:159,y2:119]
02/17/09 14:34:12.596955 zmc_dvideo0[-1].DB9-zm_image.cpp/1351 [x1:159,y1:119 x2:0,y2:119]
02/17/09 14:34:12.596968 zmc_dvideo0[-1].DB9-zm_image.cpp/1371 [0: min_y: 0, max_y:119, min_x:0.00, 1/m:-0.00]
02/17/09 14:34:12.596982 zmc_dvideo0[-1].DB9-zm_image.cpp/1371 [1: min_y: 0, max_y:119, min_x:159.00, 1/m:0.00]
02/17/09 14:34:12.596997 zmc_dvideo0[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/17/09 14:34:12.597009 zmc_dvideo0[-1].DB9-zm_image.cpp/1385 [Moving global edge]
02/17/09 14:34:12.597020 zmc_dvideo0[-1].DB9-zm_image.cpp/1406 [0 - 0: min_y: 0, max_y:119, min_x:0.00, 1/m:-0.00]

...

02/17/09 14:34:12.607450 zmc_dvideo0[-1].DB9-zm_image.cpp/1313 [x:1, y:119.00]
02/17/09 14:34:12.607668 zmc_dvideo0[-1].DB1-zm_monitor.cpp/1808 [Loaded monitor 5(test2), 1 zones]
02/17/09 14:34:12.607684 zmc_dvideo0[-1].INF-zmc.cpp/186 [Starting Capture]
02/17/09 14:34:12.607755 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/348 [Opening video device /dev/video0]
02/17/09 14:34:12.607786 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/354 [V4L2 support enabled, using V4L2 api]
02/17/09 14:34:12.607801 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/359 [Checking video device capabilities]
02/17/09 14:34:12.607820 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/369 [Setting up video format]
02/17/09 14:34:12.607834 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/398 [Setting up request buffers]
02/17/09 14:34:12.607990 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/420 [Setting up 8 data buffers]
02/17/09 14:34:12.608065 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/455 [Configuring video source]
02/17/09 14:34:12.608082 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/636 [Setting up static colour tables]
02/17/09 14:34:12.608099 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/1140 [Priming capture]
02/17/09 14:34:12.608110 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1144 [Queueing buffers]
02/17/09 14:34:12.608125 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1160 [Starting video stream]
02/17/09 14:34:14.501207 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/1190 [Pre-capturing]
02/17/09 14:34:14.501252 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1237 [Capturing]
02/17/09 14:34:14.501269 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1260 [Capturing 1 frames]
02/17/09 14:34:14.575191 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1284 [Captured frame 0/1 from channel 0]
02/17/09 14:34:14.575219 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1320 [Doing format conversion]
02/17/09 14:34:14.575401 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1625 [Assigning image]
02/17/09 14:34:14.575495 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/1633 [Post-capturing]
02/17/09 14:34:14.575508 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1657 [Requeing buffer 0]
02/17/09 14:34:14.575524 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/1190 [Pre-capturing]
02/17/09 14:34:14.575535 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1237 [Capturing]
02/17/09 14:34:14.575545 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1260 [Capturing 1 frames]
02/17/09 14:34:14.607188 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1284 [Captured frame 1/2 from channel 0]
02/17/09 14:34:14.607214 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1320 [Doing format conversion]
02/17/09 14:34:14.607262 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1625 [Assigning image]
02/17/09 14:34:14.607343 zmc_dvideo0[-1].DB2-zm_local_camera.cpp/1633 [Post-capturing]
02/17/09 14:34:14.607354 zmc_dvideo0[-1].DB3-zm_local_camera.cpp/1657 [Requeing buffer 1]
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

I've tested a second usb camera:

Code: Select all

usb 1-2: new full speed USB device using uhci_hcd and address 3
usb 1-2: configuration #1 chosen from 1 choice
gspca: probing 05a9:8519
ov519: I2C synced in 1 attempt(s)
ov519: starting OV7xx0 configuration
ov519: Sensor is an OV7648
gspca: probe ok
usbcore: registered new interface driver ov519
ov519: registered
The debug output is very similar to the one i posted before. The images zm shows also looks as the both I've posted.
I don't know what I've done wrong. :(

The Video for Linux Api 1 does not show anything on both cameras.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The only thing that looks odd in your zmc debug are these
02/17/09 14:34:12.567036 zmc_dvideo0[-1].ERR-zm_monitor.cpp/362 [Got unexpected memory map file size 10645924, expected 2017444]
02/17/09 14:34:12.567096 zmc_dvideo0[-1].DB1-zm_monitor.cpp/369 [Unable to map file /dev/shm/.zm.mmap.5 (2017444 bytes) to locked memory, trying unlocked]
I would suggest shutting down ZM entirely and making sure all files are removed from /dev/shm. Make sure you ls -la to check as they are call .zm.mmap.* and so won't ordinarily show up.
Phil
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

this is while zoneminder is off:

Code: Select all

/dev/shm# ls -la
insgesamt 100
drwxrwxrwt  2 root root      100 17. Feb 15:44 .
drwxr-xr-x 17 root root     5300 17. Feb 21:47 ..
-r--------  1 neo  neo  67108904 17. Feb 00:21 pulse-shm-1840126416
-r--------  1 neo  neo  67108904 17. Feb 15:18 pulse-shm-2110910497
-r--------  1 neo  neo  67108904 17. Feb 00:21 pulse-shm-2885976533
Then I started zm:

Code: Select all

/dev/shm# ls -la
insgesamt 4344
drwxrwxrwt  2 root     root          140 18. Feb 00:01 .
drwxr-xr-x 17 root     root         5300 18. Feb 00:01 ..
-r--------  1 neo      neo      67108904 17. Feb 00:21 pulse-shm-1840126416
-r--------  1 neo      neo      67108904 17. Feb 15:18 pulse-shm-2110910497
-r--------  1 neo      neo      67108904 17. Feb 00:21 pulse-shm-2885976533
-rw-------  1 www-data www-data  2017444 18. Feb 00:01 .zm.mmap.5
-rw-------  1 www-data www-data  2305524 18. Feb 00:01 .zm.mmap.6
Seems ok for me.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Can you df /dev/shm just to make sure you have enough room in there as you have several other large files present.
Phil
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

Sure, here it is:

Code: Select all

# df /dev/shm
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
tmpfs                  4086276      4344   4081932   1% /dev/shm
this should be enough I think. :)
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

There is a new problem with svn 2778. Zoneminder doesn't start anymore.

Code: Select all

# cat /var/log/zm/zmpkg.log
19.02.2009 02:43:04.121028 zmpkg[15900].INF [Command: start]
19.02.2009 02:43:04.302873 zmpkg[15900].ERR [Unable to run "sudo -u www-data /usr/local/bin/zmfix", output is ""]
gdb only outputs this:

Code: Select all

# gdb /usr/local/bin/zmfix
GNU gdb (GDB) 6.8.50.20090106-cvs-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http>...
(gdb) run -a
Starting program: /usr/local/bin/zmfix -a
[Thread debugging using libthread_db enabled]

Program exited with code 0377.
(gdb)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you tried running the sudo command directly?
Phil
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

Have you tried running the sudo command directly?
Could you please explain this a bit more? Do you mean wether I ran "sudo -u www-data /usr/loacl/bin/zmfix -a" in commandline?

EDIT:

Code: Select all

# sudo -u www-data /usr/local/bin/zmfix -a ; echo $?
# 255
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

If it is getting an error then something should appear in your syslog. Alternatively you could try setting ZM_DBG_PRINT=1 to on in your environment before running it and see what it prints out.
Phil
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

ZM_DBG_PRINT=1
That was a good hint :). I had to run zmupdate.pl -f, becasue there was a config mismatch(I had 180 items, expected 181).
Now Zoneminder runs, but Both cameras still show the same crappy video.
Locked