evanpurkhiser/keyfinder-cli

Unable to decode packet

StoneCut opened this issue · 10 comments

I can succesfully compile libKeyfinder and keyfinder-cli on Ubuntu Bash (Windows Subsytem for Linux - WSL). It uses Ubuntu 18.04.2 LTS.
In the past I was able to successfully analyze files. Since reinstalling Windows, however I have issues when running keyfinder-cli:

$ keyfinder-cli test.mp3
Unable to decode packet

What can I do to fix it? Many thanks!

I was able to pin down the issue. The error "unable to decode packet" comes up when trying to analyse an MP3 file that also has an APEv2 tag attached to it (beside the usual IDv3 Tag).

Many tagging tools add it, the popular Windows tool MP3tag (https://www.mp3tag.de/) does so by default, for example. Analysis works fine as soon as I remove the APEv2 tag.

Any idea if I might be missing some package? I'm pretty sure this used to work just fine in the past.

Let me know if you need a sample file, cheers!

Hmm interesting. Could you send over one of the broken mp3s if possible?

I've been able to determine the origin of that APEv2 tag: MP3gain (http://mp3gain.sourceforge.net/)
MP3gain writes undo information into an APEv2 tag. It'd be great if keyfinder-cli could just ignore that tag. The old windows version of Keyfinder can handle them fwiw.

Hmm. I can't seem to reproduce. Do you know what version of keyfinder-cli and libkeyfinder you're using?

Hhhm, I compiled them from source a few days prior to posting. I'm unsure how to determine the version since I deleted the source directory and there's -v switch or anything.

Ok, so I recompiled both libkeyfinder and keyfinder-cli from the latest source available in GIT just now and still have the same result.
user@ThinkPad:~$ keyfinder-cli test.mp3
Unable to decode packet

One more version question actually :) What version of ffmpeg do you have installed on your system?

user@ThinkPad:~$ ffmpeg -version

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared

I've encountered the same error message for FLAC or mp3 files.

I tried removing APE tags using apetag:

apetag -i "file.mp3" -m overwrite

But apetag did not find any APE tag to remove.

I'm using the same Ubuntu and ffmpeg versions as @StoneCut.

Any clue? Thanks!