Debian Codegraph @

src/byzanzencoderflv.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 "byzanzencoderflv.h"
23
24 #include <glib/gi18n.h>
25
26 G_DEFINE_TYPE (ByzanzEncoderFlv, byzanz_encoder_flv, BYZANZ_TYPE_ENCODER_GSTREAMER)
27
28 static void
29 byzanz_encoder_flv_class_init (ByzanzEncoderFlvClass *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, _("Flash video"));
37 gtk_file_filter_add_mime_type (encoder_class->filter, "video/x-flv");
38 gtk_file_filter_add_pattern (encoder_class->filter, "*.flv");
39
40 gstreamer_class->pipeline_string =
•41 "appsrc name=src ! videoconvert ! avenc_flashsv ! flvmux ! giostreamsink name=sink";
42 gstreamer_class->audio_pipeline_string =
•43 "autoaudiosrc name=audiosrc ! audioconvert ! audio/x-raw ! queue ! flvmux name=muxer ! giostreamsink name=sink "
44 "appsrc name=src ! videoconvert ! avenc_flashsv ! muxer.";
45 }
46
47 static void
48 byzanz_encoder_flv_init (ByzanzEncoderFlv *encoder_flv)
49 {
50 }
51