HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: nastea on 2013-02-13 02:52:43

Title: Command line help needed
Post by: nastea on 2013-02-13 02:52:43
I'm using bat files to create flac files, and although I never cared about proper tagging, I'm finally trying to get things right.
But because I can't find any documentation about it, at least not in my language (Dutch), I desperately trying to get some help here.
There are probably better ways to do this, but I'm just old fashioned 

Usually I use something like this to convert wav-files to flac (using a batch file, and sometimes using the command line)

MAKEFLAC.BAT (filename)
flac -8 --picture=front.jpg "Track 01.wav"
flac -8 --picture=front.jpg "Track 02.wav"
flac -8 --picture=front.jpg "Track 03.wav"
flac -8 --picture=front.jpg "Track 04.wav"
flac -8 --picture=front.jpg "Track 05.wav"
flac -8 --picture=front.jpg "Track 06.wav"
flac -8 --picture=front.jpg "Track 07.wav"
flac -8 --picture=front.jpg "Track 08.wav"

Strange enough, I know how to include album art, but how do I get Artist, TrackTitle, Tracknumber, Albumtitle, Year, and Genre in the file?
Thanks in advance.
Title: Command line help needed
Post by: pdq on 2013-02-13 03:14:38
I find it odd that you would have wav files at all. Are these files that you ripped yourself, and if so, why didn't you rip directly to flac or some other file format that the ripper could tag for you?
Title: Command line help needed
Post by: andrew_berge on 2013-02-13 04:39:18
You sir, are making things hard for yourself

Foobar2000 (http://www.foobar2000.org/) can batch convert them all for you, you can add tags with it, too.
For a more advanced and easier to use tagging app i recommend Mp3Tag (http://www.mp3tag.de/en/).
Foobar can be installed portably (on a thumbdrive), Mp3Tag unfortunately can't.


But if you absolutely want command line...

You add something like this:
-T "title=TRACKTITLE" -T "artist=TRACKARTIST"

Replace the words in caps with your own.
Title: Command line help needed
Post by: nu774 on 2013-02-13 05:28:39
If those WAV files were ripped from CD, try CUETools.
With a few clicks, it will automatically pull metadata from MusicBraniz/FreeDB, allow you to encode to one of your favorite formats, automatically write tags and cuesheet, and even checks with AccurateRip.
No need to write batch files or something.
Title: Command line help needed
Post by: harto69 on 2013-02-13 07:45:30
Mp3Tag unfortunately can't.


There is a portable version at portableapps (http://portableapps.com/node/18890).
Title: Command line help needed
Post by: andrew_berge on 2013-02-13 17:53:57
There is a portable version at portableapps (http://portableapps.com/node/18890).


Oh man, thanks for that link. I've often missed Mp3Tag when using someone else's computer.
Title: Command line help needed
Post by: nastea on 2013-03-24 03:18:05
You sir, are making things hard for yourself

Foobar2000 (http://www.foobar2000.org/) can batch convert them all for you, you can add tags with it, too.
For a more advanced and easier to use tagging app i recommend Mp3Tag (http://www.mp3tag.de/en/).
Foobar can be installed portably (on a thumbdrive), Mp3Tag unfortunately can't.


But if you absolutely want command line...

You add something like this:
-T "title=TRACKTITLE" -T "artist=TRACKARTIST"

Replace the words in caps with your own.


Thanks man, this is really helpful. 
I've got lots of recordings which are not from cd, like live recordings from FM radio, digitized vinyl, and even some digitized cassette tapes,
so I can't let EAC do the job.

It's all working pretty well as I want it right now, (in a batch file) except I can't seem to get the total number of tracks in the tag.
And what are all the possible field values, like TITLE, ARTIST etc. ?
Title: Command line help needed
Post by: andrew_berge on 2013-03-24 03:46:01
FLAC uses Vorbis Comments for tagging, which means you can use pretty much anything you want as a field value.
Xiph.org's Specification for Vorbis Comments (https://www.xiph.org/vorbis/doc/v-comment.html) proposes a few tags about halfway down the page.
That list is missing a few tags that i think have become pretty popular, such as 'comment', 'totaltracks', 'discnumber' and 'totaldiscs'.