简体   繁体   English

libvlc中的视频效果

[英]Video effects in libvlc

In vlc there are some video effects which I cannot find them in libvlc, when I open a video in vlc I can go to "Tools->Effect and Filters ->Video Effects" and then there are many video effects which I can use , such as negating the color or denoisers or posterizing,etc. 在vlc中,有些视频效果无法在libvlc中找到,当我在vlc中打开视频时,可以转到“工具->效果和滤镜->视频效果”,然后可以使用很多视频效果,如否定颜色或降噪器或后代化等。

I can set some of them by "libvlc video_set_adjust_float", it can set contrast, brightness and some other options. 我可以通过“ libvlc video_set_adjust_float”设置其中的一些,它可以设置对比度,亮度和其他一些选项。

Is there any way to use these options in libvlc? 有没有办法在libvlc中使用这些选项? (I want to use some of these effects in my program written by libvlc). (我想在我的libvlc编写的程序中使用其中一些效果)。

There is no API in LibVLC to use any of the other filters. LibVLC中没有API可以使用任何其他过滤器。

You can, but it is totally not supported, use the same command-line switches for those filters and pass them to LibVLC in one of two ways, either: when you create your LibVLC instance via libvlc_new , or; 您可以但不完全支持这些过滤器使用相同的命令行开关,并通过以下两种方式之一将它们传递给LibVLC:通过libvlc_new创建LibVLC实例时;或者; when you create a media instance you can add some of those switches as options by using libvlc_media_add_option . 创建媒体实例时,可以使用libvlc_media_add_option其中一些开关添加为选项。

This approach has many drawbacks however. 然而,这种方法具有许多缺点。 Apart from it not being supported, for some things you can only set the options this way once and never change them. 除了不支持它之外,对于某些事情,您只能以这种方式设置一次选项并且永远不要更改它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM