Yoni Rabkin <[email protected]> writes: > After feeding the new code all of the track I could muster, the only > outliers are in a single album of ogg files which all return a 0 playing > time on all versions of info-native, new and old. Nothing immediately > stands out to me about the files in this album in terms of how the > header looks, but I haven't checked closely. In any case, it isn't a > regression.
Great, thanks! Ogg Vorbis files are somewhat peculiar in the sense that the header does not contain the playing time, but one has to decode the very last ogg "page" from the file instead. On that page there is a 'granule position' field, which contains the number of PCM samples in the stream up to that point. If you want to investigate further, you can evaluate (emms-info-native-ogg--read-and-decode-last-page "filename.ogg") and see if it returns anything sensible, or just nil (in case of an error). Also, does some external tool like emms-print-metadata, exiftool or ffprobe recognize duration? Petteri
