On Sun, Mar 12, 2017 at 4:42 PM alcinos <french.ebook.lo...@gmail.com>
wrote:

> Hi everyone,
>
> I have a question regarding profile change that I was not able to answer
> from the doc.
>
> The setting is the following: I have some Mlt objects (Producers and
> Consumers) that are created with a given Profile 1, and then used for a bit.
> Then I want to change the profile of all theses objects to another Profile
> 2 (without any assumptions on Profile 2, it may have different FPS,
> ColorSpace,…)
>
> What is the best method to do this? I've seen in the doc that the base
> class "Service" has a setter "set_profile", but does that do what I expect
> it to do ? In particular, if there are any filters attached to my objects
> (created with the old Profile 1), how is that going to work?
>
>
Yes, set_profile() does what you want to do. I have never tried what you
want to do. If you try it, you should do it when the consumer is stopped.
In Shotcut, I update the existing profile using the attributes of a new,
different profile and then restart the consumer. That is easier than trying
to set_profile on all nodes of a potentially large graph.
See here:
https://github.com/mltframework/shotcut/blob/master/src/mltcontroller.cpp#L439

It is possible that a service has saved a value from the profile into
itself, but that should be very rare, and I do not recall any that do that.
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to