[cisco-voip] RAW File Converter

Wes Sisk wsisk at cisco.com
Thu Oct 29 12:23:38 EDT 2009


very nice.  thanks for sharing!

On Thursday, October 29, 2009 12:21:27 PM, Jeffrey Ollie 
<jeff at ocjtech.us> wrote:
> On Thu, Oct 29, 2009 at 8:22 AM, Wes Sisk <wsisk at cisco.com> wrote:
>   
>> nice command.  as ringers have to be shorter than a certain duration is
>> there another switch to truncate to the needed duration?
>>     
>
> 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.
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20091029/1727dc80/attachment.html>


More information about the cisco-voip mailing list