Create stream with gstremer

I use ubuntu, python and gstreamer or c++ and gstreamer.
How I can create stream and send images from GPU?
I found this code, but get error: gi.repository.GLib.Error: gst_parse_error: no element “nvvidconv” (1)

    pipeline = None
    bus = None
    message = None

    # initialize GStreamer

    for i in range(1, 100):
        print("loop =", i, " ")
        # build the pipeline
        pipeline = Gst.parse_launch(
            "videotestsrc ! video/x-raw,width=1920,height=1080 ! nvvidconv ! video/x-raw(memory:NVMM),width=480,height=380,pixel-aspect-ratio=1/1 ! nvoverlaysink overlay-x=0 overlay-y=360 overlay-w=480 overlay-h=380 "

        # start playing
        print("Switch to PLAYING state")

        print("Send EoS")
        Gst.Element.send_event(pipeline, Gst.Event.new_eos())
        # wait until EOS or error
        bus = pipeline.get_bus()
        msg = bus.timed_pop_filtered(
            Gst.CLOCK_TIME_NONE, Gst.MessageType.EOS)

        # free resources
        print("Switch to NULL state")

Sorry for the late response, is this still an issue to support? Thanks

Do you run in docker? The sample should run on clean-installed system directly. Seems like you run in docker and certain libs are not included. So certain plugins are missing.

No, I use ubuntu.

Do you mean you run the command on host PC? Not run on Xavier NX?

I have pc with Ubuntu or linux and me need create stream from video card nvidea

What is the graphics card you are using? GTX or RTX?

I sue RTX

nvvidconv is for jetson platform.

jetson is a lib or it is a OS? If it is os, then I can use virtual OS for striming from nvidia card?

You can not. it’s aarch64 platform.

But how I can create stream from nvidia card on PC?

use nvvideoconvert instead of nvvidconv on dGPU.

Iget error: gst_parse_error: no element “nvvideoconvert” (1)

You need to install deepstream sdk for this plugin.
you can try docker for ease use.

I’m use’d docker pull and install nvidia-container-runtime

docker pull
sudo docker ps -a


CONTAINER ID   IMAGE                                   COMMAND                  CREATED          STATUS    PORTS     NAMES
3495bf0f3f6d   "--name nvidia_deeps…"   20 minutes ago   Created             nvidia_deepstream_devel

sudo docker start nvidia_deepstream_devel
return error:

Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "--name": executable file not found in $PATH: unknown
Error: failed to start containers: nvidia_deepstream_devel

Whot me need do? I use ubuntu 22.04 or windows 10.

docker run --rm -it --gpus device=0 --runtime=nvidia -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY IMAGE ID


sudo docker run --rm -it --gpus device=0 --runtime=nvidia -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=3495bf0f3f6d


"docker run" requires at least 1 argument.
See 'docker run --help'.

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

Run a command in a new container

How I can run this container?

You can get image id by docker images
REPOSITORY TAG IMAGE ID CREATED SIZE 6.1.1-triton ec8cd4081eca 13 days ago 14.4GB

DISPLAY is one environment variable you set by export DISPLAY=**, if you do not need this, you can remove it -e DISPLAY=$DISPLAY


sudo docker run --rm -it --gpus device=0 --runtime=nvidia -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=**

and this

sudo docker run --rm -it --gpus device=0 --runtime=nvidia -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=**

too not work.