[英]How to enhanced quality of embed vlc player using c#?
I have ac# windows form application and i want to playback video using embed vlc player and every thing is good. 我有一个ac#Windows窗体应用程序,我想使用嵌入的vlc播放器播放视频,并且一切都很好。 But there is only one problem, however, that the quality of the video is dimmed, and the cloudy and opaque image is displayed. 但是,仅存在一个问题,即视频的质量变暗,并且显示了浑浊和不透明的图像。 i try change some properties
like this: 我尝试更改一些properties
如下所示:
VlcControl.Video.Adjustments.Contrast = 0;
VlcControl.Video.Adjustments.Brightness = 100;
VlcControl.Video.Adjustments.Gamma = 10;
VlcControl.Video.Adjustments.Saturation= 50;
But the image quality did not change. 但是图像质量没有改变。 also i change VlcControl.Video.AspectRatio
property. 我也改变了VlcControl.Video.AspectRatio
属性。
How can i Enhance movie quality? 我如何提高电影质量?
I ran into this problem and I determined that VLC seems to ignore these settings until the video actually starts playing. 我遇到了这个问题,并确定VLC似乎会忽略这些设置,直到视频真正开始播放为止。 The workaround I came up with for my WinForm app was to start the video stream, and then repeatedly reapply the settings for awhile. 我为WinForm应用程序想到的解决方法是启动视频流,然后在一段时间内反复重新应用设置。 I am sure there is a better way to do this, but for now, this gets the job done 100% of the time: 我确信有更好的方法可以做到这一点,但就目前而言,这可以100%地完成工作:
this.VlcControl.Play();
this.Show();
int counter = 0;
while (counter < 20)
{
Debug.WriteLine(this.VlcControl.State);
counter += 1;
Application.DoEvents();
Thread.Sleep(100);
this.VlcControl.Video.Adjustments.Enabled = true;
this.VlcControl.Video.Adjustments.Saturation = 1.35f;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.