question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avutil.56 is not found - The Specified module cannot be found

See original GitHub issue

Machine: Windows 10 OS

Describe the bug I have uploaded some test songs and videos to the Emy Dashboard. Now I am running the .NET code here to find matches.

When I run the demo code snippet from above, I receive this error:

System.DllNotFoundException: Unable to load DLL 'avutil.56': The specified module could not be found.
   at FFmpeg.AutoGen.ffmpeg.LoadLibrary(String libraryName)
   at FFmpeg.AutoGen.ffmpeg.<>c__DisplayClass5_0.<.cctor>b__0(String name)
   at FFmpeg.AutoGen.ffmpeg.<>c.<LoadLibrary>b__14_0(String x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at FFmpeg.AutoGen.ffmpeg.LoadLibrary(String libraryName)
   at FFmpeg.AutoGen.ffmpeg.<>c__DisplayClass5_0.<.cctor>b__0(String name)
   at FFmpeg.AutoGen.ffmpeg.<>c.<LoadLibrary>b__14_0(String x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at FFmpeg.AutoGen.ffmpeg.LoadLibrary(String libraryName)
   at FFmpeg.AutoGen.ffmpeg.<>c__DisplayClass5_0.<.cctor>b__0(String name)
   at FFmpeg.AutoGen.ffmpeg.<>c.<.cctor>b__5_318()
   at FFmpeg.AutoGen.ffmpeg.avformat_alloc_context()
   at SoundFingerprinting.Emy.FFmpeg.Demuxer.OpenInputFile(String file)
   at SoundFingerprinting.Emy.FFmpeg.Demuxer..ctor(String file, MediaType mediaType, CancellationToken cancellationToken)
   at SoundFingerprinting.Emy.AudioVideo.Data.FFmpegDataService.ReadAVTrack(String source, MediaType mediaType, Double seconds, Int32 count, CancellationToken cancellationToken)+MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at SoundFingerprinting.Emy.AudioVideo.Data.FFmpegDataService.ReadTrack(String file, MediaType mediaType, Double seconds)
   at SoundFingerprinting.Emy.FFmpegAudioService.GetAvTrack(String path, Int32 sampleRate, Double seconds)
   at SoundFingerprinting.Emy.FFmpegAudioService.ReadMonoSamplesFromFile(String path, Int32 sampleRate)
   at SoundFingerprinting.Command.FingerprintCommand.<>c__DisplayClass6_0.<From>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at SoundFingerprinting.Command.QueryCommand.Query(DateTime relativeTo)
   at SoundFingerprinting.Command.QueryCommand.Query()
   at SoundFinger.Sandbox.ConsoleApp.FindMatch(FileInfo fileInfo) in C:\Dev\PlayGround\SoundFingerprinting\SoundFinger.Sandbox\SoundFinger.Sandbox\ConsoleApp.cs:line 89
   at SoundFinger.Sandbox.ConsoleApp.RunAsync() in C:\Dev\PlayGround\SoundFingerprinting\SoundFinger.Sandbox\SoundFinger.Sandbox\ConsoleApp.cs:line 60

I have done some google-fu and searching online to see how I can resolve the AvUtil.56 error and cannot find a solution.

Is this a common error?

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AddictedCScommented, Aug 4, 2021

You need native FFmpeg libraries in the destination folder. You can find installation instructions here: https://github.com/AddictedCS/soundfingerprinting/wiki/Supported-Audio-Formats

0reactions
AddictedCScommented, Aug 4, 2021

I’ve identified the issue - readme.io have changed the way the examples are generated when a file is attached to the payload. So, in order to insert/query use the following curl commands:

curl -X POST "https://api.emysound.com/api/v1/Query?mediaType=Audio&minConfidence=0.2&registerMatches=true" -H  "accept: application/json" -H  "Authorization: Basic <YOUR KEY>" -H  "Content-Type: multipart/form-data" -F "file=@do_not_go.wav;type=audio/x-wav"

Obviously, the command has to be executed from the folder where (in this case) do_not_go.wav file resides.

I’ve opened a ticket to check if they can fix the problem with their code generator: https://docs.readme.com/discuss/610a97704de52c0109855c3a

On a different note, since you are executing .NET code anyways you can try querying it from you dev-env: https://emysound.readme.io/reference/query-1 I’ve commended why you got the bitrate issue in issue #169, just use FFmpegAudioService and you should be good.

Hope it helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download & Fix AVUTIL-56.DLL Missing Error
The specified module could not be found”; “There was a problem starting AVUTIL-56.DLL”; “AVUTIL-56.DLL could not be located”; “Cannot register AVUTIL-56.
Read more >
How to fix the Avutil-56.dll error?
"Avutil-56.dll is missing from your computer. Try reinstalling the program to fix this problem." "This application has failed to start because Avutil-56.
Read more >
Avutil-56.dll Download: Fix DLL Missing or Not Found Error
Download the Avutil-56.dll file for free and fix Avutil-56.dll Missing or Was Not Found Error on Windows. A simple &free solution from WikiDll.com....
Read more >
Avutil-56.dll is missing error - how to fix
Method 2: Download avutil-56.​​ For this method, download avutil-56. dll on our cite and use the command line to register the missing avutil-56....
Read more >
Download Avutil-56.dll and fix "dll not found" error!
Looking for avutil-56.dll? Fix4dll can help you! Free download missing dll files for Windows 7, 8, 10, Xp, Vista. We know how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found