You are passing bad data. See here where someone had the exact same problem and was given a solution that seemed to work.
Error in AVVideoSettingsCompressed
Анастасия Зорина
0
Reputation points
videoSettings = new AVVideoSettingsCompressed
{
Codec = AVVideoCodec.H264,
Width = 1078,
Height = 1645,
};
var assetWriterInput = new AVAssetWriterInput("video", videoSettings);
Error: {ObjCRuntime.ObjCException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[AVAssetWriterInput initWithMediaType:outputSettings:sourceFormatHint:] Output settings dictionary is valid
How to solve this problem?