Skip to content

Method 'add_OnAudioSourceEncodedFrameReady' in type 'SIPSorceryMedia.FFmpeg.FFmpegFileSource' does not have an implementation. #103

@linius

Description

@linius

When I'm trying to:

FFmpegFileSource videoSource = new FFmpegFileSource("test.mp4", true, new AudioEncoder());

I'm getting this error:

System.TypeLoadException: Method 'add_OnAudioSourceEncodedFrameReady' in type 'SIPSorceryMedia.FFmpeg.FFmpegFileSource' from assembly 'SIPSorceryMedia.FFmpeg, Version=8.0.10.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.

I've done a lot of tests, my target platform is Ubuntu Server, but I checked it on Windows 11. Also checked in net 8.0 as a target FW, result was the same. VideoTestPatternSource() works well (just a test after dozens of tries). The error is also repeatable in MP4 examples from SipSorcery repo.

OS: Ubuntu 24.04, Windows 11
Platform: ASP.Net, target net 9.0
Ffmepg v.7.0, v.7.1.1
Nuget:

<PackageReference Include="SIPSorcery" Version="8.0.22" />
<PackageReference Include="SIPSorceryMedia.Abstractions" Version="8.0.12" />
<PackageReference Include="SIPSorceryMedia.FFmpeg" Version="8.0.10" />

Downgrading to SipSorcery 6.2.4, obviously, solves the issue, but require to compile old version of ffmpeg, which leads to another problems.
Maybe there is some versions incompatibilities, but I didn't find out, which combination is fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions