<br><br><div class="gmail_quote">2012/1/5 Rossana Guerra <span dir="ltr">&lt;<a href="mailto:guerra.rossana@gmail.com">guerra.rossana@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi I am trying to play an avi file, for some reasons I don&#39;t want to do it with a playbin.<br>The fact is I had an avidemux and a mad decoder but not every avi file can play. Then I replaced it for the following pipeline, to get the most codecs.<br>

<br>                                decodebin ----- queue ------ audioconvert ---- audioresample ------ autoaudiosink<br>filescr --- avidemux ---<br>                                decodebin ----- queue ------ ffmpegcolorspace ----- videoscale ----autovideosink<br>

<br><br>I tryed to link avidemux - decodebin with on-pad event, and decodebin - queue as well. It didn&#39;t work.<br><br>I tryed to link avidemux - decodebin with the following code, but it didn&#39;t work either.<br><br>

// demuxer avidemux&#39;s name<br>// decvd a decodebin name for video, decad a decodebin name for audio.<br><br>GstPad *targetsrc = gst_element_get_pad(demuxer, &quot;video_%02&quot;);<br><br>GstPad *targetsrc2 = gst_element_get_pad(demuxer, &quot;audio_%02&quot;);<br>

<br>GstPad *padV = gst_element_get_static_pad(decvd,&quot;sink&quot;);<br><br>GstPad *padA = gst_element_get_static_pad(decad,&quot;sink&quot;);<br><br>gst_pad_link (targetsrc,padV);<br>gst_pad_link (targetsrc2,padA);<br>

<br>Any suggestion? Thanks a lot.<span class="HOEnZb"><font color="#888888"><br><br>Rossana<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>I think this is the same error I wrote about in <br>your last program. You can not get the srcpads from the<br>avidemux, as they are dynamic pads.<br>At this point, the demuxer can not know if there are audio and/or<br>
video streams at all. <br>You have to create a pad-added callback for the demuxer as well.<br><br>nicolai<br>