gregory
Jul 31 2009, 07:08
Is it possible to re-encode from FLAC to FLAC and discard all metadata blocks(except the mandatory STREAMINFO block), leaving just the audio frames? Or would I have to decode to WAVE first? I'm searching through the docs, perhaps I just overlooked something.
Thanks a bunch.
Nick.C
Jul 31 2009, 07:33
Reflacing using
CODE
FLAC <filename.flac>
retains the metadata. However, if you
CODE
FLAC -d <filename.flac> --stdout|FLAC - -o<otherfilename.flac>
it will lose the additional WAV metadata, still without an intermediate WAV file.
gregory
Jul 31 2009, 08:03
Gotcha, I think, so this will send the decoded FLAC file to the standard output, and pipe that back into flac. What does the first hyphen do after piping back into flac(between 'FLAC' and '-o' in your code)?
Nick.C
Jul 31 2009, 08:31
The "-" immediately after FLAC indicates that input to FLAC is to be taken from STDIN.
gregory
Jul 31 2009, 08:37
Ok, I understand. Thank you for the help.
greynol
Jul 31 2009, 17:49
gregory
Jul 31 2009, 21:43
Ah, that is surely another alternative. I personally would specify '--dont-use-padding' to remove the unused space. I wonder if one could use a '--remove-all' to remove everything, then further in the same command, add certain new metadata blocks, or if this would require two separate commands.
Thank You, I had forgotten about metaflac.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.