Skip to content

melt-7 "Application provided invalid, non monotonically increasing dts to muxer in stream 1: 51200 >= 51200" on any input #1172

@timohahaa

Description

@timohahaa

Describe the bug
I try to run a simple

melt video.mp4 in=0 out=25  -consumer avformat:highlights.mp4 vcodec=libx264

On a video-only file and get an almost imidiate error:

4
No LADSPA plugins were found!
Check your LADSPA_PATH environment variable.
Failed to load "info"
[swscaler @ 0x55d8dc9935c0] Warning: data is not aligned! This can lead to a speed loss
Failed to load "info"
+-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+                                                                               |1=-10| |2= -5| |3= -2| |4= -1| |5=  0| |6=  1| |7=  2| |8=  5| |9= 10|                                                                               +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+ +-----+
+---------------------------------------------------------------------+
|               H = back 1 minute,  L = forward 1 minute              |
|                 h = previous frame,  l = next frame                 |
|           g = start of clip, j = next clip, k = previous clip       |
|                0 = restart, q = quit, space = play                  |
+---------------------------------------------------------------------+
[mp4 @ 0x7f9d6c000d00] Timestamps are unset in a packet for stream 1. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[mp4 @ 0x7f9d6c000d00] Encoder did not produce proper pts, making some up.
[mp4 @ 0x7f9d6c000d00] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 51200 >= 51200
Current Position:         25

It seems like no matter what file I take, I get this error. Some files are regular YT videos downloaded with yt-dlp, some are other stuff, that works with ffmpeg just fine. Maybe my command is wrong?

Desktop

  • OS: Linux my-host-name1 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
  • MLT/melt version: 7.4.0

Context:

My goal is to take a big video and trim some parts from it (basically a CLI video-editor).
Something like this:

melt \
    video.mp4 in=0 out=25 \
    video.mp4 in=45 out=70 \
    video.mpap in=100 out=150  \
     -consumer avformat:edited_file.mp4

So take clips from 0 to 25 secs, from 45 to 70, etc. And combine them in a resulting video.
I am very new to melt, need help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions