On Tue, Apr 26, 2016 at 7:06 PM Oleksiy Druzhynin <
oleksiy_druzhy...@epam.com> wrote:
> Dear MLT Users.
>
>
> I am customizing now OpenShot to change brightness of video. I already
> figured out that I need to add sws_getColorspaceDetails /
> sws_setColorspaceDetails​ functions to convert_image() of
> producer_avformat.
>
>
> But I am wondering how to access procuder_avformat object from the python
> code to pass brightens as
>
parameters.
>
>
>
Those functions are not available to be affected directly by avformat
producer properties regardless of language.
> In Python code producer are created here:
>
> self.p = mlt.Producer( self.profile, 'xml:%s' % self.file_name)
>
>
> But it is another producer.
>
>
> From what I recall about OpenShot, it does not use much of the MLT API.
Rather, it generates MLT XML and continually reloads it. Then, it only uses
MLT API to host it as a media player to process and play the XML. In that
mode of operation, you can only do what is available through XML. In any
case, you should use a filter to change brightness. There are many
available.
https://www.mltframework.org/bin/view/MLT/PluginsFilters
> Regards,
>
>
> Oleksii
>
>
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel