SharpAvi icon indicating copy to clipboard operation
SharpAvi copied to clipboard

SharpAvi 3.0.1: 'KnownFourCCs', 'AddUncompressedVideoStream', and 'AddMotionJpegVideoStream' Not Recognized in Visual Studio C#

Open aarif313 opened this issue 9 months ago • 1 comments

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); } }

aarif313 avatar May 21 '24 08:05 aarif313