[Bf-committers] External effects for VSE and or compositor nodes

Gaspar Fernández blakeyed at totaki.com
Wed Mar 15 17:14:16 CET 2017


Hi!

I've been experimenting with Blender's code for a week more or less. I 
couldn't find anything except the code. So I first tried to make a patch 
for one little thing I wanted to do: https://developer.blender.org/D2553

But I've been testing and reading how other effects where made. I first 
searched for a text message in all Blender code, for example "Adjustment 
Layer" or "Multicam Selector" as they only appear on VSE effect strips 
(Alpha over is also a Blend Mode, Speed or Blur maybe generic...), then 
I found enum elements or Python code to carry on searching and touching 
things. I'm sorry, I know this is not the best method, but the only one 
I found. Anyway it took me about 4 hours to understand and find (more or 
less) this part of the code. It's worth trying.

You can also look at some comments in the code, for example Sequence 
struct is in source/blender/makesdna/DNA_sequence_types.h you can have a 
look at this file to see some properties.

Saludos
------------------------------------------------------------------------

Gaspar Fernández

*Web*: *http://totaki.com/poesiabinaria*

*Teléfono*: (Móv) *+34 661 14 04 55*

*Skype*: *gaspy2.0 <skype:gaspy2.0>*

Facebook de Gaspar Fernández <https://www.facebook.com/gaspy> 	Twitter 
de Gaspar Fernández <https://twitter.com/gaspar_fm> 	LinkedIn de Gaspar 
Fernández <https://www.linkedin.com/profile/view?id=49150267> 	Youtube 
de Gaspar Fernández <https://www.youtube.com/user/yutubero184/feed> 
Google+ de Gaspar Fernández 
<https://plus.google.com/u/0/+GasparFern%C3%A1ndez/posts>




El 15/03/17 a las 16:27, Piotr Arlukowicz escribió:
> Hi Gaspar,
> the code shown by diff does not look too scary, I understand nearly
> everything I can see there. The only hard point for me is HOW to get to
> know all the organization, all those constants, etc. How you did get to
> know how VSE works? This is the most hard part for me, not the programming
> itself at all, but the UNDERSTANDING. :)
> Unfortunately, I did not found anything more than the git source, and
> reverse-engineering and code-reading is not efficient way at all. Can you
> shed some light how was your path to writing such a code? How you did all
> necessary components and dependencies?
>
> regards
> pio
>
>
> ​Piotr
> ​ Arlukowicz, BFCT​
>
> ​*YT: /user/piotao?feature=guide*
>   *FB:* */polskikursblendera* *TW:*
> */piotao*
> *Blender Network:* *https://www.blendernetwork.org/piotr-arlukowicz
> <https://www.blendernetwork.org/piotr-arlukowicz>*
> *Polski Kurs Blendera:* http://polskikursblendera.pl
>
>
>
>
> 2017-03-15 2:32 GMT+01:00 Gaspar Fernández <blakeyed at totaki.com>:
>
>> Hi!
>>
>> Again posting about this topic. I know some of you don't find this
>> interesting but I do. So I have made a tiny demo. The code is not so
>> clean right now, but it works. And I may optimize it a little bit more.
>>
>> I know the effects in the video are so silly, and some of them can be
>> done in a 3D view or the compositor, or working with Curves. it was just
>> a demo to integrate MLT effects into Blender. With this I could embed
>> some more Just an experiment: https://youtu.be/sJKkSDvwDbE with this I
>> could link some more effects.
>>
>>
>> Saludos
>> ------------------------------------------------------------------------
>>
>> Gaspar Fernández
>>
>> *Web*: *http://totaki.com/poesiabinaria*
>>
>> *Teléfono*: (Móv) *+34 661 14 04 55*
>>
>> *Skype*: *gaspy2.0 <skype:gaspy2.0>*
>>
>> Facebook de Gaspar Fernández <https://www.facebook.com/gaspy>   Twitter
>> de Gaspar Fernández <https://twitter.com/gaspar_fm>     LinkedIn de Gaspar
>> Fernández <https://www.linkedin.com/profile/view?id=49150267>   Youtube
>> de Gaspar Fernández <https://www.youtube.com/user/yutubero184/feed>
>> Google+ de Gaspar Fernández
>> <https://plus.google.com/u/0/+GasparFern%C3%A1ndez/posts>
>>
>>
>>
>>
>> El 13/03/17 a las 05:00, Gaspar Fernández escribió:
>>> Hi all!
>>>
>>> There are only a few effects in Blender for VSE or compositor. I've been
>>> thinking about that for years. Even I found, in the past Blender used a
>>> C api to allow external effect plugins
>>> (https://wiki.blender.org/index.php/Doc:2.4/Manual/
>> Sequencer/Effects/Plugins).
>>> And don't know why this feature isn't supported now.
>>>
>>> Looking for a solution I tried to make my Blender build run image
>>> filters via Python API but it's very slow (2 frames/sec for a very very
>>> easy effect, inverting red and blue channels and alpha to 50%), also I
>>> did not tested using a Python lib so Python will be just calling my C
>>> lib which does the effect. But I think it may be better making them
>>> directly in C or C++, I've tested doing the same simple effect in C and
>>> it's realtime.
>>>
>>> I also thought about using a pluggable library for doing this (just
>>> effects on images or videos), like MLT, where we can add a lot of
>>> effects and image generators (another very very interesting feature for
>>> me). It's really difficult to render a strip, apply one effect with
>>> another program and import the new footage with effect, and sometimes
>>> animating effect properties or doing little changes is awful repeating
>>> the whole process again.
>>>
>>> What do you think about that?
>>>
>>> I've been playing with MLT source, if you think this is interesting I
>>> think I could make a POC integrating one effect into VSE to see how it
>>> behaves.
>>>
>>> Best regards,
>>> ------------------------------------------------------------------------
>>>
>>> Gaspar Fernández
>>>
>>> Facebook de Gaspar Fernández <https://www.facebook.com/gaspy>
>>   Twitter
>>> de Gaspar Fernández <https://twitter.com/gaspar_fm>   LinkedIn de Gaspar
>>> Fernández <https://www.linkedin.com/profile/view?id=49150267>
>>   Youtube
>>> de Gaspar Fernández <https://www.youtube.com/user/yutubero184/feed>
>>> Google+ de Gaspar Fernández
>>> <https://plus.google.com/u/0/+GasparFern%C3%A1ndez/posts>
>>>
>>>
>>>
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> https://lists.blender.org/mailman/listinfo/bf-committers
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> https://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> https://lists.blender.org/mailman/listinfo/bf-committers




More information about the Bf-committers mailing list