Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-20 Thread Emanuele Oriani
> If that was the only concern against it, then I'd say it is acceptable. > But there are some other concerns, also it seems to me xcbgrab can be > improved to reach the same smoothness as this attempt, and that was the > main distinctive feature of it. With that advantage lost, I'd say fixing >

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-19 Thread Emanuele Oriani
Hi Lynne, Thanks for the feedback. Some more discussion points below. > There already is a zero-overhead capture on linux - kmsgrab. It works on AMD and Intel. Does it work on Nvidia too? Does it have smooth capture? Does it work for 3d applications? >> Wouldn't a hwaccel frame imply no

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-19 Thread Emanuele Oriani
k that would > be preferable if it is a sensible thing to do. I understand where you're coming from and it makes sense to give it a shot - my only fear is that we may need to use specific Xlib functions anyway. But let me give it a try and see where we go. On 18/05/2020 20:11, Marton Ba

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-18 Thread Emanuele Oriani
://send.firefox.com/download/df859689f4cc6429/#EN6w9upyIMHqO7n_1hMTaQ https://github.com/Emanem/replayer/blob/master/src/xcompgrab.c Thanks in advance for your time and feedback, Emanuele Ps. Apologies if I've missed reposes on this list On 10/05/2020 19:01, Emanuele Oriani wrote: Hi Marton/all, I've re

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-10 Thread Emanuele Oriani
/replayer/blob/master/src/xcompgrab.c On 08/05/2020 11:43, Emanuele Oriani wrote: Hi Marton, Capturing at 60 FPS 1920x1080, the difference is even more noticeable: x11grab is choppy, xcompgrab is smooth (this time I used H264 ultrafast to encode). https://send.firefox.com/download

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-08 Thread Emanuele Oriani
- xcompgrab: 10.32s, 18.2s, 0.38s - x11grab: 10.20s, 11.6s, 0.22s Definitely much more CPU usage, but the output quality can't be compared. Please note no frames were lost/skipped, everything was processed on time for both tests. Thanks, Emanuele On 08/05/2020 11:05, Emanuele Oriani wrote

Re: [FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-08 Thread Emanuele Oriani
. Thanks, Emanuele On 07/05/2020 19:52, Marton Balint wrote: On Thu, 7 May 2020, Emanuele Oriani wrote: Hi FFMPEG devel, I have been writing a simple XComposite window capture demuxer, heavily inspired from x11grab sources and OBS Window capture logic/code. Have you compared performance

[FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)

2020-05-07 Thread Emanuele Oriani
Hi FFMPEG devel, I have been writing a simple XComposite window capture demuxer, heavily inspired from x11grab sources and OBS Window capture logic/code. I would like to give back to the community and share the sources; before I would formally submit for a review/patch, I would really