How to use OV5693 V4L2 driver in L4T 24.1

“/dev/video0” is created by default under L4T 24.1, but neither Cheese nor VLC can open “/dev/video0”.

Are there ways to test OV5693 V4L2 driver under L4T 24.1?

Thanks in advance.

Has this question been answered somewhere?

This is the only place for Jetson TX1 support, It doesn’t seem I can get answers from Nvidia.

Are you able to query info about /dev/video0 using a tool like v4l2-ctl --all (as sudo) or v4l-utils package? (hopefully these carried over from armhf into Ubuntu’s 64-bit aarch64 repositories).

It might be that /dev/video0 is a default device or loopback device and /dev/video1 is supposed to be the onboard V4L2 device. I’m confirming with the team if there’s a patch like R23 and any changes required to get it working.

dusty,

This is the kind of support I’d like to see.

I read the other thread:

https://devtalk.nvidia.com/default/topic/937624/jetson-tx1/enabling-v4l2-driver-in-r24-1-by-building-kernel-from-source-code/post/4917689/#4917689

It mentioned that Nvidia document “should answer most questions”, I read the document, but it’s all about how to port TX1 camera driver to other sensors, not an example how to use V4L driver for TX1 on board camera.

I’ll try v4l2-ctl but I’m having troubles to find “v4l2-utils” for arm64.

The Video for Linux User Guide included in http://developer.nvidia.com/embedded/dlc/l4t-documentation-24-1 outlines the procedure for enabling and testing V4L2, we are currently confirming which branch to follow for R24 and if there is any patch required.

Here’s code of using V4L2 on github, it prints out some queried info: https://github.com/dusty-nv/turbo2/blob/master/v4l2Camera.cpp

Nvidia: rather than throw back the burden of proof to us, just try installing R24 as per release instructions, run apt-get update and apt-get upgrade, and reboot. You’ll see that /dev/video0 appears, and that applications such as cheese or vlc do not run with it.

The “v4l2-utils” tool is actually contained in the package “v4l-utils” (note the missing 2).
It might be necessary to activate Universes repository, if its not found with apt-get per default.

Hi Guys,

Can you try the following commands?

  1. ensure you can open the device node and query the capabilities
./yavta -l /dev/video0
  1. use nvcamerasrc to stream video
gst-launch-1.0 nvcamerasrc num-buffers=200 sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! omxh264enc ! qtmux ! filesink location=/tmp/test.mp4

dusty_nv,

Turbo2 is a very interesting project, I downloaded the source files but was unable to set up Cmake to build it yet.

Kamm,

“sudo apt-get install v4l-utils” did work and I was able to run “v4l2-ctl --all” to get information from v4l driver.

nVConan,

I have not used “yavta” and have to search how to install it, but “gst-launch-1.0” did work.

Although the video is upside down and green, that’s not important to us, we will do our image processing anyway.

Thanks everyone

Is there a patch required to get v4l2 working on 24.1? I don’t think that was ever answered. I can get gstreamer to work on nvcamerasrc, but not using yavta, cheese or vlc using /dev/video0.

V4L2 interface works with R24 default kernel, try using the /dev/video0 interface directory or using libv4l2 / v4l-utils or write your own following a tutorial like this: http://lwn.net/Articles/203924/ (or I linked to sample code above).

The Cheese webcam viewer uses gstreamer underneath to access V4L2 and there was a symlink problem specific to the Cheese / gstreamer configuration. Please see this post for the patch: https://devtalk.nvidia.com/default/topic/937624/jetson-tx1/enabling-v4l2-driver-in-r24-1-by-building-kernel-from-source-code/post/4932415/#4932415