当我使用ffmpeg
转换m3u8
为 时mp4
,我收到一些警告,
ffmpeg -i xx.m3u8 -c copy demo.mp4
Run Code Online (Sandbox Code Playgroud)
警告是
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.
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能解决它?
ffmpeg -i xx.m3u8 -c copy -bsf:a aac_adtstoasc demo.mp4
Run Code Online (Sandbox Code Playgroud)
似乎解码时间戳被破坏了。您可以尝试“-fflags +igndts”基于PTS重新生成DTS:
直接点ts文件::
ffmpeg -fflags +igndts -i xx.ts -map 0:0 -map 0:2 -c:v copy -c:a copy demo.mp4
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
28732 次 |
最近记录: |