输出流中的非单调DTS


2

错误摘要:您好,我已经在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.

这是使用的命令:

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

ffmpeg的版本是4.0_static。

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

Answers:


3

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

尝试:

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流修复了我的错误。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.