Skip to main content

Notice

If you are using a Hotmail or Outlook email address, please change it now, as Microsoft is rejecting all email from our service outright.
Topic: How to make a FLAC file with time of 0:00:00, ie, no time. (Read 694 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to make a FLAC file with time of 0:00:00, ie, no time.

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.

 

Re: How to make a FLAC file with time of 0:00:00, ie, no time.

Reply #1
See attachment.  Audacity > Generate Noise > 00.00.00 > Export as FLAC

Re: How to make a FLAC file with time of 0:00:00, ie, no time.

Reply #2
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.

Re: How to make a FLAC file with time of 0:00:00, ie, no time.

Reply #3
Just a quick question though: does the 00:00:00-FLAC contain a single sample, or is there no sample at all?

Re: How to make a FLAC file with time of 0:00:00, ie, no time.

Reply #4
Like this:
Quote
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.

 
SimplePortal 1.0.0 RC1 © 2008-2020