2009-08-06 08:53:56 green-pink capture : ov9655 + ffmpeg + ADZS-BF537-STAMP
Roland Laurès (FRANCE)
Message: 78423
Hi,
I\'m trying to put in place a demonstrator with an ov9655 video sensor. I succeed to get a stream from the sensor to a ffmpeg server over the ethernet link. The problem I now encounter is that the video captured is green with sometime pink zones.
Surveyor\'s people told me that it was certainly a miss understanding of ffmpeg which think that the stream is encoded in rgb instead of uyvy like it should be. The fact is that I configuring ffmpeg with -pix_fmt option is not working i saw later that was because the ov9655 driver is partialy implemented. Then I find a thread where it was saying that the ov9655 should work with this driver in it\'s default configuration.
It seems to be almost true... I get something on the stream... But it is quite difficult to know what I have... I think I certainly did not set correctly a specific configuration parameter for this ov9655 sensor... But I cannot find out which one and where to set it etc...
here is the output of ffmpeg :
----------------------------------------------------------------------
root:/> ffmpeg -f video4linux -r 10 -s qcif -i /dev/video0 192.168.1.20:8090/live1.ffm
FFmpeg version UNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --cross-compile --enable-mmx --disable-altivec --disable-ipv6 --disable-zlib --source-path=/home/roland/Developpement/uClinux-dist-2008R1.5-RC3-EVK/lib/ffmpeg/build/../ffmpeg-svn-11114 --target-os=Linux --cpu=bfin --arch=bfin --extra-ldflags= -mcpu=bf537-0.2 --disable-static --enable-shared --enable-gpl --enable-pp --disable-strip --cross-prefix=bfin-linux-uclibc- --disable-ffserver --disable-ffplay --disable-encoders --disable-decoders --disable-muxers --disable-demuxers --enable-encoder=mpeg4 --enable-encoder=flv --enable-muxer=mp4 --enable-muxer=flv --enable-muxer=ffm --enable-muxer=avi --enable-muxer=asf --enable-muxer=asf_stream --enable-decoder=rawvideo --enable-encoder=rawvideo --enable-demuxer=ffm --enable-demuxer=mp4 --enable-demuxer=rawvideo --enable-muxer=rawvideo
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on Aug 5 2009 16:19:55, gcc: 4.1.2 (ADI svn)
OV9655 control call : cmd:1 arg:83887104
OV9655 control call : cmd:1 arg:11534480
Input #0, video4linux, from \'/dev/video0\':
Duration: N/A, start: 1167611468.608034, bitrate: 4055 kb/s
Stream #0.0: Video: rawvideo, uyvy422, 176x144 [PAR 0:1 DAR 0:1], 4055 kb/s, 10.00 tb(r)
Output #0, ffm, to \' 192.168.1.20:8090/live1.ffm\':
Stream #0.0: Video: mpeg4, yuv420p, 176x144 [PAR 0:1 DAR 0:1], q=3-31, 100 kb/s, 15.00 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[mpeg4 @ 0xd861b8]rc buffer underflow
frame= 18 fps= 0 q=12.7 size= 20kB time=1.2 bitrate= 136.5kbits/s
frame= 32 fps= 0 q=13.4 Lsize= 32kB time=2.1 bitrate= 122.9kbits/s
video:5kB audio:0kB global headers:0kB muxing overhead 522.492401%
root:/>
----------------------------------------------------------
If someone have an Idea.
Thanks
QuoteReplyEditDelete
2009-09-07 11:33:59 Re: green-pink capture : ov9655 + ffmpeg + ADZS-BF537-STAMP
Roland Laurès (FRANCE)
Message: 79653
after a long road, i finally was able to get a clear image. I try to integrate a driver made for the normal linux kernel, but didn't succeed. Instead I made work a full configuration of the ov9655 sensor in 640x480. I'm still testing it, but I can now capture 15 fps and compress it with ffmpeg (in flv or mpeg4) and then send it to an ffserver over the internet through a 3G modem.
I have some modifications to contribute to the distribution. If someone can help me to know how to send it to you.
Roland
QuoteReplyEditDelete
2009-09-08 12:29:34 Re: green-pink capture : ov9655 + ffmpeg + ADZS-BF537-STAMP
Robin Getz (UNITED STATES)
Message: 79685
Roland:
Create a diff:
https://docs.blackfin.uclinux.org/doku.php?id=patches_and_diffs#creating_a_diff
Send it to us:
https://docs.blackfin.uclinux.org/doku.php?id=processes#submitting_a_patch
-Robin
QuoteReplyEditDelete
2010-02-05 17:03:23 Re: green-pink capture : ov9655 + ffmpeg + ADZS-BF537-STAMP
Joseph Orender (UNITED STATES)
Message: 85715
Did the changes ever get submitted? I am noticing the same problem on my ov9655. Purple and green.
Thank you in advance.
-Joseph