Closed ksaye closed 3 years ago
Never mind, found it.
for others, here is what I run on my Jetson Nano:
# install the needed items
apt install v4l2loopback-utils
snap install v4l2loopback
# note, I have a /dev/video0 and /dev/video1 I want to convert to h264
modprobe v4l2loopback video_nr=10,11
v4l2tools.v4l2compress -f H264 /dev/video0 /dev/video10 &
v4l2tools.v4l2compress -f H264 /dev/video1 /dev/video11 &
v4l2rtspserver /dev/video10 /dev/video11 &
It take the format from:
To:
As you can see below, it really does consume some CPU:
I have a RTSP client that only supports H264, yet some of my cameras only seem to support MJPG, as shown below:
I see the documentation stating:
/dev/video0 (camera device)-> v4l2compress_h264 -> /dev/video10 (v4l2loopback device) -> v4l2rtspserver
Yet I can't find the 'v4l2compress_h264' command. On Ubuntu 18.04.5 LTS on the Jetson Nano, after running:
I only see:
Any suggestion where I can find:
v4l2compress_h264
?