2009-10-18 19:34:28 camserv or w3cam ok ?
Vivek Vaid (UNITED STATES)
Message: 81416
I am trying to get streaming images out of my custom bf537 board. I am not keen on any particular package to do this for now, and have tried the following three, with different degree of faliures. if anyone has got any of these working stable, please help-
my dist: uClinux-dist-2009R1-RC1
(1) camserv-
1970-01-01 03:44:09 [main] Trying to read config file "/etc/default/camserv.cfg":
1970-01-01 03:44:09 [main] Success reading config "/etc/default/camserv.cfg"
1970-01-01 03:44:09 [camconfig] Using default of "2359296" for [main]:shm_alloc
1970-01-01 03:44:10 [main] Picture taker could not be created!
in picture_loop.c in cpid = fork() returns -1.
(2) w3camd
w3camd.c: pid = 298
incoming connection..Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
Deferred Exception context
CURRENT PROCESS:
COMM=w3camd PID=299
CPU = 0
TEXT = 0x008b8000-0x008bc764 DATA = 0x0080a764-0x0080acb8
BSS = 0x0080acb8-0x00880000 USER-STACK = 0x0089fea0
followed by large debug info attached here ->
w3cam_dump_1.txt
QuoteReplyEditDelete
2009-10-18 19:49:56 Re: camserv or w3cam ok ?
Vivek Vaid (UNITED STATES)
Message: 81417
Continued from question above -
(2a) vidcat-
root:/> vidcat -d /dev/video0 -f jpeg -o cap1
mmap(): No such device
Error: Can't get image
(3) ffmpeg runs for some seconds and then quits. I think there is another thread on similar issues with ffmpeag by sombody else-
root:/> ffmpeg -f video4linux -s 320x240 -i /dev/video0 -f mpegts udp:192.168.1.
64:1234
FFmpeg version UNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --source-path=/home/vivek/bfin/uClinux-dist-2009R1-RC1/lib/ffmpeg/bui-
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on Sep 28 2009 21:28:48, gcc: 4.1.2 (ADI svn)
Input #0, video4linux, from '/dev/video0':
Duration: N/A, start: 14920.080000, bitrate: 30720 kb/s
Stream #0.0: Video: rawvideo, uyvy422, 320x240 [PAR 0:1 DAR 0:1], 30720 kb/s, 25.00 tb(r)
Output #0, mpegts, to 'udp:192.168.1.64:1234':
Stream #0.0: Video: mpeg2video, yuv420p, 320x240 [PAR 0:1 DAR 0:1], q=2-31, 200 kb/s, 25.00 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
syslogd invoked oom-killer: gfp_mask=0x200d2, order=0, oomkilladj=0bits/s
Hardware Trace:
0 Target : <0x00103b20> { _dump_stack + 0x0 }
followed by large debug info, which eventually leads to system stall. (file attached.)
I could have blamed my custom hardware board for this, but while ffmpeg runs i get correct video stream. Also i have been able to get the images using the v4l_test utility.
Any help would be great. thanks!
ffmpeg_dump_1.txt