Fail to embed chapters (markers not chronological)

Windows 10 / 26.11.15

I’m trying to use the newly found-out-about feature that embeds the markers as chapters (which I previously manually did using a manual chapter export + python script + ffmpeg command so this is a big improvement for me) and it worked on a previous try but after cleaning up the markers for the final encode I got this weird error:

\[in#1 @ 00000215a6dd3cc0\] Expected chapter end timestamp, found END=NaN.

\[in#1 @ 00000215a6dd3cc0\] Chapter end time 70 before start 1677

looking through the .mlt I can see there’s one [actually more] marker out of chronological order. I tried deleting it and re-adding but it still uses that index there.


      <properties name="16">
        <property name="text">Ziua 5 - putin prin aeroport</property>
        <property name="start">00:27:57.791</property>
        <property name="end">00:27:57.791</property>
        <property name="color">#FF0000</property>
      </properties>
      <properties name="17">
        <property name="text">Ziua 1 - cazare + supermarket</property>
        <property name="start">00:01:11.311</property>
        <property name="end">00:01:11.311</property>
        <property name="color">#FF0000</property>
      </properties>
      <properties name="18">
        <property name="text">prin varsovia, pod</property>
        <property name="start">00:12:35.452</property>
        <property name="end">00:12:35.452</property>
        <property name="color">#FF0000</property>
      </properties>

I think either the markers need to be always sorted or sort them before passing to this embed command.

Somewhat related: I sometimes end up with markers that are of length -1 (ie: the end time is 1 frame before the start time, I don’t know why or have a replication for it, I just hit M to add them).

Thanks for your report. This is fixed for the next release.