[Vorbis] Re: Recursively vcutting

Kelsang Norpel norpel at meditateinscotland.org
Sun Jan 2 07:43:12 PST 2005


Thanks Andy, you just saved me alot of work trying to do all of this manually

On Sunday 02 Jan 2005 14:29, Andy Baxter wrote:
> #!/bin/bash
> split=$1;shift
> file="$*"
> name="${file%.ogg}" # strip extension.
> cp "$file" /tmp/file-$$.ogg
> stop=0
> n=0
> while [ $stop -eq 0 ] ; do
>     echo "cutting to ${name}-$n.ogg"
>     vcut /tmp/file-$$.ogg "${name}-$n.ogg" /tmp/remainder-$$.ogg "$split"
>     stop=$?
>     mv /tmp/remainder-$$.ogg /tmp/file-$$.ogg
>     n=$(( $n + 1 ))
>     done
>
> rm /tmp/file-$$.ogg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis/attachments/20050102/edf3aac3/attachment.pgp


More information about the Vorbis mailing list