servfox和spcaview的使用

Kernel version :2.6.22.6
Crosstool      :arm-linux-gcc-3.4.1
Board          :FL2440
System         :Ubuntu 10.10
Source         :servfox.rar, spcaview-20061208.rar, SDL-1.2.13.rar

/*********************************************/

servfox -g -d /dev/video0  -s 320x240 -w 7070

spcaview -g -s 320x240 -w 192.168.0.11:7070


注意:一定要加-g这个参数,否则会出现SDL依赖之类的错误。

/**********************************************/


1.servfox的移植 采集摄像头数据
解压,修改Makefile,第二行的-I 跟的是内核源码的头文件目录

CC=arm-linux-gcc

SERVFLAGS= -O2 -DLINUX $(WARNINGS) -I /home/test/temp6410/linux-2.6.27.6/include


再修改spcav4l.c,将蓝色字部分都注释掉,否则移植到板上会出现"Not a JPEG webcam sorry Abort "或者“could't set video palette Abort"的 错误


/* Only jpeg webcam allowed */
/*if(vd->cameratype != JPEG) {
exit_fatal ("Not a JPEG webcam sorry Abort !");
}*/
   if(debug) printf ("StreamId: %d Camera/n", vd->cameratype);
/* probe all available palette and size Not need on the FOX always jpeg
   if (probePalette(vd ) < 0) {
   exit_fatal ("could't probe video palette Abort !");
   }
   if (probeSize(vd ) < 0) {
   exit_fatal ("could't probe video size Abort !");
   }

err = check_palettesize(vd);
if(debug) printf (" Format asked %d check %d/n",vd->formatIn, err);
*/
vd->videopict.palette = vd->formatIn;
vd->videopict.depth = GetDepth (vd->formatIn);
vd->bppIn = GetDepth (vd->formatIn);

   //vd->framesizeIn = (vd->hdrwidth * vd->hdrheight * vd->bppIn) >> 3; // here alloc the output ringbuffer
   vd->framesizeIn = (vd->hdrwidth * vd->hdrheight >> 2 ); // here alloc the output ringbuffer jpeg only
erreur = SetVideoPict (vd);
erreur = GetVideoPict (vd);
/* if (vd->formatIn != vd->videopict.palette ||
      vd->bppIn != vd->videopict.depth)
    exit_fatal ("could't set video palette Abort !");
if (erreur < 0)
    exit_fatal ("could't set video palette Abort !");*/

之后make一下,会生成servfox文件,将它放到FL2400上,输入命令./servfox -g -d /dev/video0  -s 320x240 -w 7070 ,打印出:
servfox version: 1.1.2 date: 07:10:2005 (C) mxhaard@magic.fr
Waiting .... for connection. CTrl_c to stop !!!!
zc3xx: probe 2wr ov vga 0x0000

 

2.Linux上编译spcaview.由于此软件包依赖与libsdl,所以在安装spcaview之前,必须要安装 SDL-1.2.13.

解压源码包:  tar zxvf SDL-1.2.13.tar.gz

安装源码包:  cd SDL-1.2.13; 运行 ./configure 文件,编译文件 make ,安装文件 make install。在安装的过程中,注意安装的路径,可以通过查看配置文件获得安装路径或者修改路径。

 

安装spcaview软件:

tar zxvf spcaview-20061208;cd spcaview-20061208;make

ok啦,在源文件目录上,可以看到三个可执行文件,spcacat spcaserv spcaview

spcacat 简单图片的抓取工具,不能用于网络监视客户端。

Spcaserv shi 流媒体服务器,

Spcaview 工具是用来纪录数据流,也能用来播放数据,也能作为网络监视客户端用。

我们可以在Linux上运行: ./spcaview -g -s 320x240 -w 192.168.0.11:7070

其中192.168.0.11是服务器的IP地址,这样我们就可以在PC机上看见USB摄像头采集进来的数据了。

 

 

参考链接:

使用servfox 和spcaview架设嵌入式Linux视频服务器:
http://blogold.chinaunix.net/u2/81592/showart_1891319.html

 

 

 

在arm上运行servfox死机

09-26

我在arm上做视频采集,在arm端运行./servfox -g -d /dev/video0 -s 320x240 -w 7070,板子出现:rnservfox version: 1.1.2 date: 07:10:2005 (C) mxhaard@magic.frrnWaiting .... for connection. CTrl_c to stop !!!!rnrn我在pc(fedora8)机上运行spcaview -w 192.168.1.123后,arm板死机了。同时在arm端出现以下内容,并死机:rn[root@lyt /mnt]# rn[root@lyt /mnt]# ./servfox -g -d /dev/video0 -s 320x240 -w 7070 rn servfox version: 1.1.2 date: 07:10:2005 (C) mxhaard@magic.fr rnWaiting .... for connection. CTrl_c to stop !!!! rnGot connection from 192.168.1.112 rnUnable to handle kernel NULL pointer dereference at virtual address 00000000 rnpgd = c3950000 rn*pgd = 3394f001, *pmd = 3394f001, *pte = 00000000, *ppte = 00000000 rnInternal error: Oops: ffffffff rnCPU: 0 rnpc : [] lr : [] Tainted: P rnsp : c3785be4 ip : 00000000 fp : c3785c04 rnr10: 00000020 r9 : 80000093 r8 : c39a4c0c rnr7 : c037b120 r6 : 00004000 r5 : 00000004 r4 : 00000001 rnr3 : 00000000 r2 : c39a4c0c r1 : 000001f1 r0 : 000001f1 rnFlags: nzCv IRQs off FIQs on Mode SVC_32 Segment user rnControl: C000317F Table: 33950000 DAC: 00000015 rnProcess servfox (pid: 67, stackpage=c3785000) rnStack: (0xc3785bd4 to 0xc3786000) rn5bc0: c0021560 c0021458 20000093 rn5be0: ffffffff 00000001 00000004 c39a4c00 c037b120 c39a4440 c3785c14 c3785c08 rn5c00: c0021560 c0021438 c3785c34 c3785c18 c0023f60 c002155c 00000001 00000001 rn5c20: c3785ca8 c037b120 c3785c84 c3785c38 c00241e8 c0023f24 c3785c88 c3c6f3a0 rn5c40: c3785c60 c3785c50 c010ca18 c010c95c 00000000 c3785c78 c3785c64 c037b120 rn5c60: c3b96000 c3785ca8 00000001 00000614 00000000 c035b800 c3785ca4 c3785c88 rn5c80: c0023b78 c0024114 00000000 c3b96000 00000614 c3b96000 c3785cc8 c3785ca8 rn5ca0: c0023d00 c0023b3c 33b96000 c3b96000 c3b78c60 33e991c0 00000000 c3785d00 rn5cc0: c3785ccc c00fe1d0 c0023cb8 00000001 00000000 00000040 00000001 c3b78c60 rn5ce0: 33e991c0 c48d01c0 00000001 c035b800 c39a4820 c3785d48 c3785d04 c00fcd3c rn5d00: c00fe114 00000020 00000003 00000000 40000013 00000001 c48f06a0 33e991c0 rn5d20: c4970000 00000000 c39a4820 c48f06a0 00000000 c3785e20 c035b800 c3785d58 rn5d40: c3785d4c c00f3ad8 c00fc874 c3785da0 c3785d5c c493bc44 c00f3aa8 c4970000 rn5d60: c493afbc 00000000 c3b78be0 c39a4820 c39a4820 c48f06a0 00000000 c3785e20 rn5d80: c035b800 c00fc85c 00000000 c3b78be0 c39a4820 c3785dc8 c3785da4 c00fedfc rn5da0: c00fc69c 00000002 c035b800 e9000000 c01cad18 00000002 c01d2cc0 c3785df0 rn5dc0: c3785dcc c00ffa50 c00fed2c c0305640 0000001a 04000000 c01cad18 c01ca9d8 rn5de0: c01d2cc0 c3785e1c c3785df4 c001bf0c c00ff9d4 ea000000 c3785e68 00000001 rn5e00: c0167680 90000013 ffffffff c377f0a0 c3785e90 c3785e20 c001b300 c001be5c rn5e20: 000d7484 c377f3e0 000005a8 a311ef3a 7a3de3ef c1f52fc6 4135b893 366b27fe rn5e40: d18c366b c3784000 c377f0a0 c3785e90 00000270 c3785e68 c012838c c0167680 rn5e60: 90000013 ffffffff c377f0a0 000005a8 000005a8 c3c6f620 c3d68af8 c3d68a20 rn5e80: 00000000 c3785ef0 c3785e94 c012838c c0167468 c3785ec0 c3950015 c3d68a74 rn5ea0: 000d7142 00000edd 00001c48 000005a8 00000000 00000000 c3785f4c c01c8d34 rn5ec0: 00000000 7fffffff c3d68a20 c3785f4c 00002b25 00002b25 000d54fa c3784000 rn5ee0: 00000001 c3785f0c c3785ef4 c0146fa0 c0127f7c 00000000 c3785f10 c37a43c0 rn5f00: c3785f40 c3785f10 c0109570 c0146f60 00000043 00000000 00000000 00000000 rn5f20: 00000000 000d54fa c3c34cc0 ffffffea 00000000 c3785f78 c3785f44 c01097b8 rn5f40: c01094f4 000d54fa 00002b25 00000000 00000000 c3785f44 00000001 00000000 rn5f60: 00000000 00000000 00002b25 c3785fa4 c3785f7c c004b450 c0109728 c005a400 rn5f80: c004c174 00002b25 0008b774 00000080 00000004 c001b7c4 00000000 c3785fa8 rn5fa0: c001b640 c004b384 00002b25 c0027a3c 00000007 000d54fa 00002b25 00000000 rn5fc0: 00002b25 0008b774 00000080 00000080 0008b770 00000007 00000001 00008000 rn5fe0: 00000000 bf5ffaf4 0000ee74 0000ee88 60000010 00000007 fdffffff ffffffff rnBacktrace: rnFunction entered at [] from [] rn r8 = C39A4440 r7 = C037B120 r6 = C39A4C00 r5 = 00000004 rn r4 = 00000001 rnFunction entered at [] from [] rnFunction entered at [] from [] rn r7 = C037B120 r6 = C3785CA8 r5 = 00000001 r4 = 00000001 rnFunction entered at [] from [] rnFunction entered at [] from [] rn r6 = C3B96000 r5 = 00000614 r4 = C3B96000 rnFunction entered at [] from [] rn r7 = 00000000 r6 = 33E991C0 r5 = C3B78C60 r4 = C3B96000 rnFunction entered at [] from [] rnFunction entered at [] from [] rnFunction entered at [] from [] rnFunction entered at [] from [] rn r6 = C39A4820 r5 = C3B78BE0 r4 = 00000000 rnFunction entered at [] from [] rnFunction entered at [] from [] rnFunction entered at [] from [] rnFunction entered at [] from [] rn r8 = 00000000 r7 = C3D68A20 r6 = C3D68AF8 r5 = C3C6F620 rn r4 = 000005A8 r2 = 000005A8 r1 = C377F0A0 rnFunction entered at [] from [] rnFunction entered at [] from [] rn r6 = C37A43C0 r5 = C3785F10 r4 = 00000000 rnFunction entered at [] from [] rn r7 = 00000000 r6 = FFFFFFEA r5 = C3C34CC0 r4 = 000D54FA rnFunction entered at [] from [] rn r4 = 00002B25 rnFunction entered at [] from [] rn r8 = C001B7C4 r7 = 00000004 r6 = 00000080 r5 = 0008B774 rn r4 = 00002B25 rnCode: e083300c e1a08002 e3530000 13a03000 (15833000) rnKernel panic: Aiee, killing interrupt handler! rnIn interrupt handler - not syncing rn rn不知道这是什么原因?大家帮忙看看!rn我用的usb摄像头驱动是:spca5xx.o;无线玩卡的驱动是:rt73.orn 我分析可能出现问题的原因是:两个USB之间有冲突,不知道是否正确,不过也不知道解决方法!rn

spcaview的问题,各位高手帮忙看看呐

08-23

环境:ubuntu9.04 、spcaview-20071224rnrn我在终端运行spcaview -d /dev/video0rn出现如下信息,并显示花屏,rn Spcaview version: 1.1.8 date: 25:12:2007 (C) mxhaard@magic.fr rnInitializing SDL.rnSDL initialized.rnbpp 3 format 15rnUsing video device /dev/video0.rnInitializing v4l.rn**************** PROBING CAMERA *********************rnCamera found: PC Camera rnHmm did not support Video_channelrn*****************************************************rn grabbing method default MMAP asked rnVIDIOCGMBUF size 475136 frames 4 offets[0]=0 offsets[1]=118784rnVIDIOCGPICTrnbrightnes=32896 hue=0 color=0 contrast=32768 whiteness=39321 rndepth=8 palette=0rnVIDIOCSPICTrnbrightness=32896 hue=0 color=0 contrast=32768 whiteness=39321 rndepth=24 palette=15 rnrncvsync errrn.......rn当我运行spcaview -f yuv -o myavifile.avirn信息如下:rnSpcaview version: 1.1.8 date: 25:12:2007 (C) mxhaard@magic.fr rn*** buffer overflow detected ***: spcaview terminatedrn======= Backtrace: =========rn/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7dadda8]rn/lib/tls/i686/cmov/libc.so.6[0xb7dabeb0]rn/lib/tls/i686/cmov/libc.so.6[0xb7dab7b7]rn/lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0xb7dab6a4]rnspcaview[0x804e3e5]rn/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7cc6775]rnspcaview[0x80499e1]rn======= Memory map: ========rn08048000-0805b000 r-xp 00000000 08:0b 18650 /usr/local/bin/spcaviewrn0805b000-0805c000 r--p 00012000 08:0b 18650 /usr/local/bin/spcaviewrn0805c000-0805d000 rw-p 00013000 08:0b 18650 /usr/local/bin/spcaviewrn

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试