gpt4 book ai didi

ffmpeg - 使用 ss 后输出流中的非单调 DTS

转载 作者:行者123 更新时间:2023-12-04 23:24:13 25 4
gpt4 key购买 nike

我做了

ffmpeg -i x.mp4  -ss 17 two.mp4

现在我试着做
ffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4

与 list.txt:
file 'one.mp4'
file 'two.mp4'

但是当它开始处理 two.mp4我收到一大堆这类错误

[mp4 @ 0x7fc4cf03de00] Non-monotonous DTS in output stream 0:0; previous: 373897,
current: 371200; changing to 373898. This may result in incorrect timestamps in
the output file.

最佳答案

这个对类似问题的回答可能会有所帮助。
发件人:Non-monotonous DTS in output stream previous current changing to This may result in incorrect timestamps in the output file

如果出于解码目的需要该部分,则 concat 解复用器将选择指定范围之外的输入部分。这些将导致时间戳冲突以及输出中的额外 Material 。您需要使用选择过滤器来摆脱它们。

ffmpeg -safe 0 -f concat -segment_time_metadata 1 -i file.txt -vf select=concatdec_select -af aselect=concatdec_select,aresample=async=1 out.mp4

关于ffmpeg - 使用 ss 后输出流中的非单调 DTS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55090742/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com