我正在尝试使用FFmpeg来记录来自多个安全摄像头的RTSP流。我已经成功地转码每个流几个月,但由于这需要相当大的CPU能力,我想简单地将每个流复制到它的原始H.264中的磁盘格式。
每当我尝试这个时,我会收到类似于此的错误(“当前”值会有所不同):
输出流0:0中的非单调DTS;上一个:0,当前:-62743;
我已经删除了我正在使用的大多数选项,虽然我确实想保留-xerror以便FFmpeg在遇到错误时退出:
ffmpeg.exe -xerror -i rtsp://admin:admin@192.168.1.135 -an -vcodec copy test.mp4
我仍然明白这一点:
ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.1.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 [udp @ 0000000002533b60] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) [udp @ 0000000000ec97a0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) Input #0, rtsp, from 'rtsp://admin:admin@192.168.1.135': Metadata: title : RTSP Session/2.0 Duration: N/A, start: 0.837144, bitrate: N/A Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 7 fps, 25 tbr, 90k tbn, 14 tbc Output #0, mp4, to 'test.mp4': Metadata: title : RTSP Session/2.0 y encoder : Lavf57.71.100 Stream #0:0: Video: h264 (High) ([33][0][0][0] / 0x0021), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 7 fps, 25 tbr, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mp4 @ 00000000036b8340] Non-monotonous DTS in output stream 0:0; previous: 0, current: -62743; aborting. Conversion failed!
任何人都可以解释问题所在和/或建议适当的标志来处理这个问题吗?