[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emms-info-native and track duration

From: Yoni Rabkin
Subject: Re: emms-info-native and track duration
Date: Wed, 07 Dec 2022 11:32:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Petteri Hintsanen <petterih@iki.fi> writes:

> On Mon, Dec 05, 2022 at 01:14:07PM -0500, Yoni Rabkin wrote:
>> Do you have any input or insight regarding implementation of track
>> duration for emms-info-native?
> Do you mean populating 'info-playing-time for a particular file (track)?  
> It can be done, but it will require scanning the whole file to get the
> information.  There is no duration information in the metadata.  So decoding
> will become somewhat slower.
> I can try to hack a prototype if there is a need for that.

That would be welcome. If you already have the infrastructure to read
frames then a lot of the work is already done. But I realize that since
a lot of files are not constant bitrate, there is a good amount of
calculation to do.

   "Cut your own wood and it will warm you twice"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]