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.<br><br>Rossana<br>