Temat: Screenshot ffmpeg
Cześć,
Potrzebuje wykonać screenshot z kamery dostępnej w sieci lokalnej przy użyciu OpenWRT.
Urządzenie to FriendlyARM NanoPi NEO v1.4, system w wersji 21.02.0-rc4.
Zainstalowałem ffmpeg:
# opkg list-installed | grep ffmpeg
ffmpeg - 4.3.4-1
libffmpeg-full - 4.3.4-1
libffmpeg-mini - 4.3.4-1Po uruchomieniu następujące błędy:
# ffmpeg -y -rtsp_transport tcp -i "rtsp://-1:-1@192.168.203.21/stream1" -vframes 1 output.jpg
ffmpeg version 4.3.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 8.4.0 (OpenWrt GCC 8.4.0 r16594-ce92de8c8c)
configuration: --enable-cross-compile --cross-prefix=arm-openwrt-linux-muslgnueabi- --arch=arm --cpu=cortex-a7 --target-os=linux --prefix=/usr --pkg-config=pkg-config --enable-shared --enable-static --enable-pthreads --enable-zlib --disable-doc --disable-debug --disable-lzma --disable-vaapi --disable-vdpau --disable-outdevs --disable-runtime-cpudetect --enable-lto --enable-vfp --enable-neon --enable-vfp --disable-x86asm --enable-gnutls --disable-decoder=atrac3 --disable-decoder=h264 --disable-decoder=hevc --disable-decoder=vc1 --disable-muxer=h264 --disable-muxer=hevc --disable-muxer=vc1 --disable-demuxer=h264 --disable-demuxer=hevc --disable-demuxer=vc1 --disable-parser=h264 --disable-parser=hevc --disable-parser=vc1 --enable-libopus --enable-small --enable-libmp3lame --enable-libfdk-aac
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
[h264_v4l2m2m @ 0x14374d0] Could not find a valid device
[h264_v4l2m2m @ 0x14374d0] can't configure decoder
[rtsp @ 0x1434710] Failed to open codec in avformat_find_stream_info
[h264_v4l2m2m @ 0x14374d0] Could not find a valid device
[h264_v4l2m2m @ 0x14374d0] can't configure decoder
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://-1:-1@192.168.203.21/stream1':
Metadata:
title : stream server
comment : stream1
Duration: N/A, start: 0.227500, bitrate: N/A
Stream #0:0: Video: h264, none, 1920x1080, 90k tbr, 90k tbn, 90k tbc
Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
[h264_v4l2m2m @ 0x1438e50] Could not find a valid device
[h264_v4l2m2m @ 0x1438e50] can't configure decoder
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> mjpeg (native))
Error while opening decoder for input stream #0:0 : Invalid argumentTestowałem to spod Debiana, nie mam tego problemu.
Proszę o pomoc przy OpenWRT.