[FFmpeg-devel] [WIP] XComposite window capture demuxer (Linux)
Marton Balint
cus at passwd.hu
Wed May 20 00:20:33 EEST 2020
On Tue, 19 May 2020, Lynne wrote:
> May 19, 2020, 11:25 by ema at fastwebnet.it:
>
>>> I wouldn't be surprised if the xlib code has some PTS issues and schedules downloading a frame late.
>>>
>>
>> I'm far from being an expert, but I would be surprised if that had issues considering it's the main Linux screen capture we have?
>> The xcb calls to grab a frame are quite simple/straightforward (both shm and non shm versions).
>>
>
> The avdevice polls to get new frames. If it polls too late, it will miss a frame. I think that's where a possible issue is.
This is a good point. As far as I see I can greatly improve the smoothness
of captured frames of xcbgrab by changing the av_usleep(delay) line in
xcbgrab.c to av_usleep(delay/2).
Regards,
Marton
More information about the ffmpeg-devel
mailing list