Debian Codegraph @

src/byzanzencoderogv.c

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 /* desktop session recorder
2 * Copyright (C) 2009 Benjamin Otte <[email protected]>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 3 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifdef HAVE_CONFIG_H
19 #include "config.h"
20 #endif
21
22 #include "byzanzencoderogv.h"
23
24 #include <glib/gi18n.h>
25
26 G_DEFINE_TYPE (ByzanzEncoderOgv, byzanz_encoder_ogv, BYZANZ_TYPE_ENCODER_GSTREAMER)
27
28 static void
29 byzanz_encoder_ogv_class_init (ByzanzEncoderOgvClass *klass)
30 {
31 ByzanzEncoderClass *encoder_class = BYZANZ_ENCODER_CLASS (klass);
32 ByzanzEncoderGStreamerClass *gstreamer_class = BYZANZ_ENCODER_GSTREAMER_CLASS (klass);
33
34 encoder_class->filter = gtk_file_filter_new ();
35 g_object_ref_sink (encoder_class->filter);
36 gtk_file_filter_set_name (encoder_class->filter, _("Theora video"));
37 gtk_file_filter_add_mime_type (encoder_class->filter, "video/ogg");
38 gtk_file_filter_add_pattern (encoder_class->filter, "*.ogv");
39 gtk_file_filter_add_pattern (encoder_class->filter, "*.ogg");
40
•41 gstreamer_class->pipeline_string =
42 "appsrc name=src ! videoconvert ! videorate !"
43 "video/x-raw,format=Y444,framerate=25/1 ! theoraenc ! oggmux ! giostreamsink name=sink";
•44 gstreamer_class->audio_pipeline_string =
45 "autoaudiosrc name=audiosrc ! audioconvert ! vorbisenc ! queue ! oggmux name=muxer ! giostreamsink name=sink "
46 "appsrc name=src ! videoconvert ! videorate ! "
47 "video/x-raw,format=Y444,framerate=25/1 ! theoraenc ! queue ! muxer.";
48 }
49
50 static void
51 byzanz_encoder_ogv_init (ByzanzEncoderOgv *encoder_ogv)
52 {
53 }
54