On Tue, May 10, 2016 at 8:20 PM Nahuel D <ndefo...@machinalis.com> wrote:
> Hi there!
>
> We made a question last week about how to achieve CSS effects in MLT.
>
As in cascading style sheets? There is nothing to do with CSS in your
example.
> We learnt that MLT has multitrack and managed to get a quite functional
> XML file.
> The problem we’ve encountered is that as soon as we switch from an Image
> resource to a video (avformat), we have problems with transitions.
>
> Are we violating something with the following schema?
>
It has been a while since I have hand authored MLT XML and also tried to
specify as little as possible (e.g. no out or length properties on avformat
producers). Have you consulted the XML output from apps such as melt,
Shotcut, or Kdenlive to learn more?
> Thank you in advance!!!
>
>
> <mlt>
> <profile colorspace="709" display_aspect_den="9" display_aspect_num="16"
> frame_rate_den="1001" frame_rate_num="30000" height="1080" progressive="1"
> sample_aspect_den="1" sample_aspect_num="1" width="1920"/>
> <consumer ab="256k" acodec="aac" ar="48000" crf="18" f="mp4"
> mlt_service="avformat" movflags="+faststart" preset="medium" real_time="-4"
> target="/tmp/51772.mp4" threads="-4" tune="film" vcodec="libx264"/>
> <producer id="id1">
> <property name="mlt_service">qimage</property>
> <property name="resource">atx.jpg</property>
> </producer>
> <producer id="id2">
> <property name="mlt_service">qimage</property>
> <property name="resource">atx.jpg</property>
> <filter>
> <property name="mlt_type">filter</property>
> <property name="0">0.11</property>
> <property name="mlt_service">frei0r.saturat0r</property>
> </filter>
> <filter>
> <property name="mlt_type">filter</property>
> <property name="mlt_service">frei0r.contrast0r</property>
> <property name="Contrast">0=0.75</property>
> </filter>
> </producer>
> <producer id="id2_filter">
> <property name="mlt_service">pixbuf</property>
>
This is minor, but why mix usage of qimage and pixbuf?
> <property name="out">90.0</property>
> <property name="resource">lofi.png</property>
> <property name="in">0</property>
> </producer>
> <playlist id="playlist_id1" autoclose="1">
> <blank length="0"/>
> <entry producer="id1" in="0" out="90.0"/>
> </playlist>
> <playlist id="playlist_id2" autoclose="1">
> <blank length="60.0"/>
> <entry producer="id2" in="0" out="90.0"/>
> </playlist>
> <playlist id="playlist_id2_filter" autoclose="1">
> <blank length="60.0"/>
> <entry producer="id2_filter" in="0" out="90.0"/>
> </playlist>
> <playlist id="playlist_music"/>
> <tractor>
> <track producer="playlist_id1"/>
> <multitrack>
>
You should not have tracks outside the multitrack like this. You can leave
out "multitrack" or include it as a container of tracks to more visibly
separate them from the filters and transitions.
> <tractor>
> <track producer="playlist_id2"/>
> <track producer="playlist_id2_filter"/>
> </tractor>
> <transition>
>
I think you meant to put the these transitions inside of the tractor
element. You did that below, why not also here? The tractor is a container
of multitrack, filters, and transitions. A multitrack contains multiple
producers (in parallel) where the track element is a reference to a
producer (instead of producer as child). However, as explained in the docs,
the mulitrack element can be omitted. A tractor is a producer; so you can
nest them. However, it consistently repeats the above (contains the
transitions). Thus, I think this transition was intended for tracks
playlist_id2 and playlist_id2_filter except the tractor needs to contain
this.
> <property name="mlt_type">transition</property>
> <property name="a_track">0</property>
> <property name="b_track">1</property>
<property name="mlt_service">frei0r.multiply</property>
> </transition>
> </multitrack>
> <track producer="playlist_music"/>
> <filter track="1">
> <property name="mlt_type">filter</property>
> <property name="0">0.11</property>
> <property name="mlt_service">frei0r.saturat0r</property>
> </filter>
> <filter track="1">
> <property name="mlt_type">filter</property>
> <property name="mlt_service">frei0r.contrast0r</property>
> <property name="Contrast">0=0.75</property>
> </filter>
> <transition in="60.0" out="90.0">
> <property name="b_track">1</property>
>
I am not sure if MLT is treating your misplaced multitrack as a track or
not, but if so. The avformat producer might not like multiple transitions
at the same time. Just a guess.
> <property name="mlt_service">luma</property>
> <property name="a_track">0</property>
> </transition>
<transition>
> <property name="b_track">1</property>
> <property name="mlt_service">mix</property>
> <property name="a_track">0</property>
> </transition>
> </tractor>
> </mlt>
>
>
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel