输出流中的非单调 DTS

san*_*ana 5 ffmpeg avidemux libav

错误摘要:您好,我已经在 ubuntu 14.04lts 上使用 mininet 模拟器创建了一个网络。在这个网络中,我想在两台主机之间传输视频。我在 Sender 主机中使用了 vlc,在 Receiver 主机中使用了 ffmpeg。当我运行 ffmpeg 时,我收到了很多这些错误:

[avi @ 0x66c1900] Non-monotonous DTS in output stream 0:1; previous: 3497, current: 3480; changing to 3498. This may result in incorrect timestamps in the output file.
[avi @ 0x66c1900] Non-monotonous DTS in output stream 0:1; previous: 3498, current: 3481; changing to 3499. This may result in incorrect timestamps in the output file.
[avi @ 0x66c1900] Non-monotonous DTS in output stream 0:1; previous: 3499, current: 3482; changing to 3500. This may result in incorrect timestamps in the output file.
[avi @ 0x66c1900] Non-monotonous DTS in output stream 0:1; previous: 3500, current: 3483; changing to 3501. This may result in incorrect timestamps in the output file.
[avi @ 0x66c1900] Non-monotonous DTS in output stream 0:1; previous: 3501, current: 3484; changing to 3502. This may result in incorrect timestamps in the output file.
Run Code Online (Sandbox Code Playgroud)

这是使用的命令:

ffmpeg -i rtsp://10.0.0.1:8554/test1.sdp -acodec copy -vcodec copy /home/sana/lab/mrp/test1.avi
Run Code Online (Sandbox Code Playgroud)

ffmpeg 的版本是 4.0_static。

我安装了https://johnvansickle.com/ffmpeg/ 的ffmpeg 并在https://www.johnvansickle.com/ffmpeg/faq/安装了安装说明

Min*_*int 5

没关系,看起来我找到了答案。

尝试:

ffmpeg -use_wallclock_as_timestamps 1 -i rtsp://10.0.0.1:8554/test1.sdp -acodec copy -vcodec copy /home/sana/lab/mrp/test1.avi
Run Code Online (Sandbox Code Playgroud)

FFmpeg 源

您可能还需要添加-rtsp_transport tcp之前-i,如果你开始注意到这样的错误max delay reached. need to consume packet

至少这是使用 rtsp 流为我修复错误的原因。


归档时间:

查看次数:

13121 次

最近记录:

5 年,2 月 前