title: Play audio and video with a Pipeline in Gstreamer
body: <p>Is there a way make a pipeline that will play any video file (which will contain audio too)? I have tried linking elements like:</p>
  
  <pre><code>filesrc -&gt; decodebin
  </code></pre>
  
  <p>along with</p>
  
  <pre><code>queue -&gt; audioconvert -&gt; autoaudiosink
  </code></pre>
  
  <p>and</p>
  
  <pre><code>queue -&gt; autovideoconvert -&gt; autovideosink
  </code></pre>
  
  <p>This causes two problems:</p>
  
  <ol>
  <li>A <code>queue</code> cannot be linked to an <code>autovideoconvert</code>.</li>
  <li>I have no idea how to implement a pad with the <code>"pad-added"</code> event, especially when the pipeline supports both audio and video.</li>
  </ol>
  
  <p>I would like to know how to do this without the need for <code>gst.parse_launch</code>. Also, I want the pieline to work with any format I throw at it (like playbin), but cannot use a playbin as I will need to link other elements (<code>level</code> and <code>volume</code>). </p>
  
  <p>Alternatively, is there a way to connect elements (such as <code>level</code>) to a playbin?</p>