3 ms·
There is an even cooler pull request that adds zero-copy screen capture. https://github.com/obsproject/obs-studio/pull/1758 https://github.com/obsproject/obs-st
by Jnr 7y ago
There is an even cooler pull request that adds zero-copy screen capture. https://github.com/obsproject/obs-studio/pull/1758 https://github.com/obsproject/obs-studio/pull/1758
I think this is a better way to go to get the same performance and low latency gaming capture as on Windows with gaming GPUs.
The guy who made that PR frequently streams coding sessions on Youtube. I think he made it because he wanted a better way to stream some cool live opengl coding sessions. And even though that code isn't production ready, he has used it for some time now and it seems to work great.
If there is some company that slightly cares about Linux desktop and gaming on Linux, I would suggest helping with that pull request and getting it merged. (Anyone from Steam, AMD or Nvidia here?)
- cycloptic 7y agoSome of the EGL portions of that PR are actually included in the one I linked :) At some point my plan is to go through and merge these all together if no one else does it, but streaming has not been a priority for me at the moment.
- lvh 7y agoWhoa, that's awesome! I tried to get the same thing working with ffmpeg, a la: ffmpeg -device /dev/dri/card1 -f kmsgrab -i - -vf 'crop=4096:2160:0:0,hwmap=derive_device=vaapi,scale_vaapi=w=4096:h=2160:format=nv12' -c:v h264_vaapi -qp 24 output.mp4 ... and that process was, um, exciting, but not in a good way if you care about having an MP4 at the end with minimal fuss.