【问题标题】:how to fix Non-monotonous DTS in output stream 0:1; when using ffmpeg如何修复输出流 0:1 中的非单调 DTS;使用 ffmpeg 时
【发布时间】:2019-09-18 18:00:53
【问题描述】:

当我使用ffmpegm3u8 转换为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 文件。

标签: ffmpeg m3u8


【解决方案1】:

你可以试试这个:

ffmpeg -i xx.m3u8 -c copy -bsf:a aac_adtstoasc demo.mp4

this forum post,你也可以试试:

解码时间戳似乎被破坏了。你可以试试“-flags +igndts" 根据PTS重新生成DTS:

或者直接指向.ts文件,忽略DTS:

ffmpeg -fflags +igndts -i xx.ts -map 0:0 -map 0:2 -c:v copy -c:a copy demo.mp4

【讨论】:

  • 谢谢,但也得到“输出流中的非单调DTS 0:1;”
  • 你能分享一下hls ts格式吗?它是嵌套的m3u8文件吗?
  • “基于PTS重新生成DTS”?这些缩写是什么意思?
  • “解码时间戳(DTS)和演示时间戳(PTS)”根据这个问题:stackoverflow.com/questions/6044330
  • 这个答案似乎引用了forum.videohelp.com/threads/…
猜你喜欢
  • 1970-01-01
  • 2018-07-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-08-14
  • 2011-07-11
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多