Skip to main content

Topic: Command line help needed (Read 2594 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • nastea
  • [*][*]
Command line help needed
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.

  • pdq
  • [*][*][*][*][*]
Command line help needed
Reply #1
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?

Command line help needed
Reply #2
You sir, are making things hard for yourself

Foobar2000 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.
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.
  • Last Edit: 12 February, 2013, 11:48:39 PM by andrew_berge

  • nu774
  • [*][*][*][*][*]
  • Developer
Command line help needed
Reply #3
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.

  • harto69
  • [*]
Command line help needed
Reply #4
Mp3Tag unfortunately can't.


There is a portable version at portableapps.
  • Last Edit: 13 February, 2013, 03:42:49 AM by harto69

Command line help needed
Reply #5
There is a portable version at portableapps.


Oh man, thanks for that link. I've often missed Mp3Tag when using someone else's computer.

  • nastea
  • [*][*]
Command line help needed
Reply #6
You sir, are making things hard for yourself

Foobar2000 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.
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. ?

Command line help needed
Reply #7
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 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'.