Hello all. Quick question ('Cause I'm famished and have to get something to eat) If I have a batch of files (wave and/or ogg) with a certain naming scheme. Would it be possible for me to write a small nifty (newbie) dos-batch program that could tag those ogg-files (or encode the waves with tags) with regards to the namin parameters. Let me clarify. I usually encode waves with the naming pattern "Artist - Album - leading zero track number - Track Title" or "Artist - Track Title". How would I go about either encoding a batch of these waves with tags embedded or tagging the batch og resulting oggs. (Basically I'm wondering if it is possible to make a small tagging program with the same basic tagging scheme as the splendid (IMO) program MPTagger) Any takers, any suggestions? What programming language (should I get bold and try to do some first-time programming) would you recommend for such a feat ;-) Thanks for a wonderful codec. Love it to death :-) Kind regards, Peter --- >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.
Peter Gammeltoft wrote:> If I have a batch of files (wave and/or ogg) with a certain naming scheme. > Would it be possible for me to write a small nifty (newbie) dos-batch > program that could tag those ogg-files (or encode the waves with tags) with > regards to the namin parameters. > > Let me clarify. I usually encode waves with the naming pattern "Artist - > Album - leading zero track number - Track Title" or "Artist - Track Title". > > How would I go about either encoding a batch of these waves with tags > embedded or tagging the batch of resulting oggs. > > (Basically I'm wondering if it is possible to make a small tagging program > with the same basic tagging scheme as the splendid (IMO) program MPTagger)I don't think you could do this in MS-DOS batch language, which has no capability for manipulating the contents of strings. A Unix shell could do it easily. A scripting language such as Perl or Python could also do it quite well. The relevant parameters to oggenc are as follows: oggenc -a "Artist Name" -l "Album Name" -t "Song Title" -n tracknumber -o OggFilename.ogg WavFilename.wav Craig --- >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.
> Hello all. > > Quick question ('Cause I'm famished and have to get something to eat) > > If I have a batch of files (wave and/or ogg) with a certain naming scheme. > Would it be possible for me to write a small nifty (newbie) dos-batch > program that could tag those ogg-files (or encode the waves with tags)with> regards to the namin parameters. > > Let me clarify. I usually encode waves with the naming pattern "Artist - > Album - leading zero track number - Track Title" or "Artist - TrackTitle".> > How would I go about either encoding a batch of these waves with tags > embedded or tagging the batch og resulting oggs. > > (Basically I'm wondering if it is possible to make a small tagging program > with the same basic tagging scheme as the splendid (IMO) programMPTagger)> > Any takers, any suggestions?I don't know how you would go about doing that in DOS Shell, but I have been doing that with a quick perl script I put together. (See attached). It reads all .wav files in the current directory, and runs oggenc once for each one. I also use "Artist - Album - Track - Song Title", so it should work for you unmodified. Actually, I have a dual-cpu system, so I run two copies: xlat.pl and xlat2.pl each encode half of the songs in the current directory, each in its own DOS window. ogg.pl is the one-cpu version. You can get a Win32 binary of the perl interpreter from www.activestate.com> What programming language (should I get bold and try to do some first-time > programming) would you recommend for such a feat ;-)Bash, maybe? (See www.cygwin.com for a Win32 bash). The 'B' in BASIC stands for 'Beginner'. It's a good language to start with (and you might even be able to find qbasic.exe on your windows install disk). Java-the-language is nice in some ways, but I don't like Java-the-VM. Unfortunately, the two seem to be tied rather tightly together (although recent gcc has a native backend for Java). I'm not familiar with Python or Smalltalk, but I've heard good things about them. Perl is nice, but don't try to learn the whole language at once. I'd say, get a good book. I learned things the hard way (reference manuals. Ick.), but that doesn't mean you have to. Let me know how it works out. Peter Harris <HR NOSHADE> <UL> <LI>application/x-zip-compressed attachment: batch.zip </UL> -------------- next part -------------- A non-text attachment was scrubbed... Name: batch.zip Type: application/octet-stream Size: 1160 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis/attachments/20010820/119d38b7/batch-0001.obj
---- Craig Dickson <crdic@yahoo.com> wrote:> The relevant parameters to oggenc are as follows: > > oggenc -a "Artist Name" -l "Album Name" -t "Song Title" -n tracknumber > -o OggFilename.ogg WavFilename.wavHow about?: oggenc -b Bitrate -a "Artist Name" -l "Album Name" -t "Song Title" -N "tracknumber" -d "The Released Date" -c "genre=Genre" -o OggFilename.ogg WavFilename.wav -c "Name=Value" is very useful switch especially when you'd like to put more inforamtion. However, Ripping & encoding files into Vorbis on Windows is tiring... (Wish some third company introduce Vorbis to good software.) So, I am using Grip for Linux with encoding options like -b 192 -a "%a" -l "%d" -t "%n" -N "%t" -d "%y" -c "genre=%g" %f However, genre option doesn't seem to be working... So, I normally change -c "genre=%g" to -c "genre=Rock" or "genre=Soul" manually. :-( Any better idea? ___________________________________________________________________ To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax, all in one place - sign up today at http://www.zdnetonebox.com --- >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.
You can do this easier with AudioCV... Download it from http://mpxplay.cjb.net See samples\loadlist.lst file (in the zip). Attila --- >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.