cannot link elements in pipeline

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

cannot link elements in pipeline

Albert Costa
Hi,
I have a pipeline like 
gst-launch filesrc location=myvideo ! mpegtsdemux ! ffdec_mpeg2video ! ffmpegcolorspace ! directdrawsink
This works fine in command line.
I wanted to put it in a program where I build elements, add them to a pipeline element, and link them together. Everything works fine until I try to link mpegtsdemux and ffdec_mpeg2video together : the result of gst_element_link_pads(demuxer, NULL, decoder, NULL) is false. What kind of thing am I doing wrong? should I give precise pad template names for these elements? I don't want to use a decodebin element for specific reasons (which I successfully already passed on), I just want to have this pipeline.
Thanks for any advice,
Regards,
Al


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re : cannot link elements in pipeline

Albert Costa
I did find my error, I needed to set a callback for pad added of the demuxer, and link it to the decoder sink inside the function. This works fine, a first frame is displayed but then... nothing happens. It just does halt and no more process is carried on. 
What could be the problem?
Regards,
Al


De : Albert Costa <[hidden email]>
À : gstreamer <[hidden email]>
Envoyé le : Jeu 25 mars 2010, 16 h 29 min 52 s
Objet : [gst-devel] cannot link elements in pipeline

Hi,
I have a pipeline like 
gst-launch filesrc location=myvideo ! mpegtsdemux ! ffdec_mpeg2video ! ffmpegcolorspace ! directdrawsink
This works fine in command line.
I wanted to put it in a program where I build elements, add them to a pipeline element, and link them together. Everything works fine until I try to link mpegtsdemux and ffdec_mpeg2video together : the result of gst_element_link_pads(demuxer, NULL, decoder, NULL) is false. What kind of thing am I doing wrong? should I give precise pad template names for these elements? I don't want to use a decodebin element for specific reasons (which I successfully already passed on), I just want to have this pipeline.
Thanks for any advice,
Regards,
Al



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel