Итак, я пытаюсь транслировать камеру EZVIZ с помощью FFMPEG.Я могу подключиться к камере, но при установке длительности, такой как 5 или 10 секунд, я получаю видео произвольной длины (7, 5, 10, 30 и т. Д.).Иногда сгенерированные видео являются черными, иногда зелеными (хотя я могу видеть контуры вещей и части временной метки, когда она зеленая).Я также получаю видео, которые показывают длительность, скажем, около 3 минут или около того, но они воспроизводятся очень быстро, как 3-минутное видео, воспроизводимое за миллисекунду, и все они черные.Ниже находится журнал.Любая помощь будет отличной!
./ffmpeg.exe -err_detect ignore_err -rtsp_transport tcp -i rtsp://un:pw@192.168.0.2/Streaming/channels/101 -vcodec copy -t 00:00:10 c:/Temp/vid.mp4
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
[h264 @ 046d7840] non-existing PPS 60 referenced
Last message repeated 1 times
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] no frame!
[h264 @ 046d7840] non-existing PPS 2 referenced
Last message repeated 1 times
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] no frame!
[h264 @ 046d7840] cabac_init_idc 5 overflow
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] no frame!
[h264 @ 046d7840] concealing 15924 DC, 15924 AC, 15924 MV errors in P frame
[h264 @ 046d7840] number of reference frames (0+2) exceeds max (1; probably corrupt input), discarding one
[h264 @ 046d7840] non-existing PPS 28 referenced
Last message repeated 1 times
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] no frame!
[h264 @ 046d7840] non-existing PPS 7 referenced
Last message repeated 1 times
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] no frame!
[h264 @ 046d7840] illegal aspect ratio
[h264 @ 046d7840] non-existing PPS 1 referenced
[h264 @ 046d7840] illegal aspect ratio
Last message repeated 2 times
[h264 @ 046d7840] A non-intra slice in an IDR NAL unit.
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] no frame!
[h264 @ 046d7840] Missing reference picture, default is 0
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] Frame num change from 3 to 413
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] non-existing PPS 1 referenced
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] non-existing PPS 23 referenced
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] slice type 32 too large at 2
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] reference count 1 overflow
[h264 @ 046d7840] slice type 15 too large at 0
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] no frame!
[h264 @ 046d7840] non-existing PPS 22 referenced
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] non-existing PPS 1 referenced
[h264 @ 046d7840] decode_slice_header error
[h264 @ 046d7840] Frame num change from 31 to 495
[h264 @ 046d7840] decode_slice_header error
[rtsp @ 046d4f00] decoding for stream 0 failed
Input #0, rtsp, from 'rtsp://admin:b729sefc@192.168.0.2/Streaming/channels/101':
Metadata:
title : Media Server V3.2.1
comment : Media Server Session Description : standard
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 2688x1520 [SAR 1:1 DAR 168:95], 10 fps, 10 tbr, 90k tbn, 20 tbc
Output #0, mp4, to 'c:/Temp/vid.mp4':
Metadata:
title : Media Server V3.2.1
comment : Media Server Session Description : standard
encoder : Lavf58.12.100
Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 2688x1520 [SAR 1:1 DAR 168:95], q=2-31, 10 fps, 10 tbr, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[NULL @ 046d7840] illegal reordering_of_pic_nums_idc 706.80 bitrate=1850.5kbits/s speed=5.97x
[NULL @ 046d7840] illegal aspect ratio
[NULL @ 046d7840] non-existing PPS 1 referenced=00:00:07.70 bitrate=2178.9kbits/s speed=4.51x
[NULL @ 046d7840] reference count 2 overflowime=00:00:09.30 bitrate=2255.0kbits/s speed=2.74x
[NULL @ 046d7840] non-existing PPS 1 referenced
frame= 63 fps= 15 q=-1.0 Lsize= 2781kB time=00:00:09.90 bitrate=2301.5kbits/s speed=2.41x
video:2780kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.054839%