다음 코드를 사용하여 Windows Media Encoder를 사용하여 화면을 기록합니다. Windows Vista, 화면 해상도 1024 × 768, 32 비트를 사용 중입니다. 내 문제는 동영상을 성공적으로 녹화 할 수 있지만 녹화 된 동영상을 재생할 때 동영상의 품질이 좋지 않다는 것입니다. 문자는 매우 애매합니다. 나는 레코더 비디오의 더 나은 품질을 얻기 위해 조정해야하는 매개 변수가 무엇인지 궁금합니다. 사전에더 나은 비디오 화질을 위해 코드를 향상시키는 방법은 무엇입니까?
내 코드,
static WMEncoder encoder = new WMEncoder();
IWMEncSourceGroup SrcGrp;
IWMEncSourceGroupCollection SrcGrpColl;
SrcGrpColl = encoder.SourceGroupCollection;
SrcGrp = (IWMEncSourceGroup)SrcGrpColl.Add("SG_1");
IWMEncVideoSource2 SrcVid;
SrcVid = (IWMEncVideoSource2)SrcGrp.AddSource(WMENC_SOURCE_TYPE.WMENC_VIDEO);
SrcVid.SetInput("ScreenCap://ScreenCapture1", "", "");
IWMEncFile File = encoder.File;
File.LocalFileName = "C:\\OutputFile.avi";
// 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 == "Windows Media Video 8 for Local Area Network (384 Kbps)")
{
SrcGrp.set_Profile(Pro);
break;
}
}
encoder.Start();
감사 조지는
서식 It? . –
형식이 완료되었습니다. 추가 문제가 있는지 알려 주시기 바랍니다. :-) – George2