[vorbis] Cutting Vorbis

vorbis at altamente.com vorbis at altamente.com
Fri Nov 29 05:38:16 PST 2002



>
> Exist any software that cut (begin and end) Vorbis files without have to
> decode???
>

I wrote a stupid tiny itty bitty little bash script with vcut to solve
this problem for myself.  For 44.1 kHz you get approx
----------------
#/bin/bash
 SAMPLESPERSECOND=44100
 SECONDS=$(echo "$4*60+$5" | bc)

vcut "$1" "$2" "$3" $(echo "$SAMPLESPERSECOND*$SECONDS" | bc)
----------------
Where the arguments are in the same order and specification as in vcut
for example:

 new_vcut your-file.ogg silence.ogg stuff-to-keep.ogg 45 34.4

to be cut at 45 minutes 34.4 seconds.  Of course if vcut already includes
this in cvs, then the issue is moot, eh?  Anyway, this only works in
Linux.  Hope this helps.

--James

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis mailing list