-
Notifications
You must be signed in to change notification settings - Fork 13
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
v4l2 output options #33
Comments
Yeah, that's possible. It might work by using the file output and format options to feed raw video into v4l2 loopback. It would likely introduce a buffer copy which would negate some of the performance wins of this program. I'll give that a test sometime soon. If v4l2loopback supports feeding h264 into it (I know v4l2 does, just unsure about v4l2loopback), then this could be quite efficient assuming the program that consumes it doesn't re encode it. I assume you want this for zoom or something? |
After 4b8fc4e and b3f9945 this seems to be working well for me. Tested with sudo modprobe v4l2loopback
wl-screenrec --ffmpeg-muxer v4l2 -f /dev/video6 with https://mozilla.github.io/webrtc-landing/gum_test.html It's just passing raw video to v4l2. |
You may also want to pass |
Ahh fantastic! I was only looking at the 0.1.0 release which didn't have those options. Rebuilding with git and things are looking good. Glad it was already there, you da man. |
Close. so close... so I am trying to replicate
I think that mpjeg is mandatory for zoom (despite my actual camera support h264 and getting my hopes up...) but I can't get mjpeg enabled in wl-screenrec.
or
I also have this running when the screen recorder is not, and it dishes out the mjpeg source just lovely.
|
Please disregard queries here, everything seems great now, potentially as your app is SO much more efficient than others that distortions happening previously with rawvideo aren't happening with wl-screenrec at all. |
@acidkewpie Could you please share what was the issue and the final command you used? |
I added an example that works for me with Zoom to the README |
Yes, it was that simple for me in the end, bar a -g option. Wrapped it up in a systemd service and it's doing great now. |
So I have problems running version from git installed using cargo:
I noticed the error about pixel format so added it:
Now there is message about no support from hardware so I also disabled it:
I'm running hyprland on a laptop with new AMD Ryzen 7 7840U with integrated graphics. Thank you for your time and help getting this far, I really appreciate it. |
Is there any way to leverage the impressive performance benefits with a v4l2loopback output? I see it's not built in (yet?) like wf-recorder has, but even past that, any way to pipe to ffmpeg or such? Any plans?
The text was updated successfully, but these errors were encountered: