Comments (7)
should be fixed now (in experimental)
please report, whether i can close it
btw, whats the "10.04" src?
from v4l2loopback.
Built experimental branch on 10.10. Looks good! "Critical error" on launch is no longer there, and rtmp ffmpeg now works! However Cheese now looks ugly - continuing to investigate. For now I would have to say you rule!! Excellent, thank you! THis is a giant step for anybody who wants to link gstreamer to Flash Media Servers via rtmp, which is a big deal!
If we uncover additional bugs we will post.
One question, how can we create more than one /dev/videoX? The documentation is not all that clear. At modprobe time what parameter do we pass?
(sorry I meant to say 'as pulled from 11.04 not 10.04 before, brain freeze)
from v4l2loopback.
ah "11.04" is a date; brain freeze on my side....
as for videoX: try the "devices" parms:
modprobe v4l2loopback devices=10
should give you /dev/video0 .. /dev/video9
for the ugliness of cheese, pleae open another ticket (when you have more info)
from v4l2loopback.
For completeness I should mention that we had to install gstreamer0.10-plugins-good version 0.10.27-1~maverick1 from https://launchpad.net/~gstreamer-developers/+archive/ppa in order to make this work. The debs in Ubuntu 10.10 Maverick do not work correctly, you must install this upstream gstreamer or you will get teh Critical Error on gstreamer launch.
Thank you for the tip re: device= - and we will open a new ticket when we investigate the Cheese ugliness further.
from v4l2loopback.
thanks for the hints on the required gstreamer version
from v4l2loopback.
With the new source compiled and modprobed I now see this:
gst-launch-0.10 [ourvideoSrouce] ! queue ! videoscale ! videorate ! video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)UYVY ! v4l2sink device=/dev/video0
Setting pipeline to PAUSED ...
libv4l2: error getting pixformat: Invalid argument
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
.
.
.
libv4l2: error getting pixformat: Invalid argument is new.
Although I can open Cheese and see the stream, and ffmpeg seems to work, I am not sure what to do about this error. Changing to xvmiagesink eliminates it of course. Adding ffmpegcolorspace element has no effect.
Any iideas?
from v4l2loopback.
More information.
$ sudo insmod v4l2loopback devices=2
Check to see, sure enough /dev/video0 and /dev/video1 are created.
$ gst-launch-0.10 [ourvideoSrouce] ! queue ! videoscale ! videorate ! video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)UYVY ! v4l2sink device=/dev/video0
(we get the pixformat error)
(in another terminal window)
$ cheese
Cheese shows video fine.
Stop cheese
cntl-c to kill the gst-launch, then change the output device to /dev/video1, eg,
$ gst-launch-0.10 [ourvideoSrouce] ! queue ! videoscale ! videorate ! video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)UYVY ! v4l2sink device=/dev/video1
Repeat cheese tests, all ok. So far we have demonstrated that the driver lets you write to the /dev/video device of your choice.
However, after a variable number of executions of
$ gst--launch-0.10 [ourvideoSrouce] ! queue ! videoscale ! videorate ! video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)UYVY ! v4l2sink device=/dev/video0
and killing it with cntl-c, the /dev/video0 device gets 'stuck' - eventually you see a message which indicates that it is not available (I will try to get that for you but for now, let's move on)
At that point you can STILL
$ gst--launch-0.10 [ourvideoSrouce] ! queue ! videoscale ! videorate ! video/x-raw-yuv,width=640,height=360,framerate=30/1,format=(fourcc)UYVY ! v4l2sink device=/dev/video1 (the other device is ok)
Kill that and try to
$ sudo rmmod v4l2loopback
You cant! It is still in use by vdeodev (and v4l2_compat_ioctl32)
You can't even
$ sudo rmmmod -f (any or all of those devices)
Uh oh.
from v4l2loopback.
Related Issues (20)
- 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.
- [Bug]: Can't create second device HOT 8
- make[1]: *** /lib/modules/6.6.9-amd64/build: No such file or directory. Stop. make: *** [Makefile:53: v4l2loopback.ko] Error 2 HOT 2
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.