According to the above link i need to apply patch to gstnvv4l2camerasrc.cpp file.
But when i checked into the public sources(BSP) folder, the gstnvv4l2camerasrc is an external folder to the kernel sources. I’m not familiar much with the BSP sources and building them, so i would like to know how to build this file and how to flash it on to the board
the cameras are working with v4l2src well.
to make it work with nvv4l2camerasrc i need to modify the gstnvv4l2camerasrc.cpp file. So do i need to build it as a .so library and replace library on board or what do other procedure do i need to do
when i checked for v4l2-ctl test
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=YUY2 --stream-mmap --set-ctrl=sensor_mode=0 --stream-count=100 -d /dev/video0
The pixelformat ‘YUY2’ is invalid
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 30.00 fps
<<<<<<<<
To compile the gstnvv4l2camerasrc.cpp file you have to get the Driver Package (BSP) Sources (these are for JetPack 6.2, please download for the L4T version that you are using). Then, follow the next instructions:
Extract the gst-nvv4l2camera_src.tbz2 from the public_sources.tbz2 as
tar -xjf public_sources.tbz2 Linux_for_Tegra/source/gst-nvv4l2camera_src.tbz2
Hi,
Thanks it worked.
The doubt I had was whether to build the library only or any other kernel dtsi files.
I tried with this pipeline it gave a clear image
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! ‘video/x-raw(memory:NVMM), format=(string)YUY2, width=(int)1920, height=(int)1536, framerate=(fraction)30/1’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), format=(string)NV12’ ! nv3dsink