[Ffmpeg-devel] [PATCH] Allow choosing display and screen number for x11grab device

Panagiotis Issaris takis.issaris
Wed Dec 13 22:28:11 CET 2006


Hi,

The attached patch allows one to provide the displaynumber.screennumber
parameters to the x11grab device, for example:
ffmpeg -vd x11:0.1 -s 640x480 test.avi

Currently the docs stated this was already the case, but that was incorrect. The
parameters that currently were parsed were used as an offset within the screen
for doing the grabbing. I've taken the usual '+' as a separator for still being
able to provide that offset. If no offset is provided, 0,0 is taken by
default.

So, to grab from display number 0, screen number 1 and start grabbing at
location (10,20), use:
ffmpeg -vd x11:0.1+10,20 -s 640x480 test.avi

With friendly regards,
Takis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pi-20061213T221821-ffmpeg-x11grab_accept_displayname.diff
Type: text/x-diff
Size: 2172 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061213/806e0b64/attachment.diff>



More information about the ffmpeg-devel mailing list