<div dir="ltr">My timeline consists of 3 layers, where each layer has a GESUriClip.<div><br></div><div>For each of the 3 clips, ...</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>I created a GESEffect using either</div></blockquote></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>GESEffect* gesEffect = ges_effect_new("volume volume=1.0")</div></blockquote></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>

<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">GESEffect* gesEffect =<span> </span></span>ges_effect_new("volume mute=true") </div><div><br></div></blockquote></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Then I added the effect to the clip</div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>ges_container_add(reinterpret_cast<GESContainer*>(gesUriClip), 

<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">reinterpret_cast<GESTimelineElement*>(gesEffect))</span></div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div></blockquote></blockquote>Is this generally the correct way to add effects to clips?  (Sometimes I feel like I'm groping around a dark hallway.)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 19, 2018 at 3:53 PM, Thibault Saunier <span dir="ltr"><<a href="mailto:tsaunier@gnome.org" target="_blank">tsaunier@gnome.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> Thibault, your suggestion for #1 worked like a charm.  It fixed both of the problems.<br>
><br>
> I have two followup questions.<br>
><br>
> This experience has me a little worried.  If GESEffect does not work well for the `volume` plugin, can I expect problems with most of the other plugins?<br>
<br>
</span>Well, we use it very extensively in Pitivi without (known) problem,<br>
how did you use them exactly?<br>
<span class=""><br>
> For future reference, I don't know how to save a *.xges file.  Would I use `ges_timeline_save_to_uri` for that?<br>
<br>
</span>Yes.<br>
<div class="HOEnZb"><div class="h5"><br>
> On Thu, Jul 19, 2018 at 2:35 PM, Thibault Saunier <<a href="mailto:saunierthibault@gmail.com">saunierthibault@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> 1. Setting mute=true means that the source will send silent, which is<br>
>> not what you want. Also you do not need an effect to handle the volume<br>
>> as there is already a volume element inside sources you can use the<br>
>> ges_timeline_element_set_<wbr>child_property(element, "volume"....)[0]<br>
>> method to set it. You can see what properties audio sources expose<br>
>> here: <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-editing-services/html/GESAudioSource.html" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.<wbr>org/data/doc/gstreamer/head/<wbr>gstreamer-editing-services/<wbr>html/GESAudioSource.html</a><br>
>><br>
>> 2. Layer with lower priorities are on top of the stack of layers,<br>
>> meaning that layer with prio=0 is "the first". Now I am not sure why<br>
>> you get that error but it seems to be a NLEObject priority issue.<br>
>> Providing a .xges file would help (just save your timeline and paste<br>
>> it here if removing the effect doesn't work).<br>
>><br>
>> Regards,<br>
>><br>
>> Thibault Saunier<br>
>><br>
>> [0] <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-editing-services/html/GESTimelineElement.html#ges-timeline-element-set-child-property" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.<wbr>org/data/doc/gstreamer/head/<wbr>gstreamer-editing-services/<wbr>html/GESTimelineElement.html#<wbr>ges-timeline-element-set-<wbr>child-property</a><br>
>> ______________________________<wbr>_________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br></div>