How to use appsink as the audio-sink of GES pipeline?

Guofeng Zhang guofengzh at auslides.com
Mon Nov 2 08:46:22 PST 2015


Hi,

I wonder if it was possible to use appsink as the audio-sink of the GES 
pipeline, so I create the following bin:
     string = g_strdup_printf ("encodebin name=encoder ! appsink 
caps=\"%s\" name=appsink", CAPS);
     bin = (GstBin *)gst_parse_launch (string, NULL);

then set encoder's profile:
     ebin = gst_bin_get_by_name (GST_BIN (bin), "encoder");
     g_object_set (ebin, "avoid-reencoding", TRUE, NULL);
     g_object_set (ebin, "profile", create_ogg_theora_profile(), NULL);

and last set it to be the audio-sink of the GESPipeline:
    ges_pipeline_preview_set_audio_sink (gespipeline, ebin);

but it does not work. I think it might be I did not link some elemet in 
GES pipeline to the encodebin (no way to emit request-pad signal), but I 
don't know how to do it.

Is it possible to use appsink in GES pipeline? if yes, how to do it?

Your help is very appreciated.

Thanks.

guofeng



More information about the gstreamer-devel mailing list