Comments (5)
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.
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.
I think your problem hast to do with missing DMA support, or am I wrong? @umlaeute
#501
from v4l2loopback.
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.
- 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)
- Failed to stream on for some special test
- Failed to stream H264 to virtual camera: "does not support 2:4:7:1 colorimetry" HOT 3
- Devices limited to 8 even with KCPP flag HOT 1
- Chromium cannot read camera: Dequeued v4l2 buffer contains invalid length HOT 5
- DKMS Won't Sign When Building HOT 3
- Dummy device made via v4l2loopback is busy HOT 6
- wont compile on 32bit armv7l HOT 3
- Caught SIGSEGV
- DKMS fails to build against 6.8-rc1 kernel due to use of strlcpy
- can't increase Read/Write buffers from 2 to 4 HOT 1
- resolution 2048x1 does not work HOT 5
- Fails to build against Kernel 6.8-rc6 HOT 3
- dkms build fails on kernel version >6.8.0 HOT 7
- Possible Missing Dependency? HOT 5
- getNextFrame no data errno:0 Success HOT 1
- getNextFrame no data errno:0 Success on v4l2rtspserver log with verbose HOT 2
- how create duplicate device0 and /dev/video1 who desn't have "Video Capture"? HOT 5
- modprobe: ERROR: could not insert 'v4l2loopback': Exec format error HOT 3
- Linux 6.8.4 seems to have broken v4l2loopback in several ways. HOT 6
- Linux 6.8.4 seems to have broken v4l2loopback in several ways.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from v4l2loopback.