Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: FLAC command line not doing what it should (Read 4137 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

FLAC command line not doing what it should

Hello,

this is the command line i use to create an album image:
Code: [Select]
"d:\Program Files\Codecs\FLAC\flac.exe" --replay-gain --cuesheet="CDImage.cue" --picture="CDImage.jpg" --verify -8 CDImage.wav


Now, it does add the album art & cuesheet but somehow doesn't add the replay gain info - at least foobar doesn't see any.

The weird thing about it is, it was working fine before, so i'm not sure if it's FLAC's, mine or foobar's fault <.<
I did update the flac encoder & foobar some time ago, but i can't remember if it stopped working after i did so or if there was something else.

Does anyone know what i am doing wrong?

OS is Vista x64 SP1, UAC disabled.
Flac version: reference libFLAC 1.2.1 20070917
foobar version: 0.9.5.4

Another question: --cuesheet="CDImage.cue" only marks where tracks start in an album image, is there any way to auto-include the tags, too?

FLAC command line not doing what it should

Reply #1
Hello,

this is the command line i use to create an album image:
Code: [Select]
"d:\Program Files\Codecs\FLAC\flac.exe" --replay-gain --cuesheet="CDImage.cue" --picture="CDImage.jpg" --verify -8 CDImage.wav


Now, it does add the album art & cuesheet but somehow doesn't add the replay gain info - at least foobar doesn't see any.

To see if your file actually has ReplayGain, try:
Code: [Select]
metaflac.exe --list --block-type=VORBIS_COMMENT file.flac

and look for the REPLAYGAIN_* tags.  If the tags aren't found, metaflac can also add them with the "--add-replay-gain" flag.

Quote
Another question: --cuesheet="CDImage.cue" only marks where tracks start in an album image, is there any way to auto-include the tags, too?

FLAC's cuesheet block only has room for catalog number, lead-in, track numbers, track offsets, ISRC, indexes and a few other 1-bit flags.  It can't hold title or performer tags.

FLAC command line not doing what it should

Reply #2
If you embed the cuesheet as a Vorbis Comment then you will see the other tag information; such as artist, album, genre etc.
Surf's Up!
"Columnated Ruins Domino"

FLAC command line not doing what it should

Reply #3
To see if your file actually has ReplayGain, try:
Code: [Select]
metaflac.exe --list --block-type=VORBIS_COMMENT file.flac

and look for the REPLAYGAIN_* tags.  If the tags aren't found, metaflac can also add them with the "--add-replay-gain" flag.


This is the output right after encoding:



This is the output after replay gaining with foobar 0.9.5.4


Looks like either foobar adding something own to the file or the --replay-gain switch not writing the whole info?


If you embed the cuesheet as a Vorbis Comment then you will see the other tag information; such as artist, album, genre etc.
should i use
Code: [Select]
metaflac --import-cuesheet-from=CDImage.cue
command or something else to do that?

FLAC command line not doing what it should

Reply #4
Quote
Looks like either foobar adding something own to the file or the --replay-gain switch not writing the whole info?

None of the two. However, flac stores the CUE data elsewhere, in the CUESHEET metadata block, which is why you do not see it with your current vorbisgain command. It should appear when you remove the --block-type option from your command. Foobar stored the information in the VORBIS_COMMENT block.

FLAC command line not doing what it should

Reply #5
I'm confused about what does what.

what is the purpose of the --replay-gain switch for flac.exe?
as i see it, it is used to compute the replay gain values for the album image and save them as VORBIS_COMMENTs, but why doesn't foobar see them then?

foobar is re-calculating exactly the same info as it already has and writes it into it's own vorbis comment, included into the cuesheet? shouldn't it just read the existing info and use this instead?

i do understand that the CUESHEET block and the cuesheet VORBIS_COMMENT are 2 different things, but why using the CUESHEET block to store the basic cuesheet, if the applications are supposed to read this info from the VORBIS_COMMENT block?

edit: Foobar is definitely writing the replay gain values only to the cuesheet comment! if this implementation is correct, why is flac.exe creating separate comments for the replaygain info?

this is the metaflac output of a file encoded w/o the --replaygain switch - when foobar calculated it's values, it wrote it inside the cuesheet comment....


oh, and metaflac doesn't handle utf-8 well, so it seems.
Code: [Select]
metaflac --set-tag-from-file="CUESHEET=CDImage.cue"

creates an invalid tag and foobar cannot see the embedded cuesheet anymore.