evanpurkhiser / keyfinder-cli

A CLI wrapper for libkeyfinder. Making DJs lives easier.
GNU General Public License v3.0
111 stars 23 forks source link

Unable to decode packet #14

Open StoneCut opened 5 years ago

StoneCut commented 5 years ago

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 commented 5 years ago

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!

evanpurkhiser commented 5 years ago

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

StoneCut commented 5 years ago

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

StoneCut commented 5 years ago

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.

evanpurkhiser commented 5 years ago

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

StoneCut commented 5 years ago

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 commented 5 years ago

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

evanpurkhiser commented 5 years ago

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

StoneCut commented 5 years ago

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
khannurien commented 4 years ago

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!