FFme.win在win7(.net4.5) 运行报错
错误信息
System.Runtime.InteropServices.MarshalDirectiveException: Cannot marshal ‘parameter #3’: Invalid managed/unmanaged type combination (String parameters and return types must be paired with LPStr, LPWStr, LPTStr, BStr, TBStr, VBByRefStr, or AnsiBStr)。
问题定位
主要是FFmpeg.AutoGen.dll在比较高的版本出现的错误语法错误
解决办法
把 FFmpeg.AutoGen.dll降至4.1.0.3可以解决问题