Giter Site home page Giter Site logo

Comments (5)

umlaeute avatar umlaeute commented on August 11, 2024

hmm, well.
the high CPU load you see is obviously in user-space (the green bar), which is GStreamer.
the load in kernel-space (the red bar), which is where you would see anything done by v4l2loopback, seems to be pretty constant.

so i conclude that the v4l2loopback is not doing any excessive work, but instead GStreamer is.
(it could still be a problem with v4l2loopback that makes GStreamer burn your CPU cycles).

so, if I were you, i would do some analysis where GStreamer is spending its time (and see whether something can be done on the v4l2loopback side of things)

from v4l2loopback.

trungthanhnguyen0502 avatar trungthanhnguyen0502 commented on August 11, 2024

I tried some analysis with simple gstreamer command. When I run
gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! appsink
CPU usage is 17%.

But when I replace appsink with v4l2sink (to a virtual device created by v4l2loopback). CPU usage is 60%.

from v4l2loopback.

chrisiberg avatar chrisiberg commented on August 11, 2024

I think your problem hast to do with missing DMA support, or am I wrong? @umlaeute
#501

from v4l2loopback.

sanbrother avatar sanbrother commented on August 11, 2024

I think your problem hast to do with missing DMA support, or am I wrong? @umlaeute #501

Will copy without DMA consume a lot of CPU? mmap still costs high CPU usage?

from v4l2loopback.

angeelalg avatar angeelalg commented on August 11, 2024
  • kernel version: 5.10.104-tegra
  • Distribution (+version): Ubuntu 20.04.5 LTS
  • Jetson xavier nx: JetPack 5.0.2.
  • Deepstream and Gstreamer version are 6.1.1 and 1.16.3.

Hello @trungthanhnguyen0502 , good morning.

How did you get v4l2loopback working for you? I'm trying to get my Jetson NX to work, with the same kernel version and it's impossible. I keep getting this error when running modprobe v4l2loopback:
modprobe: ERROR: could not insert 'v4l2loopback': Operation not permitted

from v4l2loopback.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.