Skip to content

Crash on FingerprintCommandBuilder.Instance with FFmpegAudioService #230

@jscoys

Description

@jscoys

Describe the bug
Firstly first, wonderful software, thanks for that!
I was using SoundFingerprintingAudioService and wanted to switch to FFmpegAudioService. Unfortunately, I'm having trouble making it working properly with FFmpeg.

To Reproduce
It crashes when I'm trying to

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
Here are the characteristics of the wave file I want to store in memory:
image

Here is the error I'm getting ("System.AggregateException: 'One or more errors occurred. (Specified method is not supported.)'" - "NotSupportedException: Specified method is not supported.")
image

Desktop (please complete the following information):

  • Windows 11
  • Visual studio
  • All nuget packages are there (Emy included)
  • FFMPEG is well placed in the required directory

Additional context
Here is the function where it's crashing with FFmpegAudioService (But working with SoundFingerprintingAudioService):
public string StoreFileInMemory(string filePath)
{
try
{
var track = new TrackInfo(filePath, filePath, "Unknown Artist");

    var hashes = FingerprintCommandBuilder.Instance
        .BuildFingerprintCommand()
        .From(filePath)
        .UsingServices(audioService)
        .Hash()
        .Result;

    // Insert the track and fingerprints into the model service
    modelService.Insert(track, hashes);

    // Return the track ID (unique for each track)
    return track.Id;
}

catch (AggregateException aggEx)
{
    foreach (var inner in aggEx.InnerExceptions)
    {
        Debug.WriteLine($"Inner Exception: {inner.Message}");
        Debug.WriteLine(inner.StackTrace);
    }
    throw;
}
catch (Exception ex)
{
    Debug.WriteLine($"Unexpected Error: {ex.Message}");
    Debug.WriteLine(ex.StackTrace);
    throw;
}

}

Thanks in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions