| | 66 | |
| | 67 | === Use built-in GDI screengrabber === |
| | 68 | |
| | 69 | To capture ALL your displays as one big contiguous display: |
| | 70 | {{{ |
| | 71 | ffmpeg -f gdigrab -framerate 30 -i desktop capture.mkv |
| | 72 | }}} |
| | 73 | |
| | 74 | If you want to limit to a region, and show the area being grabbed: |
| | 75 | {{{ |
| | 76 | ffmpeg -f gdigrab -framerate 30 -offset_x 10 -offset_y 20 -video_size 640x480 -show_region 1 -i desktop capture.mkv |
| | 77 | }}} |
| | 78 | |
| | 79 | |
| | 80 | To grab the contents of the window named "Calculator": |
| | 81 | {{{ |
| | 82 | ffmpeg -f gdigrab -framerate 30 -i title=Calculator capture.mkv |
| | 83 | }}} |
| | 84 | |
| | 85 | Lossless and Fullscreen record: |
| | 86 | {{{ |
| | 87 | ffmpeg -f gdigrab -framerate 30 -i desktop -c:v libx264 -qp 0 -preset ultrafast capture.mkv |
| | 88 | }}} |
| | 89 | |
| | 90 | |
| | 91 | Lossless and Fullscreen record with nvidia hardware encoding: |
| | 92 | {{{ |
| | 93 | ffmpeg -f gdigrab -framerate 30 -i desktop -c:v h264_nvenc -qp 0 -preset ultrafast capture.mkv |
| | 94 | }}} |