<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
On GstElement *pipeline. The values with GST_FORMAT_TIME are correct.... I'll try to take a look at gst_element_query_convert()<br><br><hr id="stopSpelling">Date: Wed, 28 Jul 2010 12:00:54 +0300<br>From: bisht.sudarshan@gmail.com<br>To: gstreamer-devel@lists.sourceforge.net<br>Subject: Re: [gst-devel] Bitrate of a media file<br><br>One question I have , on which element you fire gst_element_query_position with GST_FORMAT_BYTES option? <br><br><div class="ecxgmail_quote">On Wed, Jul 28, 2010 at 11:53 AM, sudarshan bisht <span dir="ltr">&lt;<a href="mailto:bisht.sudarshan@gmail.com">bisht.sudarshan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="padding-left: 1ex;">Hi ,<br><br>You can give a try to gst_element_query_convert() .<br><br><h3><br></h3><br><div class="ecxgmail_quote">
<div><div></div><div class="h5">On Wed, Jul 28, 2010 at 11:03 AM, Carlo 1-9-8-7 . <span dir="ltr">&lt;<a href="mailto:casillicarlo@hotmail.it">casillicarlo@hotmail.it</a>&gt;</span> wrote:<br>
</div></div><blockquote class="ecxgmail_quote" style="padding-left: 1ex;"><div><div></div><div class="h5">



<div>
<br><br>&gt; Date: Tue, 27 Jul 2010 06:36:27 -0700<br>&gt; From: <a href="mailto:123sandy@gmail.com">123sandy@gmail.com</a><br>&gt; To: <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>

&gt; Subject: Re: [gst-devel] Bitrate of a media file<div><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></div>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>

                                               </div>
<br></div></div><div class="ecxim">------------------------------------------------------------------------------<br>
The Palm PDK Hot Apps Program offers developers who use the<br>
Plug-In Development Kit to bring their C/C++ apps to Palm for a share<br>
of $1 Million in cash or HP Products. Visit us here for more details:<br>
<a href="http://ad.doubleclick.net/clk;226879339;13503038;l" target="_blank">http://ad.doubleclick.net/clk;226879339;13503038;l</a>?<br>
<a href="http://clk.atdmt.com/CRS/go/247765532/direct/01/" target="_blank">http://clk.atdmt.com/CRS/go/247765532/direct/01/</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
</div><div class="ecxim"><a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
</div><div class="ecxim"><a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><font color="#888888"><br>Sudarshan Bisht<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>
<br>------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/<br>_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel                                               </body>
</html>