emms-help
[Top][All Lists]
Advanced

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

Re: New emms-info-native


From: Yoni Rabkin
Subject: Re: New emms-info-native
Date: Wed, 10 Feb 2021 20:02:49 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Petteri Hintsanen <petterih@iki.fi> writes:

> Yoni Rabkin <yoni@rabkins.net> writes:
>
>> I got this error on the very first file I tried:
>> (error "id3v2 tag/header/frame size [0 68 75 12] is invalid")
>>
>> exiftool reports that the id3 size is a wopping:
>> ID3 Size                        : 1123734
>
> That’s correct, you can find that out also by evaling
>
>   (emms-info-native--decode-id3v2-size [0 68 75 12])
>
> It gives 1123724; that does include the tag header which is always 10
> bytes.
>
> This means your file has some big metadata chunk, perhaps cover art?
>
> Try to increase emms-info-native--max-peek-size, which is the maximum
> allowed size for the tag.  The default value is 512 kiB.  If you set it
> to e.g. 2 MiB you should get rid of invalid size errors.
>
> The reason for that limit is to protect against cases where the tag size
> is unreasonably big (e.g. due to corrupt data).  Those could easily
> cause Emacs to run out of memory, because the decoder reserves memory
> according to decoded sizes.
>
> It looks like the default limit may be too small.

Probably, I set it to (expt 2 21) and that error went away.

However, the same file now shows:
(error "id3v2 unsynchronisation scheme is not supported")

I will admit ignorance to what an "id3v2 unsynchronisation scheme" is.


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



reply via email to

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