输出流中非单调的 DTS

输出流中非单调的 DTS

错误摘要:您好,我在 ubuntu 14.04lts 上使用 mininet 模拟器创建了一个网络。在这个网络中,我想在两个主机之间传输视频。我在发送方主机中使用 vlc,在接收方主机中使用 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.

以下是使用的命令:

ffmpeg -i rtsp://10.0.0.1:8554/test1.sdp -acodec copy -vcodec copy /home/sana/lab/mrp/test1.avi

ffmpeg的版本是4.0_static。

我安装了 ffmpeghttps://johnvansickle.com/ffmpeg/ 并按照安装说明进行安装https://www.johnvansickle.com/ffmpeg/faq/

答案1

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

尝试:

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

FFmpeg 源代码

如果您开始注意到类似的错误,您可能还需要-rtsp_transport tcp在之前添加。-imax delay reached. need to consume packet

至少这帮我修复了 rtsp 流的错误。

相关内容