Christopher Wise
2002-Jan-07 00:22 UTC
[vorbis] >Why not use OggDrop? Going for managed bitrates? Tagging?
>Why not use OggDrop? Going for managed bitrates? Tagging?> If you really must know (and I don't think it matters) I use oggdrop because I want to > encode a batch of files without requiring user intervention between each file, and because I do lot of tagging. > Besides, I don't see how oggdrop is going to HELP me encode the entire CD to Ogg Vorbis. It's certainly much > less automated than oggenc.> SyP wrote: >> It isn't necessary to encode the full CD at once, is it? You could do >> well with multiple lines, like: >> oggenc -N "01" -q 4 --artist="Dido" --title="Here With Me" --album="No Angel" -d "2001" -n "%%n %%t.ogg" track01.wav >> oggenc -N "02" -q 4 --artist="Dido" --title="Hunter" --album="No Angel" -d "2001" -n "%%n %%t.ogg" track02.wav> That's a good idea, but it would increase the size of my batch file tremendously, because then I'd have to specify a pageful > (a pageful in the ogg info viewer, not batch file) of comments for EACH track, and that would be much more maintenance than > working with a single line. > It would be wonderful if DOS had some kind of escape character. Nice, simple, and elegant. But I guess those words don't > really apply to DOS... (*shrug*)I don't think an escape character would help, the limitation is in the length of the line that command.com can process. (126 characters IIRC). 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. If you want to got the multil-line route, you could use string constants, for example: et sw=-q4 -n "%%n %%t.ogg" set a="Dido" set l="No Angel" set y="2001" set t1="Here With Me" set t2="Hunter" set t3="Don't Think Of Me" oggenc track01.wav -N "01" --artist=%a% --album=%l% -d %y% %sw% --title=%t1% oggenc track02.wav -N "02" --artist=%a% --album=%l% -d %y% %sw% --title=%t2% oggenc track03.wav -N "03" --artist=%a% --album=%l% -d %y% %sw% --title=%t3% It would make for a big batch file, but you would only have to edit the top half. Otherwise you could try a more sophisticated command interperter such as 4dos or Cygwin's version of bash. Chris Wise <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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Philip M. White
2002-Jan-07 05:37 UTC
[vorbis] >Why not use OggDrop? Going for managed bitrates? Tagging?
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.<p>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? Thanks. -- Philip. -------------- next part -------------- A non-text attachment was scrubbed... Name: part Type: application/pgp-signature Size: 1489 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis/attachments/20020107/0e08e4ae/part.pgp
Christopher Wise
2002-Jan-07 14:24 UTC
[vorbis] >Why not use OggDrop? Going for managed bitrates? Tagging?
> 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?You can do something like this: set sw=-q4 set a="Dido" set l="No Angel" set y="2001" for %%c in (01 02 03 04 05 06 07 08 09 10 11 12) do oggenc track%%c.wav -N "%%c" --artist=%a% --album=%l% -d %y% %sw% Chris Wise <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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.