LINUX.ORG.RU
ФорумAdmin

ffmpeg h264 rvi Invalid data

 , , rvi


0

2

Камера RVi-1NCTL4156 4Mpx (2.8) white

Требуется сделать кадр в файл id343_1.jpg

Не удается получить файл по причине «Invalid data found when processing input»

Коротко:

ffmpeg -protocol_whitelist file,http,https,rtp,rtsp,tls,tcp,udp -v debug -i rtsp://admin:Pass@192.168.237.92:554/RVi/1/1 -rtsp_transport tcp -f image2 id343_1.jpg
...
rtsp://admin:Pass@192.168.237.92:554/RVi/1/1: Invalid data found when processing input

Подробно:

$ ffmpeg -c:a libopus -protocol_whitelist file,http,https,rtp,rtsp,tls,tcp,udp -v debug -i rtsp://admin:Pass@192.168.237.92:554/RVi/1/1 -rtsp_transport tcp -f image2 id343_1.jpg
ffmpeg version 6.0-6 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (Debian 13.2.0-2)
  configuration: --prefix=/usr --extra-version=6 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      58.  2.100 / 58.  2.100
  libavcodec     60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter     9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample   4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
Splitting the commandline.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libopus'.
Reading option '-protocol_whitelist' ... matched as AVOption 'protocol_whitelist' with argument 'file,http,https,rtp,rtsp,tls,tcp,udp'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-i' ... matched as input url with argument 'rtsp://admin:Pass@192.168.237.92:554/RVi/1/1'.
Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'image2'.
Reading option 'id343_1.jpg' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://admin:Pass@192.168.237.92:554/RVi/1/1.
Applying option c:a (codec name) with argument libopus.
Successfully parsed a group of options.
Opening an input file: rtsp://admin:Pass@192.168.237.92:554/RVi/1/1.
[tcp @ 0x560b85a3b100] Original list of addresses:
[tcp @ 0x560b85a3b100] Address 192.168.237.92 port 554
[tcp @ 0x560b85a3b100] Interleaved list of addresses:
[tcp @ 0x560b85a3b100] Address 192.168.237.92 port 554
[tcp @ 0x560b85a3b100] Starting connection attempt to 192.168.237.92 port 554
[tcp @ 0x560b85a3b100] Successfully connected to 192.168.237.92 port 554
[rtsp @ 0x560b85a384c0] SDP:
v=0
o=- 1760834713 1760834713 IN IP4 192.168.237.92
s=SDP Descrption
i=SDP Descrption
e=NONE
t=0 0
a=control:rtsp://192.168.237.92:554/RVi/1/1/
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=recvonly
a=control:rtsp://192.168.237.92:554/RVi/1/1/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640032;sprop-parameter-sets=Z2QAMqzSAKAC1oQAAA+kAAF3YBA=,aOqPLA==
m=audio 0 RTP/AVP 8
c=IN IP4 0.0.0.0
a=recvonly
a=control:rtsp://192.168.237.92:554/RVi/1/1/trackID=2
a=rtpmap:8 PCMA/8000/1

[rtsp @ 0x560b85a384c0] video codec set to: h264
[rtsp @ 0x560b85a384c0] RTP Packetization Mode: 1
[rtsp @ 0x560b85a384c0] RTP Profile IDC: 64 Profile IOP: 0 Level: 32
[rtsp @ 0x560b85a384c0] Extradata set to 0x560b85a3d590 (size: 32)
[rtsp @ 0x560b85a384c0] audio codec set to: pcm_alaw
[rtsp @ 0x560b85a384c0] audio samplerate set to: 8000
[rtsp @ 0x560b85a384c0] audio channels set to: 1
[udp @ 0x560b85a3ff80] end receive buffer size reported is 425984
[udp @ 0x560b85a3f740] end receive buffer size reported is 425984
rtsp://admin:Pass@192.168.237.92:554/RVi/1/1: Invalid data found when processing input
$

★★★★★

А посмотреть видео оно позволяет?

vel ★★★★★
()
Для того чтобы оставить комментарий войдите или зарегистрируйтесь.