Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This script does 60fps screen recording using gstreamer 1.0. | ||
# The Gnome3 screen recorder is full-screen only. Other screen recorders | ||
# are xdamage unaware and drop frames. | ||
# All the gstreamer examples I could find online were for older | ||
# versions of gstreamer, so this is pieced together from their docs. | ||
|
||
# The stages of the pipeline: | ||
# - read screen | ||
# - grab the output at 60fps | ||
# - use a buffer and a thread | ||
# - convert video format | ||
# - encode as vp8 | ||
# - stash vp8 in a webm format | ||
# - save to a file | ||
gst-launch-1.0 -e \ | ||
ximagesrc starty=40 endx=300 endy=240 ! \ | ||
video/x-raw,framerate=60/1 ! \ | ||
queue ! \ | ||
videoconvert ! \ | ||
vp8enc ! \ | ||
webmmux ! \ | ||
filesink location=screen.webm |