[FFmpeg-user] "Non-monotonous DTS in output stream" error, previous and current values are equal

Ted Park kumowoon1025 at gmail.com
Wed Feb 12 00:44:55 EET 2020

> 4. A general question - is there any difference between (a) decrypting all .ts parts separately, then concatenating them into one big .ts file and remuxing it into .mp4 and (b) concatenating all encrypted .ts parts first, then decrypting the big .ts result file and then remuxing it into .mp4?

This makes me think you are not decrypting the segments correctly, I had understood the specs to mean that if it isn’t specified, the IV needs to be incremented for each segment (so you would need to use 0x00000000000000000000000000000000 for the first segment, 0x00000000000000000000000000000001 for the second, etc. based on the initial media sequence number of 0).

I don’t think the missing picture message at the end is unexpected, since the stream was cut arbitrarily after all, this is the result of my attempt at decrypting each segment with openssl and using cat to put them together (ffmpeg wasn’t used, except to test the file).
https://media.kumowoon1025.com/videos/cat.ts <https://media.kumowoon1025.com/videos/cat.ts>

More information about the ffmpeg-user mailing list