Hi,
I am trying to capture a Video from a TW9910 on our IMX6Q (We run Android 5.0.2 with 3.10.53 Kernel)
Analog Camera ---->TW9910 -----BT656----> imx6q CSI0
I took the ADV7180 driver from "/drivers/media/platform/mxc/capture/adv7180" and removed all the I2C communication related to ADV7180.Then I used the following code to initialize the TW9910 for ITU-R BT.656 (according to the datasheet):
i2c_smbus_write_byte_data(priv->client,0x02, 0x40);
i2c_smbus_write_byte_data(priv->client,0x03, 0xA6);
//######## BT.656 (Datasheet)
i2c_smbus_write_byte_data(priv->client,VDELAY_LO, 0x012); //VDELAY_LO
i2c_smbus_write_byte_data(priv->client,VACTIVE_LO, 0x0F4); //VACTIVE_LO
i2c_smbus_write_byte_data(priv->client,HACTIVE_LO, 0x2D0); //HACTIVE_LO
i2c_smbus_write_byte_data(priv->client,VBICNTL, 0x58); //HA_EN 1
i2c_smbus_write_byte_data(priv->client,DID, 0x20); //VIPCFG 1
i2c_smbus_write_byte_data(priv->client,VVBI, 0x10); //NTSC656 1
To test it I tried to capture a Video with
cat /dev/video0 > /sdcard/test1.mpeg
however the IPU seems to lose the incoming frames:
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00000001
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00000001
imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00000001
.
.
.
Capturing with ffmpeg:
ffmpeg-2.2.git -f v4l2 -framerate 30 -video_size 640x480 -pix_fmt uyvy422 -i /dev/video0 /sdcard/output.mkv
I also tried to use gstreamer-imx from GitHub - Freescale/gstreamer-imx: GStreamer 1.0 plugins for i.MX platforms
but was unable to install it.
What could be the problem with the IPU losing Frames? Do I need another configuration for TW9910, or other tools to test it?
Hi Andre
please check
Switching CSI into Progressive bt.656 Mode
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------