VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
Closed Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Apr 2009
    United States
    Search Comp PM
    Hello everyone,

    I am using the following code snippets to record screen, and in most situations recorded wmv file is clear enough, but for some part of video it is not very clear (grey color for some parts). What I record is ppt with full screen mode. I am using Windows Media Encoder 9.

    Here is my code snippet,

        IWMEncSourceGroup SrcGrp;
        IWMEncSourceGroupCollection SrcGrpColl;
        SrcGrpColl = encoder.SourceGroupCollection;
        SrcGrp = (IWMEncSourceGroup)SrcGrpColl.Add("SG_1");
        IWMEncVideoSource2 SrcVid;
        IWMEncSource SrcAud;
        SrcVid = (IWMEncVideoSource2)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);
        SrcAud = SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_AUDIO);
        SrcVid.SetInput("ScreenCap://ScreenCapture1", "", "");
        SrcAud.SetInput("Device://Default_Audio_Device", "", "");
        // Specify a file object in which to save encoded content.
        IWMEncFile File = encoder.File;
        string CurrentFileName = Guid.NewGuid().ToString();
        File.LocalFileName = CurrentFileName;
        CurrentFileName = File.LocalFileName;
        // Choose a profile from the collection.
        IWMEncProfileCollection ProColl = encoder.ProfileCollection;
        IWMEncProfile Pro;
        for (int i = 0; i < ProColl.Count; i++)
            Pro = ProColl.Item(i);
            if (Pro.Name == "Screen Video/Audio High (CBR)")
    thanks in advance,

  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Search Comp PM
    One topic is enough. . I have already moved it to the programming section also.

Similar Threads