VideoHelp Forum
Closed Thread
Results 1 to 2 of 2
Thread
  1. Member
    Join Date
    Apr 2009
    Location
    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,

    Code:
        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)")
            {
                SrcGrp.set_Profile(Pro);
                break;
            }
        }
        encoder.Start();
    thanks in advance,
    George

  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    One topic is enough. https://forum.videohelp.com/topic368214.html . I have already moved it to the programming section also.




Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!