Live Streaming over USB on Ubuntu and Linux, NVIDIA Jetson

Good news.

To use v4l2loopback, you must run sudo modprobe v4l2loopback each time. Alternately, you can have it load automatically in /etc/modules-load.d/modules.conf.

You can verify that the v4l2loopback module is loaded with lsmod

$ lsmod
Module                  Size  Used by
bnep                   16562  2
zram                   26166  4
overlay                48691  0
spidev                 13282  0
v4l2loopback           37383  0

On one of your computers, you have two webcams, possibly there is an integrated webcam on the laptop.

In that case, the THETA will be at /dev/video1

Sometimes, the pipeline needs to be adjusted.

If the video freezes, try set qos=false

if (strcmp(cmd_name, "gst_loopback") == 0)
    pipe_proc = "decodebin ! autovideoconvert ! "
        "video/x-raw,format=I420 ! identity drop-allocation=true !"
        "v4l2sink device=/dev/video1 qos=false sync=false";

On Xavier, you may need to specify the decoder, instead of decodebin ! autovideoconvert The pipeline below is only for Jetson, not x86.

"nvv4l2decoder ! nv3dsink sync=false"

Update May 9, 2022 Running on Ubuntu 22.04

THETA X now running on Jammy Jellyfish, Ubuntu 22.04

nvidia driver 510.60

nvidia-smi
Mon May 9 15:24:06 2022
±----------------------------------------------------------------------------+
| NVIDIA-SMI 510.60.02 Driver Version: 510.60.02 CUDA Version: 11.6

running wayland

echo $XDG_SESSION_TYPE
wayland


Switch to X session for v4l2loopback

RICOH THETA X running firmware 1.10.1

image