FFmpegでカクカクするm3u8ファイルがあった。igndts
フラグをセットすることで解決した。
-fflags +igndts
DTSを無視するオプション-fflags +igndts
を指定する。
例
ffmpeg -fflags +igndts -i in.m3u8 -c copy out.mp4
+(プラス)記号の意味
ほかのフラグは手を加えずに、指定したフラグのみトグルすることを意味するらしい。「+」を付けないと、そのフラグ以外はデフォルト値にリセットされてしまうとか。
The + sign indicates that ffmpeg should set the specified value in addition to any values that the MOV/MP4 muxer will automatically set during the course of executing the command. Omitting it means ffmpeg will reset the flags to their default values, and only toggle the state of faststart. Most MP4s generation doesn't involve the other flags so usually it doesn't make a difference.