New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
videotestsrc not working with gstreamer 1.0 #83
Comments
i think this problem is related to #60. |
Any news on that issue? I like to use gstreamer and using 0.10 branch is not really an option since it is long time depreciated and not recommended for future use. BR Borut |
To make gstreamer 1.0 we found a way around .
That is how I manage to use v4l2loopback since the version of gstremer 1.0 can't run the v4l2loopback and gstreamer 0.10 can. Just remember that whatever you give to the v4l2sink of gstreamer 0.10 must be raw video. |
This is also a problem in debian/sid version 0.9.1-2.
|
I'm getting this on Debian Testing:
My error is slightly different:
|
Try with my patch #100 . [EDIT]: For error shown in abickerton's post. |
Still getting error as shown in astronouth7303 post. BR Borut |
Same on latest Ubuntu :( |
Me too :( Gentoo. |
patches welcome |
To all, v4l2loopback driver has important bugs in it's queue management. It's probably reporting some random buffer index. Since 1.0 we do validate this stuff since otherwise it can crash GStreamer. We also use larger queues to avoid doing buffer copied (while in 0.10 we always copy). For anything where the v4l2 queue is bigger then 2 frames, the driver output is wrong. A simple workaround is to use tee multiplexer, which forces a copy:
Long term, someone need to fix the driver. |
given my current time allocation, i'm happily accepting patches. |
hopefully fixed in |
I just rested, the fix is kind of partial. The suggested pipeline now works, but now we fail on the receiver side with the following sender: $ gst-launch-1.0 videotestsrc ! tee ! v4l2sink
$ gst-launch-1.0 v4l2src ! videoconvert ! autovideosink
gstv4l2allocator.c:1299:gst_v4l2_allocator_dqbuf:<v4l2src0:pool:src:allocator> buffer 1 was not queued, this indicate a driver bug. |
I have to use the "tee" workaround on Xubuntu 16.04 LTS, you should add the example |
This will no longer work in 1.14, in replacement, you'll be able to workaround this driver bug with "identity drop-allocation=1". |
Good to know. Is there a way to fix the driver bug directly so we don't have to use a workaround? |
Sure, go ahead ;-P |
I'm trying to get a simple pipeline to work, sending video to v4l2sink. I can use videotestsrc just fine. It needed the 'tee' to work. But a specialized camera source isn't working at all. With or without tee. With the identity drop-allocation=1, I get: WARNING: erroneous pipeline: no property "drop-allocation" in element "identity0" ??? |
@darenw please make sure that your pipeline is actually valid before posting problems (if GSTreamer's |
@darenw: |
I don't know why this issue is closed... I'm using Xubuntu 18.04 with Gstreamer 1.14.1 and when I run pipeline:
I can't see any test video on /dev/video100. This makes v4l2loopback unusable on newer systems as I'm forced to use Xubuntu 16.04 with Gstreamer 1.8.3 so it can still work. |
Please reopen. source:
sink:
EDIT: This issue not only affects videotestsrc, but all pipelines I tried so far. source:
sink:
EDIT2: Here's a full sample output with the error logs included: |
@raymanfx it works here on Debian with gstreamer-1.16.1
|
Thanks for the quick answer. |
try loading the module with
(and use EDIT: i mistyped "consumer" instead of "source" in the line about |
Neither combination is working, it's always the same error. |
you need to both set |
Yeah, I did that, but it didn't help. |
I'm having, I think, the same problem with Ubuntu 18.04.4 Desktop:
|
I'm having the same problem on Fedora - I have gstreamer 0.10 installed: gstreamer-0.10.36-24.fc31.x86_64 I'm trying to use my DSLR as a webcam. Is there any known workaround currently? |
@raymanfx Did you ever have any success with Fedora? |
No, I could never make it work with recent versions of gstreamer. |
@colin-adams this ticket is explicitely about |
Fedora 31, gstreamer 1.16.2, v4l2loopback v0.12.3-6-ge4f2c3c (current master) |
@drmichaeljgruber could you also specify which version of |
Just leave it here, because I've spent half a day making it works!
|
that should be |
atoy40 commentedMar 19, 2015
Hello,
I'm unable to launch a simple gstreamer pipeline with the gstreamer test source.
Here is the result (i've just modprobe the module and then launch the following command):
with a GST_DEBUG=3, i found this error :
Im' using the version 0.8.0 packaged in ubuntu 14.10 with a 3.16.0 kernel
thank you very much.
Anthony.
The text was updated successfully, but these errors were encountered: