Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 13349

Graphics, sound and multimedia • Re: ADV7282-M on rpi5 - 2

$
0
0
Hi,
I just got ADV chip running on a custom PCB to capture Playstation2 video output for some goofy AI training. I've configured the RPi5 according to this and previous thread, and got a successful adv recognition confirmed in dmesg output:

Code:

[    2.909954] i2c_designware 1f00080000.i2c: i2c_dw_handle_tx_abort: lost arbitration[    2.929339] rp1-cfe 1f00128000.csi: Using sensor adv7180 11-0021 for capture[    2.929428] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-csi2_ch0] node id 0 successfully as /dev/video0[    2.929516] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-embedded] node id 1 successfully as /dev/video1[    2.929541] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-csi2_ch2] node id 2 successfully as /dev/video2[    2.929568] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-csi2_ch3] node id 3 successfully as /dev/video3[    2.929590] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-fe_image0] node id 4 successfully as /dev/video4[    2.929681] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-fe_image1] node id 5 successfully as /dev/video5[    2.929718] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-fe_stats] node id 6 successfully as /dev/video6[    2.929739] rp1-cfe 1f00128000.csi: Registered [rp1-cfe-fe_config] node id 7 successfully as /dev/video7[    2.930537] adv7180 11-0021: chip id 0x42 found @ 0x21 (Synopsys DesignWare I2C adapter)
BUT... As you can see there is a strange error about lost i2c arbitration, confirmed with logic analyzer(NAK on ADV's register read).

Ignoring this error, I successfully ran the pipeline setup commands and the gstreamer launch command with the following output:

Code:

gst-launch-1.0 -evvv v4l2src ! video/x-raw,width=720,height=576,format=UYVY ! videoconvert ! video/x-raw,width=720,height=576,format=I420 ! kmssinkSetting pipeline to PAUSED ...Pipeline is live and does not need PREROLL .../GstPipeline:pipeline0/GstKMSSink:kmssink0: display-width = 3440/GstPipeline:pipeline0/GstKMSSink:kmssink0: display-height = 1440Pipeline is PREROLLED ...Setting pipeline to PLAYING ...New clock: GstSystemClock/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)720, height=(int)576, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt601/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)720, height=(int)576, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt601/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)120/1, interlace-mode=(string)progressive, format=(string)I420, colorimetry=(string)bt601/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)120/1, interlace-mode=(string)progressive, format=(string)I420, colorimetry=(string)bt601/GstPipeline:pipeline0/GstKMSSink:kmssink0.GstPad:sink: caps = video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)120/1, interlace-mode=(string)progressive, format=(string)I420, colorimetry=(string)bt601/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-raw, width=(int)720, height=(int)576, framerate=(fraction)120/1, interlace-mode=(string)progressive, format=(string)I420, colorimetry=(string)bt601/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, width=(int)720, height=(int)576, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt601/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)720, height=(int)576, format=(string)UYVY, framerate=(fraction)120/1, interlace-mode=(string)progressive, colorimetry=(string)bt601
Checking dmesg...

Code:

[ 4090.464295] rp1-cfe 1f00128000.csi: Using a link rate of 432 Mbps
So in theory everything should be fine right? Unfortunately I am not familiar with the gstreamer and v4l2, so it is hard for me to check if the video is received correctly. Using filesinks instead of kmssink creates empty files despite adding muxers and encoders to the gst pipeline. VLC cannot open the video device because it is used by gstream...

Regarding all of the above - two questions:
1. should I worry about the lost i2c arbitration despite the driver properly setting up the device?
2. How can I easily preview the CSI stream while the gstreamer is running?

Thanks

Statistics: Posted by kimchimaster — Thu Jul 17, 2025 7:09 pm



Viewing all articles
Browse latest Browse all 13349

Latest Images

Trending Articles



Latest Images