[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emms-info-native and track duration
From: |
Petteri Hintsanen |
Subject: |
Re: emms-info-native and track duration |
Date: |
Sat, 21 Oct 2023 00:56:13 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Yoni Rabkin <yoni@rabkins.net> 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
- Re: emms-info-native and track duration, Petteri Hintsanen, 2023/10/15
- Re: emms-info-native and track duration, Yoni Rabkin, 2023/10/15
- Re: emms-info-native and track duration, Petteri Hintsanen, 2023/10/16
- Re: emms-info-native and track duration, Yoni Rabkin, 2023/10/16
- Re: emms-info-native and track duration, Petteri Hintsanen, 2023/10/18
- Re: emms-info-native and track duration, Yoni Rabkin, 2023/10/18
- Re: emms-info-native and track duration, Yoni Rabkin, 2023/10/19
- Re: emms-info-native and track duration,
Petteri Hintsanen <=
- Re: emms-info-native and track duration, Yoni Rabkin, 2023/10/20
- Re: emms-info-native and track duration, Petteri Hintsanen, 2023/10/22
- Re: emms-info-native and track duration, Yoni Rabkin, 2023/10/27
- Re: emms-info-native and track duration, Petteri Hintsanen, 2023/10/30