keyfinder-cli icon indicating copy to clipboard operation
keyfinder-cli copied to clipboard

Unable to decode packet

Open StoneCut opened this issue 5 years ago • 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!

StoneCut avatar May 21 '19 17:05 StoneCut

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!

StoneCut avatar May 22 '19 11:05 StoneCut

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

evanpurkhiser avatar Jun 06 '19 05:06 evanpurkhiser

Sure, here's an example: https://drive.google.com/file/d/1dMlJgrNG1pXg8XZKIeYYa-FUka58UKsv/view?usp=sharing

StoneCut avatar Jun 06 '19 17:06 StoneCut

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.

StoneCut avatar Jun 16 '19 09:06 StoneCut

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

evanpurkhiser avatar Jun 17 '19 08:06 evanpurkhiser

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.

StoneCut avatar Jun 17 '19 17:06 StoneCut

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

StoneCut avatar Jun 17 '19 18:06 StoneCut

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

evanpurkhiser avatar Jun 18 '19 07:06 evanpurkhiser

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

StoneCut avatar Jun 18 '19 17:06 StoneCut

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!

khannurien avatar Jul 08 '20 11:07 khannurien