Help - Search - Members - Calendar
Full Version: Removing metadata blocks on re-encode
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
gregory
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
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
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
The "-" immediately after FLAC indicates that input to FLAC is to be taken from STDIN.
gregory
Ok, I understand. Thank you for the help. smile.gif
greynol
Did you try "metaflac --remove-all" ???

http://flac.sourceforge.net/documentation_...s_metaflac.html
gregory
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.
Invision Power Board © 2001-2009 Invision Power Services, Inc.