<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
very nice.  thanks for sharing!<br>
<br>
On Thursday, October 29, 2009 12:21:27 PM, Jeffrey Ollie
<a class="moz-txt-link-rfc2396E" href="mailto:jeff@ocjtech.us">&lt;jeff@ocjtech.us&gt;</a> wrote:<br>
<blockquote
 cite="mid:935ead450910290921h363a8699n76fcca02eab23d71@mail.gmail.com"
 type="cite">
  <pre wrap="">On Thu, Oct 29, 2009 at 8:22 AM, Wes Sisk <a class="moz-txt-link-rfc2396E" href="mailto:wsisk@cisco.com">&lt;wsisk@cisco.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">nice command.  as ringers have to be shorter than a certain duration is
there another switch to truncate to the needed duration?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You can't easily add that to the command line, but by using the
GStreamer Python bindings you can create a short little script to do
the work for you.  I've attached the script, it's a little too long to
put inline.  It's using elements from GNonLin, which are plugins for
the GStreamer framework for non-linear editing.

The script works thusly:

cisco_ringtone_convert source.wav destination.raw

which will encode the first 2.01 seconds of the source file and store
it in the destination.

You can use the '--start'  and/or '--duration' arguments to pick the
part of the audio file that gets converted:

cisco_ringtone_convert --start 60.0 --duration 0.75 source.wav destination.raw

which will encode 0.75 seconds of audio starting 60 seconds into the
file.  You can feed the script pretty much any file that GStreamer
supports, it should even be able to extract the audio from a video.

  </pre>
</blockquote>
<br>
</body>
</html>