Basic question

Jorge Fernandez Monteagudo jorgefm at cirsa.com
Mon Oct 5 00:47:35 PDT 2015


It works :)

Thank you!


________________________________________
From: gstreamer-devel [gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Nirbheek Chauhan [nirbheek.chauhan at gmail.com]
Sent: Monday, October 05, 2015 9:25 AM
To: Discussion of the development of and with GStreamer
Subject: Re: Basic question

On Mon, Oct 5, 2015 at 11:34 AM, Jorge Fernandez Monteagudo
<jorgefm at cirsa.com> wrote:
> I'm implementing a little test application in C and Gstreamer 1.x to code the next pipeline:
>
> gst-launch filesrc location=$1 typefind=true ! video/quicktime ! aiurdemux ! vpudec ! mfw_isink
>
> and I would like to know how translate the 'video/quicktime' element to C code.
>
> I have a GstElement for the other pipeline components but it's not clear to me what the
> 'video/quicktime' is?
>

That 'video/quicktime' string gets translated to a 'capsfilter'
element by gst-launch with its 'caps' property set to a GstCaps object
corresponding to 'video/quicktime'. You'll need to do something like:

capsfilter = gst_element_factory_make ("capsfilter", NULL);
caps = gst_caps_from_string ("video/quicktime");
g_object_set (capsfilter, "caps", caps, NULL);
gst_caps_unref (caps);

[...]

Cheers,
--
~Nirbheek Chauhan
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario indicado, queda notificado de que la utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by professional privilege.
If you are not the intended recipient you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it.


More information about the gstreamer-devel mailing list