Forum archive - how to improve video quality?

http://www.supermediastore.com/



Forum Archive Home -> Programming -> how to improve video quality?



how to improve video quality?

George2 posted 2009 May 19 00:48
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)")
        {
            SrcGrp.set_Profile(Pro);
            break;
        }
    }
    encoder.Start();


thanks in advance,
George



Baldrick posted 2009 May 19 02:07
One topic is enough. http://forum.videohelp.com/topic368214.html . I have already moved it to the programming section also.



Login/Register to our forum to be able to post here.








Replay Media Catcher lets you record ANY streaming video and save on your computer! More info or download trial!
About   Advertise   Forum Archive   RSS Feeds   Statistics