So I'm using ffmpeg to download streams from the internet but I'm facing a problem with one of them and is that, every once in a while, in the middle of the stream, it goes to some kind of "break" and this #EXT-X-DISCONTINUITY-SEQUENCE tag appears on the .m3u8 files I start to download. I start getting "Non monotuonous DTS" errors on the console and the audio and video start to desync, eventually, I will play the stream once downloaded and it won't work.
Is there any way to download with ffmpeg this kind of streams and in some way "skip" the m3u8 files which have this tag or maybe correctly parse them to the video?
Hope someone could help me.