Use ffmpeg, add support for multiple monitors#146
Use ffmpeg, add support for multiple monitors#146rinfiyks wants to merge 3 commits intomeskarune:masterfrom
Conversation
|
There's way too many unrelated changes here. Otherwise the |
|
Hi @AladW, if you could give me some direction on what I could do to make this more reviewable then I can open a new one that is hopefully better. Regarding the 'too many unrelated changes', I could remove all of the multi-monitor code and leave just the ffmpeg stuff? |
|
I'm pressed for time now, so I'll reopen this to address it in the future. Splitting up the ffmpeg and multi-monitor (to several commits) would indeed be a good start. |
|
While this branch is in conflict with master I want anyway to add a fix to it since the PR is still open because its not working by itself for me on archlinux... The |
The main motivation for this was to speed up the script (see #6). I also added support for an arbitrary number of monitors (see #10).
It now takes around 0.3 s on my desktop and 0.6 s on my laptop (0.2/0.4 if you use
-pixelate).The method is to build up a
filtergraphforffmpeg. The stages of the filtergraph are as follows:Missing features and problems:
ffmpeghandles capturing the desktop now, I removed the customscrotcommand part, so you can no longer set custom flags e.g. imposing a delay. I don't think this is a huge problem as you can create your delay before executing the script.xrandrto figure out the size and location of all the displays. It's probably not ideal but I couldn't find an easier way.