-
|
Hi, I’m trying to use SIPsorcery to implement a WebRTC stream player. I managed to get the demo working based on the WebRTCClient sample, which uses SIPSorceryMedia.FFmpeg, and that one runs as expected on .NET 8.0. But I want this to run in an app that is on .NET Framework 4.8, and no matter what I try, If I use the FFmpeg binaries installed with When I try the downloaded FFmpeg binaries copied directly to app output folder, it ends similar: I tried that To me it looks more like there’s some problem with loading the FFmpeg binaries themselves, not with their actual dependencies, since the exact same binaries work well on .NET 8.0. So my question is, is SIPSorceryMedia.FFmpeg even supposed to work on .NET Framework 4.8, or am I missing something? I'd be grateful for any advice. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
@rustak I'm using the exact same winget package version
|
Beta Was this translation helpful? Give feedback.
-
|
Thank you. At least now I know it's supposed to work on .NET Framework 4.8, so the issue is definitely on my side, but I still can't get it work. Here are the platform details I'm running: It might be related to the version of SIPSorceryMedia.FFmpeg or FFmpeg.AutoGen. Could you tell me which versions you have? I’m currently on SIPSorceryMedia.FFmpeg 8.0.12 and FFmpeg.AutoGen 7.0.0. |
Beta Was this translation helpful? Give feedback.
-
|
You're right. I was using AnyCPU, and that turned out to be the issue. Once I switched the build configuration to x64, the error stopped appearing. Thanks! |
Beta Was this translation helpful? Give feedback.

@rustak sorry, I meant system/build configuration, because I found this S.O. about the same problem and they were building 32-bit, the ffmpeg build provided using WinGet is 64-bit.
Links:
https://stackoverflow.com/a/79363937
https://www.gyan.dev/ffmpeg/builds/#about-these-builds
https://learn.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=visualstudio