Is it possible to create a FLAC file that has exactly 0 seconds duration? If so, how do you do it using the flac command line tools?
That is, the goal is to create a placeholder track for any track that has been removed for whatever reason, but where I want to preserve the total track file counts of the recording. It would have to be a true zero seconds duration, since even the smallest time would result in an audible click in for example a live show set when playing back gapless.
I know this is kind of obscure, but with other file formats, say, .txt, you can do 'touch test.txt' and that creates a zero byte file. Obviously, with FLAC, there is metadata overhead, so the actual resulting file would not be 0 bytes.
I'm looking for a more elegant way to remove banned tracks without actually removing the track number itself from the file list in audience recordings for certain file sharing situations. Any thoughts or how-to do it much appreciated.
See attachment. Audacity > Generate Noise > 00.00.00 > Export as FLAC
Beautiful, thanks. Audacity is good too, not just command line tools, I should have noted that.
While I don't post here much, I really like the high level of competence on hydrogenaudio, it's my go to source for any real audio data format type question.
I can safely say it would never have struck me to use audacity noise generator to create an empty flac file, lol.
Just a quick question though: does the 00:00:00-FLAC contain a single sample, or is there no sample at all?
flac --no-padding --force-raw-format --endian=little --sign=signed --channels=2 --bps=16 --sample-rate=44100 -o zero.flac - </dev/null
On Windows, just change /dev/null to NUL.
The resulting file contains only metadata blocks.