This is exactly what I need, but I get this error message when conversion starts:
[mov @ 0x199f600] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 1
av_interleaved_write_frame(): Operation not permitted
Any ideas?