summarylogtreecommitdiffstats
path: root/screencast-vaapi.patch
blob: e1012f322a731c0fc0317e07f6e65c90ca991d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js
index a01fbe3c9..5d3e27026 100644
--- a/js/ui/screenshot.js
+++ b/js/ui/screenshot.js
@@ -1864,11 +1864,14 @@ var ScreenshotUI = GObject.registerClass({
                     _('Screencasts'),
                     /* Translators: this is a filename used for screencast
                      * recording, where "%d" and "%t" date and time, e.g.
-                     * "Screencast from 07-17-2013 10:00:46 PM.webm" */
+                     * "Screencast from 07-17-2013 10:00:46 PM.mp4" */
                     /* xgettext:no-c-format */
-                    _('Screencast from %d %t.webm'),
+                    _('Screencast from %d %t.mp4'),
                 ]),
-                {'draw-cursor': new GLib.Variant('b', drawCursor)});
+                {
+                    'draw-cursor': new GLib.Variant('b', drawCursor),
+                    'pipeline': new GLib.Variant('s', 'vaapipostproc ! video/x-raw,format=NV12,max-framerate=60/1 ! queue ! vaapih264enc ! video/x-h264,profile=main ! queue ! h264parse ! mp4mux'),
+                });
             if (!success)
                 throw new Error();
             this._screencastPath = path;