<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 06/23/2012 01:22 PM, Michel Albert
wrote:<br>
</div>
<blockquote
cite="mid:CAM8bmgAbYc-LZ2D8uEihXhtoGhH4OPOsORooB6m+0NC=j2sCpg@mail.gmail.com"
type="cite">
<pre wrap="">Hi,
I am very new to gstreamer, and I would like to implement a very basic
audio player without UI in python. It's supposed to be used as a
component in a web-application, streaming audio to an icecast server.
I have got the basics to work using a simple pipeline. The pipeline
looks like this:
filesrc name="infile" location="{filename}" ! decodebin !
audioconvert ! vorbisenc ! oggmux ! shout2send mount="{mount}"
port={port} username={user} password={passwd}
As said, this works. But now I would need to get the current position
in the input file. I was trying to run
"pipeline.get_by_name('infile').query_position(gst.FORMAT_TIME)" but
that gives me a "Query failed" error, without more details. I dug
through all the docs of the pipeline elements, but did not find
anything that looks promising.</pre>
</blockquote>
Just send the query to the pipeline, it will dispatch it to the
right element.<br>
<pre wrap="">"pipeline.query_position(gst.FORMAT_TIME)"
Stefan
</pre>
<blockquote
cite="mid:CAM8bmgAbYc-LZ2D8uEihXhtoGhH4OPOsORooB6m+0NC=j2sCpg@mail.gmail.com"
type="cite">
<pre wrap="">
For reference, I will attach my current experimental script to this mail.
Best regards,
Mich.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>