[vorbis] >Why not use OggDrop? Going for managed bitrates? Tagging?

Beni Cherniavksy cben at techunix.technion.ac.il
Mon Jan 7 05:48:02 PST 2002



On 2002-01-07, Philip M. White wrote:

> At 02:22 1/7/2002, you wrote:
> >The solution I use is the dos FOR loop. e.g.
> >FOR %%1 IN (*.wav) DO oggenc -q 4 --artist="Dido"  --album="No Angel" -d "2001" %%1
> >The song titles are unique so there's no time saved by using a batch file; I do them after encoding.
>
> This is wonderful, Christopher.
>         One last question: is there a way to use the loop control variable value inside the loop? Since the loop counter begins with one and is incrementing each time (I'm assuming), I should probably use that value as the track number and serial number to save myself time later.
>         Is there a way to do that, like in C/C++'s for() loop?

If you are using NT/2000 cmd.exe, run `for /? | more' to get many options,
but probably not this one ;-(.  On 4DOS, bash (and python of course) you
can achieve it by counting for yourself (e.g. add `set n=%@eval[%n + 1]'
(IIRC) as a second command in the loop - 4DOS).  Hardly any language comes
with double counter/over-a-list-of-values looping builtin.


-- 
Beni Cherniavsky <cben at tx.technion.ac.il>
                 (also scben at t2 in Technion)

<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