<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br><br>&gt; Date: Tue, 27 Jul 2010 06:36:27 -0700<br>&gt; From: 123sandy@gmail.com<br>&gt; To: gstreamer-devel@lists.sourceforge.net<br>&gt; Subject: Re: [gst-devel] Bitrate of a media file<br>&gt; <br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; <br>&gt; Carlo 1-9-8-7 xxx wrote:<br>&gt; &gt; <br>&gt; &gt; Well, the question is, gstreamer has got the query_position for the<br>&gt; &gt; position in seconds, is there any function that returns the position in<br>&gt; &gt; bytes?<br>&gt; &gt; <br>&gt; You can try "gst_element_query_position" with the second argument as<br>&gt; GST_FORMAT_BYTES.<br>&gt; <br><br>Thanks for the answer,<br>that's what I thought, but gst_element_query_position with GST_FORMAT_BYTES returns incorrect values. In particular I think that these values are in some way related with the duration in seconds... in fact, for example, for 2 different files (with different bitrates) if I call "gst_element_query_position" with GST_FORMAT_BYTES at the same time (eg. after 10 seconds from the start of playing), I get the same values for both the files... any other ideas? :)<br>                                               </body>
</html>