Print Screen » History » Version 1
Alex Seferidis, 07/22/2025 10:40 AM
| 1 | 1 | Alex Seferidis | # Print Screen |
|---|---|---|---|
| 2 | |||
| 3 | To capture screen on FBX-3566: |
||
| 4 | |||
| 5 | build main.c |
||
| 6 | ``` |
||
| 7 | gcc -o main main.c -I /usr/include/libdrm -ldrm |
||
| 8 | ``` |
||
| 9 | |||
| 10 | change permissions: |
||
| 11 | |||
| 12 | ``` |
||
| 13 | chown root screenshot |
||
| 14 | chmod u=rwx,go=xr,+s screenshot |
||
| 15 | |||
| 16 | ``` |
||
| 17 | |||
| 18 | execute: |
||
| 19 | ``` |
||
| 20 | ./screenshot |
||
| 21 | ``` |
||
| 22 | |||
| 23 | The file image.rgb is created. |
||
| 24 | |||
| 25 | Convert to jpg with : |
||
| 26 | ``` |
||
| 27 | gst-launch-1.0 -v filesrc location=image.rgb blocksize=1555200 ! video/x-raw,format=RGB,width=960,height=540,framerate=1/1 ! videoconvert ! video/x-raw,format=RGB,framerate=1/1 ! jpegenc ! filesink location=out.jpg |
||
| 28 | ``` |