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 »

Hi, are there new infos / tips on this error?

I tried the ubuntu live cd with preinstalled zm and I see the same behavior with it.

Today I downloaded newest ffmpeg and zoneminder from svn. I tried with the configure option "--enable-mmap=yes/no"

--enable-mmap=yes:

Code: Select all

Got unexpected memory map file size 2305524, expected 18433204
--enable-mmap=no:

Code: Select all

Mar  7 02:36:10 servereis zmdc[3686]: INF [Starting pending process, zmc -d /dev/video0]
Mar  7 02:36:10 servereis zmdc[3686]: INF ['zmc -d /dev/video0' starting at 09/03/07 02:36:10, pid = 5929]
Mar  7 02:36:10 servereis zmdc[5929]: INF ['zmc -d /dev/video0' started at 09/03/07 02:36:10]
Mar  7 02:36:10 servereis zmc_dvideo0[5929]: INF [Debug Level = 0, Debug Log = <none>]
Mar  7 02:36:10 servereis zmc_dvideo0[5929]: INF [Starting Capture]
Mar  7 02:36:11 servereis kernel: zc3xx: probe 2wr ov vga 0x0000
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: INF [Got signal 11 (Segmentation fault), crashing]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Signal address is 0x10216, no eip]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Backtrace: /lib/libpthread.so.0 [0x7f67dd2bb7b0]]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Backtrace: /lib/libc.so.6(memcpy+0x283) [0x7f67dc1f4153]]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Backtrace: /usr/local/bin/zmc [0x41c022]]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Backtrace: /usr/local/bin/zmc [0x424716]]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Backtrace: /usr/local/bin/zmc [0x40698a]]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xe6) [0x7f67dc1955a6]]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: ERR [Backtrace: /usr/local/bin/zmc [0x4062e9]]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: INF [Backtrace complete, please execute the following command for more information]
Mar  7 02:36:12 servereis zmc_dvideo0[5929]: INF [addr2line -e /usr/local/bin/zmc 0x7f67dd2bb7b0 0x7f67dc1f4153 0x41c022 0x424716 0x40698a 0x7f67dc1955a6 0x4062e9]
Mar  7 02:36:12 servereis zmdc[3686]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 11]
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

I compiled vlc from git and my cam works perfect with v4l2.
With a fresh compiled zoneminder I still get a grey or green jerky video.
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

I was able to make a video from the camera stream using zoneminder. This video was created while using the palette RGB24 and V4L2.if I select YUV422P I get a green video.
I discovered this in my zmdc.log:

Code: Select all

03/10/09 09:08:45.427722 zmdc[31528].INF [Server starting at 09/03/10 09:08:45]
03/10/09 09:08:48.588818 zmdc[31528].INF ['zmc -d /dev/video1' starting at 09/03/10 09:08:48, pid = 31650]
03/10/09 09:08:48.795672 zmdc[31528].INF ['zmfilter.pl' starting at 09/03/10 09:08:48, pid = 31660]
03/10/09 09:08:48.960413 zmdc[31528].INF ['zmaudit.pl -c' starting at 09/03/10 09:08:48, pid = 31663]
03/10/09 09:08:49.121301 zmdc[31528].INF ['zmwatch.pl' starting at 09/03/10 09:08:49, pid = 31665]
03/10/09 09:08:49.251420 zmdc[31528].INF ['zmupdate.pl -c' starting at 09/03/10 09:08:49, pid = 31667]
03/10/09 09:09:21.852318 zmdc[31528].INF ['zmc -d /dev/video1' stopping at 09/03/10 09:09:21]
03/10/09 09:09:21.863993 zmdc[31528].INF ['zmc -d /dev/video1' exited normally]
03/10/09 09:09:22.021671 zmdc[31528].INF ['zmc -d /dev/video1' starting at 09/03/10 09:09:22, pid = 31853]
03/10/09 09:09:22.151043 zmdc[31528].WAR [Can't find process with command of 'zma -m 1']
neosmatrix
Posts: 24
Joined: Wed Jan 30, 2008 8:22 pm

Post by neosmatrix »

Hi,

I see more and more programms, which ran into the problem I got with zoneminder. Only Cheese (which has no options) displays the video.

I tried very much combinations of ffmpeg & zonemonder, but I can't figure out my problem. I tried even a fresh install, but nothing has changed.

It seems that the video palette is not set, no matter which setting I use.

Code: Select all

# v4l-info

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
        driver                  : "zc3xx"
        card                    : "USB Camera (046d:08d7)"
        bus_info                : "usb-0000:00:1a.2-2"
        version                 : 2.5.0
        capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
        index                   : 0
        name                    : "zc3xx"
        type                    : CAMERA
        audioset                : 0
        tuner                   : 0
        std                     : 0x0 []
        status                  : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
        index                   : 0
        type                    : VIDEO_CAPTURE
        flags                   : 1
        description             : "JPEG"
        pixelformat             : 0x4745504a [JPEG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
        type                    : VIDEO_CAPTURE
        fmt.pix.width           : 320
        fmt.pix.height          : 240
        fmt.pix.pixelformat     : 0x4745504a [JPEG]
        fmt.pix.field           : NONE
        fmt.pix.bytesperline    : 320
        fmt.pix.sizeimage       : 29390
        fmt.pix.colorspace      : JPEG
        fmt.pix.priv            : 1

controls
    VIDIOC_QUERYCTRL(BASE+0)
        id                      : 9963776
        type                    : INTEGER
        name                    : "Brightness"
        minimum                 : 0
        maximum                 : 255
        step                    : 1
        default_value           : 128
        flags                   : 0
    VIDIOC_QUERYCTRL(BASE+1)
        id                      : 9963777
        type                    : INTEGER
        name                    : "Contrast"
        minimum                 : 0
        maximum                 : 256
        step                    : 1
        default_value           : 128
        flags                   : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
        name                    : "USB Camera (046d:08d7)"
        type                    : 0x1 [CAPTURE]
        channels                : 1
        audios                  : 0
        maxwidth                : 640
        maxheight               : 480
        minwidth                : 48
        minheight               : 32

channels
    VIDIOCGCHAN(0)
        channel                 : 0
        name                    : "zc3xx"
        tuners                  : 0
        flags                   : 0x0 []
        type                    : CAMERA
        norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
    VIDIOCGAUDIO
        audio                   : 0
        volume                  : 0
        bass                    : 0
        treble                  : 0

picture
    VIDIOCGPICT
        brightness              : 32896
        hue                     : 0
        colour                  : 0
        contrast                : 32768
        whiteness               : 39321
        depth                   : 8
        palette                 : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
        x                       : 0
        y                       : 0
        width                   : 320
        height                  : 240
        chromakey               : 0
        flags                   : 0

Regards,
Sascha
Locked