<font><font face="verdana,sans-serif">Hi,</font></font><div><font><font face="verdana,sans-serif"><br></font></font></div><div><font face="verdana, sans-serif">I'm getting bad performance when playing an mpeg2 elementary stream with playbin2. Example clip: <a href="https://www.dropbox.com/s/cd9kxmj1ug21438/video.m2v">https://www.dropbox.com/s/cd9kxmj1ug21438/video.m2v</a></font></div>
<div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">The pipeline used by playbin2 is similar to:</font></div><div><font face="verdana, sans-serif">filesrc ! mpegvideoparse ! queue ! mpeg2dec ! xvimagesink<br>
</font></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">When playing with the pipeline myself, I can fix the perfomance issue in 2 ways:</font></div><div><font face="verdana, sans-serif"><br>
</font></div><div><font face="verdana, sans-serif">1. leave out mpegvideoparse:</font></div><div><div><font face="verdana, sans-serif">filesrc ! queue ! mpeg2dec ! xvimagesink<br></font></div></div><div><font face="verdana, sans-serif"><br>
</font></div><div><font face="verdana, sans-serif">2. insert a queue before mpegvideoparse:</font></div><div><div><font face="verdana, sans-serif">filesrc ! queue ! mpegvideoparse ! queue ! mpeg2dec ! xvimagesink<br></font></div>
</div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">It seems to me that there should be a queue in front of the parse element. Playbin2 always insert a queue between demuxing and parsing. As this is an elementary clip, playbin2 leaves out the demuxing and the queue after it.</font></div>
<div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">Should playbin2 insert a queue before parsing even if there is no demuxing necessary? Or am I looking at it the wrong way?</font></div>
<div><font face="verdana, sans-serif"><br></font></div><div><div style="font-family:arial,sans-serif;font-size:13px"><font><font face="verdana,sans-serif">GStreamer version:</font></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font><font face="verdana,sans-serif">base: 0.10.36</font></font></div><div style="font-family:arial,sans-serif;font-size:13px"><font><font face="verdana,sans-serif">good: 0.10.31<br></font></font></div><div style="font-family:arial,sans-serif;font-size:13px">
<font><font face="verdana,sans-serif">bad: </font></font><font face="verdana, sans-serif">0.10.23</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="verdana, sans-serif">ugly: 0.10.19</font></div>
</div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">Best regards,</font></div><div><font face="verdana, sans-serif"><br></font></div><div><font face="verdana, sans-serif">Christophe</font></div>