2010-07-05 13:50:52 Colors problem with ADV7183B and BF548
Massimo Savina (ITALY)
Message: 90921
Hi,
after some months of idle, I'm working again at my video capture project with ADV7183B and BF548.
Ive design my own hardware with BF548 and ADV7183B connected over EPPI1
Now I can capture video from PAL composite signal but colors are wrong.
bars.png
TranslateQuoteReplyEditDelete
2010-07-05 13:58:47 Re: Colors problem with ADV7183B and BF548
Massimo Savina (ITALY)
Message: 90922
Sorry for incomplete post.
As you can see in attached bars at the top are those acquired with ffmpeg, while those below are the originals.
some colors are the same, while others do not.
I've already verified that the signal is PAL.
Quartz is 27MHz.
Electrical signals are good.
Do you have any idea or something to check?
Thanks,
Massimo.
TranslateQuoteReplyEditDelete
2010-07-05 14:56:25 Re: Colors problem with ADV7183B and BF548
Mike Frysinger (UNITED STATES)
Message: 90924
what driver exactly are you using ?
QuoteReplyEditDelete
2010-07-05 16:40:56 Re: Colors problem with ADV7183B and BF548
Massimo Savina (ITALY)
Message: 90929
The uClinux version that I'm using is the 2009R1.
The drivers are blackfin_cam.c and adv7183b.c modified to use EPPI1 instead of PPI0
....
Image Name: Linux-2.6.28.10-ADI-2009R1
Created: 2010-07-01 21:00:14 UTC
....
root:/> modprobe i2c-bfin-twi
i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc00700
i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc02200
root:/> modprobe blackfin-cam
Linux video capture interface: v2.00
driver for ADV7183B get_camops
driver for ADV7183B get_camops
ADV7183B: detecting client on address 0x40
driver for ADV7183B init
ADV7183B: V4L driver Blackfin CMOS Camera now ready
ADV7183B: i2c driver ready
root:/>
In user space I'm using ffmpeg:
root:/> ffmpeg -f video4linux -s 360x288 -i /dev/video0 -f mpegts udp:192.168.1.41:1234
FFmpeg version UNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --source-path=/home/massimo/blackfin/uClinux-dist/lib/ffmpeg/build/../ffmpeg-svn-11114 --target-os=Linux --cpu=bfin --arch=bfin --extra-ldflags= -mcpu=bf548-0.2 --enable-static --enable-shared --enable-gpl --enable-pp --disable-strip --cross-prefix=bfin-linux-uclibc-
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on May 29 2010 18:17:43, gcc: 4.1.2 (ADI svn)
Input #0, video4linux, from '/dev/video0':
Duration: N/A, start: 1541277.724000, bitrate: 41472 kb/s
Stream #0.0: Video: rawvideo, uyvy422, 360x288 [PAR 0:1 DAR 0:1], 41472 kb/s, 25.00 tb(r)
Output #0, mpegts, to 'udp:192.168.1.41:1234':
Stream #0.0: Video: mpeg2video, yuv420p, 360x288 [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
frame= 223 fps= 25 q=2.0 size= 80kB time=8.9 bitrate= 74.2kbits/s
Let me know if you need other infos.
Tanks.
Massimo.
TranslateQuoteReplyEditDelete
2010-07-06 03:38:28 Re: Colors problem with ADV7183B and BF548
Michael Hennerich (GERMANY)
Message: 90946 A cross check - if you use 720×288 resolution - do the colors look ok?
If yes - then I would say it is caused by scaling.
Scaling YCrCb 4:2:2 (ITU-R BT.656) is not like dropping every second pixel.
QuoteReplyEditDelete
2010-07-07 15:18:47 Re: Colors problem with ADV7183B and BF548
Massimo Savina (ITALY)
Message: 91011
So, if I capture with resolution you suggested,
ffmpeg -f video4linux -s 720x288 -i /dev/video0 -qscale 5 -f mpegts udp:192.168.1.37:1234
I get an image multiplied by 4, as you can see in the attached image.
Also colors appear wrong.
Regards.
Massimo.
vlcsnap-2010-07-07-21h09m28s80.png
original.png
TranslateQuoteReplyEditDelete
2010-07-08 08:19:09 Re: Colors problem with ADV7183B and BF548
Massimo Savina (ITALY)
Message: 91045
Some of you have already captured on port EPPI1 of the BF548 through AD7183B?
Which driver has used? Can I get your sources to be compared with mine?
Thanks,
Massimo.
TranslateQuoteReplyEditDelete
2010-07-10 07:18:47 Re: Colors problem with ADV7183B and BF548
Massimo Savina (ITALY)
Message: 91127
Solved!
There was an error in adv7183b.h defines.
DMA_WDSIZE_16 must be equal to WDSIZE_32 in BF548 environment and not WDSIZE_16.
Now image captured appears Ok!. (see attachment!)
Tanks.
Massimo
vlcsnap-2010-07-10-11h53m09s0.png