gstreamer- video-pgm

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gstreamer- video-pgm

vaisakhn7
I was trying buil an application to play " mpg " file

so that in program i created elements
are ... filesrc location=f1.mpg  , mpegdemux,  mpeg2dec , xvimagesink

are the elements i created .. by using  gst_element_factory_make ("", "");
and linked  the elements like this .....
if(! gst_element_link_many(Source,MPG_Demux, MPG_Decod,Video_Sink ,NULL) )
{
/* but its goes here */
/* error in linking * /
}

i found that error is in linking in between MPG_Demux and MPG_Decod ..
why its so???

help me

thanks in advance



***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer- video-pgm

Eric Zhang-6
Hi, gstreamer-devel:

    The mpegdemux has dynamic pads which you can't link to decoder directly. You need to read the gstreamer application develop manual for details.

Eric Zhang

2009/1/15 vaisakh.n <[hidden email]>
I was trying buil an application to play " mpg " file

so that in program i created elements
are ... filesrc location=f1.mpg  , mpegdemux,  mpeg2dec , xvimagesink

are the elements i created .. by using  gst_element_factory_make ("", "");
and linked  the elements like this .....
if(! gst_element_link_many(Source,MPG_Demux, MPG_Decod,Video_Sink ,NULL) )
{
/* but its goes here */
/* error in linking * /
}

i found that error is in linking in between MPG_Demux and MPG_Decod ..
why its so???

help me

thanks in advance



***** Confidentiality Statement/Disclaimer *****

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer- video-pgm

Thijs Vermeir-2
In reply to this post by vaisakhn7
Hi,

On Thu, Jan 15, 2009 at 12:40:47PM +0530, vaisakh.n wrote:

> I was trying buil an application to play " mpg " file
>
> so that in program i created elements
> are ... filesrc location=f1.mpg  , mpegdemux,  mpeg2dec , xvimagesink
>
> are the elements i created .. by using  gst_element_factory_make ("", "");
> and linked  the elements like this .....
> if(! gst_element_link_many(Source,MPG_Demux, MPG_Decod,Video_Sink ,NULL) )
> {
> /* but its goes here */
> /* error in linking * /
> }
>
> i found that error is in linking in between MPG_Demux and MPG_Decod ..
> why its so???

Demuxers have most of the time dynamic pads. You need to link them in a
callback function and not with gst_element_link(_many), like in the
hello world example [1].

Gr,
Thijs

[1] http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-helloworld.html

>
> help me
>
> thanks in advance
>
>
>
> ***** Confidentiality Statement/Disclaimer *****
>
> This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
> The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel