SharpAvi
SharpAvi copied to clipboard
SharpAvi 3.0.1: 'KnownFourCCs', 'AddUncompressedVideoStream', and 'AddMotionJpegVideoStream' Not Recognized in Visual Studio C#
Environment:
SharpAvi Version: 3.0.1 IDE: Visual Studio Language: C# Description: When attempting to use the latest version of SharpAvi (3.0.1) in a C# project within Visual Studio, the following code results in errors indicating that certain methods and types do not exist:
public IAviVideoStream CreateVideoStream(AviWriter writer) { if (Codec == KnownFourCCs.Codecs.Uncompressed) return writer.AddUncompressedVideoStream(Width, Height); else if (Codec == KnownFourCCs.Codecs.MotionJpeg) return writer.AddMotionJpegVideoStream(Width, Height, Quality); else { return writer.AddMpeg4VideoStream(Width, Height, (double)writer.FramesPerSecond, quality: Quality, codec: Codec, forceSingleThreadedAccess: true); } }