Closed mijoharas closed 3 years ago
Hi, can you check out the next
branch? I think I ran into a similar issue on Fedora 33, but it was actually the buggy v4l2loopback module to blame.
The "fix" or workaround I found is here: https://github.com/raymanfx/libv4l-rs/blob/next/examples/stream_forward_mmap.rs#L90.
Sorry, I got confused for a sec here. The master branch already has the "fix", but not for the two examples you fixed here.
I'll have a look at this soon - but I can say that the current code was tested on Fedora 33 with the latest v4l2loopback master branch and works fine, even using ffplay.
Hey, yeah, I just copied the fix from that example to here.
It'd be good to understand what's not working about the stream_forward_mmap
file for me. I'll update if I dig in further and figure it out, but as I have something working now, I'm not sure if I will.
Thanks for the repo and everything, and merry christmas!
Ok, I got curious. 67ace347ce77718702c45557fce4846bdd9141d2 has a working (for me) stream implementation. 8586075 doesn't work for me.
That's most curious indeed. It would certainly help if you could find out what exactly breaks it for you. As I said, I will have a look at this myself, but that might take some more days.
Anyways, thanks for putting in the effort!
I consider these examples deprecated and will remove them. The stream_* examples should cover the same usecases.
Can you open an issue about the non-working v4l2loopback & ffplay setup? Please describe what you've tried so far, which versions you used etc etc. Thanks!
I just ran some tests on Fedora 33 and was able to reproduce your issue. Could you please check out this fix: https://github.com/raymanfx/libv4l-rs/commit/73fe21769c3c5c5b0950f0f6614cdda2aa255cc0?
My v4l2loopback + ffplay setup works again for webcam forwarding using that patch.
Hi!
These two examples didn't work for me using v4l2loopback. I figured out that this would work after looking at your
stream_forward_mmap.rs
example.The error message I would get is:
Incidentally, when I try the example from
stream_forward_mmap
it appears to work correctly, but if I try and play it withffplay
I'm not able to see anything.I realise this example is quite new, should it be working?
(if it helps, the output I get after running stream_forward from running
ffplay /dev/video2
:and then hanging)