v1.2.0 "--ignore-chunk-sizes" seems to not create any seek point. Is it safe for decoder compatibility?
metaflac --list sample1.flac (encoded with %s -o %d)
METADATA block #0
type: 0 (STREAMINFO)
is last: false
length: 34
minimum blocksize: 4096 samples
maximum blocksize: 4096 samples
minimum framesize: 14 bytes
maximum framesize: 14295 bytes
sample_rate: 44100 Hz
channels: 2
bits-per-sample: 16
total samples: 21142128
MD5 signature: dc7707fe44e414873c67e3597ef44079
METADATA block #1
type: 3 (SEEKTABLE)
is last: false
length: 864
seek points: 48
point 0: sample_number=0, stream_offset=0, frame_samples=4096
point 1: sample_number=438272, stream_offset=863109, frame_samples=4096
point 2: sample_number=880640, stream_offset=1703274, frame_samples=4096
point 3: sample_number=1318912, stream_offset=2421506, frame_samples=4096
point 4: sample_number=1761280, stream_offset=3205408, frame_samples=4096
point 5: sample_number=2203648, stream_offset=4013462, frame_samples=4096
point 6: sample_number=2641920, stream_offset=4752195, frame_samples=4096
point 7: sample_number=3084288, stream_offset=5562112, frame_samples=4096
point 8: sample_number=3526656, stream_offset=6396950, frame_samples=4096
point 9: sample_number=3964928, stream_offset=7311730, frame_samples=4096
point 10: sample_number=4407296, stream_offset=8213471, frame_samples=4096
point 11: sample_number=4849664, stream_offset=9124752, frame_samples=4096
point 12: sample_number=5287936, stream_offset=10007487, frame_samples=4096
point 13: sample_number=5730304, stream_offset=10973161, frame_samples=4096
point 14: sample_number=6172672, stream_offset=11975115, frame_samples=4096
point 15: sample_number=6610944, stream_offset=13090217, frame_samples=4096
point 16: sample_number=7053312, stream_offset=14139121, frame_samples=4096
point 17: sample_number=7495680, stream_offset=15086376, frame_samples=4096
point 18: sample_number=7933952, stream_offset=15992142, frame_samples=4096
point 19: sample_number=8376320, stream_offset=17001045, frame_samples=4096
point 20: sample_number=8818688, stream_offset=17969089, frame_samples=4096
point 21: sample_number=9256960, stream_offset=18727284, frame_samples=4096
point 22: sample_number=9699328, stream_offset=19690182, frame_samples=4096
point 23: sample_number=10141696, stream_offset=20527314, frame_samples=4096
point 24: sample_number=10579968, stream_offset=21274576, frame_samples=4096
point 25: sample_number=11022336, stream_offset=22153031, frame_samples=4096
point 26: sample_number=11464704, stream_offset=23198098, frame_samples=4096
point 27: sample_number=11902976, stream_offset=24314989, frame_samples=4096
point 28: sample_number=12345344, stream_offset=25441145, frame_samples=4096
point 29: sample_number=12787712, stream_offset=26470938, frame_samples=4096
point 30: sample_number=13225984, stream_offset=27428645, frame_samples=4096
point 31: sample_number=13668352, stream_offset=28361327, frame_samples=4096
point 32: sample_number=14110720, stream_offset=29440696, frame_samples=4096
point 33: sample_number=14548992, stream_offset=30516648, frame_samples=4096
point 34: sample_number=14991360, stream_offset=31584719, frame_samples=4096
point 35: sample_number=15433728, stream_offset=32745588, frame_samples=4096
point 36: sample_number=15872000, stream_offset=33527464, frame_samples=4096
point 37: sample_number=16314368, stream_offset=34214583, frame_samples=4096
point 38: sample_number=16756736, stream_offset=34933179, frame_samples=4096
point 39: sample_number=17195008, stream_offset=35779963, frame_samples=4096
point 40: sample_number=17637376, stream_offset=36868855, frame_samples=4096
point 41: sample_number=18079744, stream_offset=38032471, frame_samples=4096
point 42: sample_number=18518016, stream_offset=38939203, frame_samples=4096
point 43: sample_number=18960384, stream_offset=39979350, frame_samples=4096
point 44: sample_number=19402752, stream_offset=41156540, frame_samples=4096
point 45: sample_number=19841024, stream_offset=42423269, frame_samples=4096
point 46: sample_number=20283392, stream_offset=43668945, frame_samples=4096
point 47: sample_number=20725760, stream_offset=44939333, frame_samples=4096
METADATA block #2
type: 4 (VORBIS_COMMENT)
is last: false
length: 40
vendor string: reference libFLAC 1.2.0 20070715
comments: 0
METADATA block #3
type: 1 (PADDING)
is last: true
length: 8192
metaflac --list sample2.flac (encoded with - -o %d)
METADATA block #0
type: 0 (STREAMINFO)
is last: false
length: 34
minimum blocksize: 4096 samples
maximum blocksize: 4096 samples
minimum framesize: 14 bytes
maximum framesize: 14295 bytes
sample_rate: 44100 Hz
channels: 2
bits-per-sample: 16
total samples: 21142128
MD5 signature: dc7707fe44e414873c67e3597ef44079
METADATA block #1
type: 3 (SEEKTABLE)
is last: false
length: 21924
seek points: 1218
point 0: sample_number=0, stream_offset=0, frame_samples=4096
point 1: sample_number=438272, stream_offset=863109, frame_samples=4096
point 2: sample_number=880640, stream_offset=1703274, frame_samples=4096
point 3: sample_number=1318912, stream_offset=2421506, frame_samples=4096
point 4: sample_number=1761280, stream_offset=3205408, frame_samples=4096
point 5: sample_number=2203648, stream_offset=4013462, frame_samples=4096
point 6: sample_number=2641920, stream_offset=4752195, frame_samples=4096
~
~
~
point 1212: sample_number=534492000, stream_offset=0, frame_samples=0
point 1213: sample_number=534933000, stream_offset=0, frame_samples=0
point 1214: sample_number=535374000, stream_offset=0, frame_samples=0
point 1215: sample_number=535815000, stream_offset=0, frame_samples=0
point 1216: sample_number=536256000, stream_offset=0, frame_samples=0
point 1217: sample_number=536697000, stream_offset=0, frame_samples=0
METADATA block #2
type: 4 (VORBIS_COMMENT)
is last: false
length: 40
vendor string: reference libFLAC 1.2.0 20070715
comments: 0
METADATA block #3
type: 1 (PADDING)
is last: true
length: 65536
metaflac --list sample3.flac (encoded with --ignore-chunk-sizes - -o %d)
METADATA block #0
type: 0 (STREAMINFO)
is last: false
length: 34
minimum blocksize: 4096 samples
maximum blocksize: 4096 samples
minimum framesize: 14 bytes
maximum framesize: 14295 bytes
sample_rate: 44100 Hz
channels: 2
bits-per-sample: 16
total samples: 21142128
MD5 signature: dc7707fe44e414873c67e3597ef44079
METADATA block #1
type: 4 (VORBIS_COMMENT)
is last: false
length: 40
vendor string: reference libFLAC 1.2.0 20070715
comments: 0
METADATA block #2
type: 1 (PADDING)
is last: true
length: 8192
And I found the last FLAC takes more CPU cycle to seek with long flac files (55 minutes - 400MB).