【发布时间】:2019-09-18 18:00:53
【问题描述】:
当我使用ffmpeg 将m3u8 转换为mp4 时,我收到了一些警告,
ffmpeg -i xx.m3u8 -c copy demo.mp4
警告是
Non-monotonous DTS in output stream 0:1; previous: 3277744, current: 3276712; changing to 3277745. This may result in incorrect timestamps in the output file.
Non-monotonous DTS in output stream 0:1; previous: 3277745, current: 3277736; changing to 3277746. This may result in incorrect timestamps in the output file.
我应该怎么做才能解决它?
【问题讨论】:
-
你想将 hls 流复制到 mp4 文件吗?
-
复制 *.ts 到 mp4 文件
-
是单个ts文件吗?
-
如果是单个ts文件试试看 :: ffmpeg -fflags +igndts -i *.ts -map 0:0 -map 0:2 -c:v copy -c:a copy demo。 mp4
-
不是一个 ts 文件。