Hello NXP community,
I'm using imx8mp evk and OS:Yocto with LF6.6.3_1.0.0 bsp version.
I added a new layer and recipe for simple basic python application for reading camera(ov5640 connected via mipi csi) output and display it. Following is the python code
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
def play_video():
Gst.init(None)
source = Gst.ElementFactory.make("v4l2src", "source")
convert = Gst.ElementFactory.make("videoconvert", "convert")
sink = Gst.ElementFactory.make("autovideosink", "sink")
source.set_property("device", "/dev/video3")
pipeline = Gst.Pipeline.new("video-pipeline")
pipeline.add(source)
pipeline.add(convert)
pipeline.add(sink)
if not source.link(convert):
print("Source and convert could not be linked.")
return
if not convert.link(sink):
print("Convert and sink could not be linked.")
return
pipeline.set_state(Gst.State.PLAYING)
bus = pipeline.get_bus()
pipeline.set_state(Gst.State.NULL)
play_video()
got the following on console:
root@imx8mp-lpddr4-evk:/usr/bin# python3 ov5640_pythonapp.py
[ 39.653787] mxc-mipi-csi2.0: mipi_csis_imx8mp_phy_reset, No remote pad found!
[ 40.340239] mxc-mipi-csi2.0: mipi_csis_imx8mp_phy_reset, No remote pad found!
Could anyone please let me know what's issue or what i'm missing here,
My target is to read camera feed each image read time and also display the feed.
Thanks in advance,
Regards,
Deevia