AydinAdn/MediaToolkit

Does this work on a docker?

Opened this issue · 4 comments

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Actual value was .
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MediaToolkit.Engine.StartFFmpegProcess(EngineParameters engineParameters)

Any update on this issue?

As far as I know, it shouldn't as is.

I need to test this out within a docker container and get back to you about this.

You could try this out on your own by forking / cloning the library then debugging it within a container .

TCGV commented

I was able to resolve this issue by following these instructions:

Hi LevH,

I have the same issue recently.

After some try and errors, I found avicap32.dll and msvfw32.dll, dependency of ffmpeg, are missing in container.

They are in C:\Windows\System32\ (64bit) or C:\Windows\SysWOW64 (32bit)

Just copy them from host to container. ffmpeg can work again.


My environment:

Host: Windows Server 2016 RTM

Container: microsoft/windowsservercore:10.0.14393.321


Sources: