Hi ,<br><br>You can give a try to gst_element_query_convert() .<br><br><h3><br></h3><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 11:03 AM, Carlo 1-9-8-7 . <span dir="ltr"><<a href="mailto:casillicarlo@hotmail.it">casillicarlo@hotmail.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<br><br>> Date: Tue, 27 Jul 2010 06:36:27 -0700<br>> From: <a href="mailto:123sandy@gmail.com" target="_blank">123sandy@gmail.com</a><br>> To: <a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
> Subject: Re: [gst-devel] Bitrate of a media file<div class="im"><br>> <br>> <br>> Hi,<br>> <br>> <br>> Carlo 1-9-8-7 xxx wrote:<br>> > <br>> > Well, the question is, gstreamer has got the query_position for the<br>
> > position in seconds, is there any function that returns the position in<br>> > bytes?<br>> > <br>> You can try "gst_element_query_position" with the second argument as<br>> GST_FORMAT_BYTES.<br>
> <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>------------------------------------------------------------------------------<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>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>