Open
Description
Seeking with native container is fast, but with Ogg container it's slow. The slowdown seems to be linear, the further I seek, the slower it becomes.
To test, first encode a file using FFmpeg to native FLAC.
ffmpeg -i input -c:a flac -compression_level:a 11 output.flac
Then perform remux to Ogg. This is important to preserve the totalPCMFrameCount
in the STREAMINFO block, otherwise totalPCMFrameCount
is 0 and seeking is not possible. (probably FFmpeg defect)
ffmpeg -i output.flac -c:a copy output.ogg
Then load output.ogg
and perform seek. If you test output.flac
, seeking is fast.
dr_flac 0.12.38.