<div dir="ltr">Hi folks,<div style><br></div><div style>my pipeline look like this</div><div style>souphttpsrc ! jpegdec ! videorate ! video/x-raw-yuv,framerate=5/1 ! timeoverlay ! queue ! theoraenc ! oggmux ! filesink<br>
</div><div style>where theoraenc, oggmux and filesink are in seprate bin so I can change it dynamically.</div><div style><br></div><div style>In my python code I'm trying to get current pipeline position by calling this function:</div>
<div style><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div style>def getPosition(self):</div><div style><span class="" style="white-space:pre"> </span>try:</div><div style><span class="" style="white-space:pre"> </span>self.position = self.pipeline.query_position(gst.FORMAT_TIME, None) [0]</div>
<div style><span class="" style="white-space:pre"> </span>print self.position</div><div style><span class="" style="white-space:pre"> </span>return True</div><div style><span class="" style="white-space:pre"> </span>except:</div>
<div style><span class="" style="white-space:pre"> </span>print "FAIL"</div><div style><span class="" style="white-space:pre"> </span>return True</div></blockquote><div style><br></div><div style>Sadly my function always fail with<font face="arial, helvetica, sans-serif"> "<font color="#000000"><span style="line-height:18px">gst.QueryError: Query failed", no matter if calling it once when I need it or periodically by adding</span></font></font></div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div style><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:18px">gobject.timeout_add(100, self.getPosition)</span></font></div>
</blockquote><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:18px"><br></span></font><div style><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:18px">Same code on my old ubuntu 10.04 with standard gstreamer installation (0.10.28)) works fine.</span></font></div>
<div style><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:18px">Any hint?</span></font></div><div style><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:18px"><br>
</span></font></div><div style><font color="#000000" face="arial, helvetica, sans-serif"><span style="line-height:18px">Thank you</span></font></div><div style><br></div></div>