[gst-devel] Problem in requesting pad for avimux
trimurthulu amaradhi
trimmu at gmail.com
Mon Sep 24 09:43:19 CEST 2007
Hi,
avimux both sink pads are request pads..
you have to use gst_element_get_request_pad();
regards..
Trimurthulu
On 9/24/07, Pavan <pavanpatale at hotmail.com> wrote:
>
> I dont have linux machine here to try out the code.
> Could you check which of the API's is failing individually ? i.e. do a null
> check for return value of gst_element_get_pad(queue,"src") and
> gst_element_get_pad(avimux,"video_00")
> If either of them are not returning NULL then check if you have added the
> queue and muxer to the pipeline.
>
> HTH,
> Pavan.
>
>
>
>
>
> From: kirrthana at tataelxsi.co.inTo: pavanpatale at hotmail.comSubject: RE:
> [gst-devel] Problem in requesting pad for avimuxDate: Mon, 24 Sep 2007
> 09:00:57 +0530
>
>
>
> Sorry it was actually
> gst_pad_link(gst_element_get_pad(queue,"src"),gst_element_get_pad(avimux,"video_00"),i
> have posted like tat by mistake.
> Im linking source and sink pad only.still the return value is -1.
>
> -----Original Message-----From: Pavan [mailto:pavanpatale at hotmail.com]Sent:
> Sunday, September 23, 2007 7:50 PMTo: kirrthana at tataelxsi.co.in;
> gstreamer-devel at lists.sourceforge.netSubject: RE: [gst-devel] Problem in
> requesting pad for avimuxHi Kirrthana, You should connect the source pad of
> the queue to sink pad of avimux. Thanks,Pavan.
>
>
> From: kirrthana at tataelxsi.co.inTo:
> gstreamer-devel at lists.sourceforge.netDate: Sun, 23 Sep 2007 16:34:50
> +0530Subject: [gst-devel] Problem in requesting pad for avimux
> Hi all ,
>
> I have created a pipeline where i capture live audio and video,encode
> it and mux using avimux.
>
> My pipeline is like
> video source --->encode--->tee---->queue----> |
>
> |--->avimux
> audio source---->encode---->tee---->queue---->|
>
> Im requesting pad from queue to avimux and linking like this
> gst_pad_link(gst_element_get_pad(queue,"sink"),gst_element_get_pad(avimux,"video_00")
>
> similarly for audio:-
> gst_pad_link(gst_element_get_pad(queue,"sink"),gst_element_get_pad(avimux,"audio_00")
>
> the return value of gst_pad_link is -1,which says
>
>
> Download the latest version of Windows Live Messenger NOW! Click here!
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments contained in it. Contact your Administrator for
> further information.
> _________________________________________________________________
> Download the latest version of Windows Live Messenger NOW!
> http://get.live.com/en-ie/messenger/overview
More information about the gstreamer-devel
mailing list