title: Playing mpeg2ts with Gstreamer-1.0 on Raspberry Pi
body: <p>Good day fellow programmers,
  I am trying to play a .ts file with gstreamer straight on a RPi.
  Gstreamer-1.0 as well as gst-omx have been successfully installed and this example pipeline runs like a charm: 
  <code>gst-launch-1.0 -v filesrc location=h264_720p_hp_5.1_6mbps_ac3_planet.mp4 ! qtdemux ! h264parse ! omxh264dec ! autovideosink
  </code></p>
  
  <p>It actually even works using <code>gst-launch-1.0 playbin uri=file:/root/h264_720p_hp_5.1_6mbps_ac3_planet.mp4</code></p>
  
  <p>However if I try to use playbin to play a .ts file it actually does run it but only with a very poor frame rate which makes this approach unusable.</p>
  
  <p>If I try to build a custom pipeline similar to one shown above I am stuck with "tsparse" apparently being incompatible with "omxmpeg2videodec".</p>
  
  <p>This is what I run:</p>
  
  <pre><code>gst-launch-1.0 -v filesrc location=parkrun1920_12mbps.ts ! tsdemux ! tsparse ! omxmpeg2videodec ! autovideosink
  </code></pre>
  
  <p>Which outputs this error:</p>
  
  <pre><code>erroneous pipeline: could not link mpegtsparse2-0 to omxmpeg2videodec-omxmpeg2videodec0
  </code></pre>
  
  <p>Does anyone has an idea how I could get gstreamer to fluently play mpeg2-ts files?</p>
  
  <p>My goal is to play http unicast mpeg2-ts streams provided by mumudvb on the same RPi.</p>
  
  <p>Thanks for your help, it would be greatly appreciated!</p>
  
  <p>Edit: omxplayer plays the .ts file perfectly smooth so I don't think my problem has got anything to do with the hardware or the file.</p>