Skip to main content

Topic: FLAC reported length (Read 431 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
FLAC reported length
Any ideas on how to change the reported length (time) of a FLAC file? Basically, I want to hide content at the end of the file.
Project Leader of DDResampled

  • saratoga
  • [*][*][*][*][*]
Re: FLAC reported length
Reply #1
I think you could edit the samples field in the METADATA_BLOCK_STREAMINFO block:

https://xiph.org/flac/format.html

Some software may still be able to seek to the hidden audio though.

Re: FLAC reported length
Reply #2
Thanks. That does look like what I'm looking for. But after looking around for tools and trying to open a FLAC in a HEX editor, it's evident that this is currently over my head. Any way I can be pointed in the right direction on how to figure out how to do that?
Project Leader of DDResampled

  • saratoga
  • [*][*][*][*][*]
Re: FLAC reported length
Reply #3
Right direction meaning an existing tool to do this?  I don't know why that would exist.  I think you'll have to work it out from the spec or the flac source code.