Size: a a a

ioBroker smarthome

2021 April 15

AF

Alex F. in ioBroker smarthome
источник

AF

Alex F. in ioBroker smarthome
источник

AF

Alex F. in ioBroker smarthome
я же тебе примеры даю, ты уже будь добр под себя попроавь ;)
источник

LS

Lex Smooth in ioBroker smarthome
12 убрал он создал файл
источник

LS

Lex Smooth in ioBroker smarthome
но файл ничем не открывается
источник

AF

Alex F. in ioBroker smarthome
разрешение поправил? и надо было не просто убрать а подставить live как у тебя
источник

LS

Lex Smooth in ioBroker smarthome
да поправил
источник

AF

Alex F. in ioBroker smarthome
смотри тогда лог при создании файла в терминале, там в принципе всё есть
источник

LS

Lex Smooth in ioBroker smarthome
pi@raspberrypi:~ $ ffmpeg -y -i rtsp://admin:wqeqweqwe@192.168.55.25:554/live -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=1920:h=1080:force_original_aspect_ratio=decrease -r 15 /opt/iobroker/out2.mp4
ffmpeg version 3.2.15-0+deb9u2 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
 configuration: --prefix=/usr --extra-version=0+deb9u2 --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
 libavutil      55. 34.101 / 55. 34.101
 libavcodec     57. 64.101 / 57. 64.101
 libavformat    57. 56.101 / 57. 56.101
 libavdevice    57.  1.100 / 57.  1.100
 libavfilter     6. 65.100 /  6. 65.100
 libavresample   3.  1.  0 /  3.  1.  0
 libswscale      4.  2.100 /  4.  2.100
 libswresample   2.  3.100 /  2.  3.100
 libpostproc    54.  1.100 / 54.  1.100
[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 46 packets
[h264 @ 0xe1c400] error while decoding MB 29 18, bytestream -5
[h264 @ 0xe1c400] concealing 6020 DC, 6020 AC, 6020 MV errors in P frame
[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 7 packets
[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 19 packets
Input #0, rtsp, from 'rtsp://admin:
qweqweqwe@192.168.55.25:554/live':
 Metadata:
   title           : Media Server
 Duration: N/A, start: 0.240000, bitrate: N/A
   Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
[swscaler @ 0xe49150] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0xe58c90] using SAR=1/1
[libx264 @ 0xe58c90] using cpu capabilities: ARMv6 NEON
[libx264 @ 0xe58c90] profile High, level 4.0
[libx264 @ 0xe58c90] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '/opt/iobroker/out2.mp4':
 Metadata:
   title           : Media Server
   encoder         : Lavf57.56.101
   Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 15 fps, 15360 tbn, 15 tbc
   Metadata:
     encoder         : Lavc57.64.101 libx264
   Side data:
     cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[h264 @ 0x1021880] error while decoding MB 29 18, bytestream -5
[h264 @ 0x1021880] concealing 6020 DC, 6020 AC, 6020 MV errors in P frame
источник

LS

Lex Smooth in ioBroker smarthome
frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 dframe=    3 fps=2.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 dframe=    8 fps=4.8 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 d[h264 @ 0x1021880] error while decoding MB 114 26, bytestream -5
[h264 @ 0x1021880] concealing 4975 DC, 4975 AC, 4975 MV errors in P frame
frame=   11 fps=4.9 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 dframe=   15 fps=5.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 dframe=   19 fps=5.6 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 d[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 784 packets
[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 24 packets
[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 4 packets
frame=   21 fps=5.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 d[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 25 packets
[rtsp @ 0xe195f0] max delay reached. need to consume packet
[rtsp @ 0xe195f0] RTP: missed 6 packets
[h264 @ 0xf52200] error while decoding MB 16 2, bytestream -9
[h264 @ 0xf52200] concealing 7953 DC, 7953 AC, 7953 MV errors in P frame
frame=   22 fps=4.3 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A dup=0 dframe=   22 fps=1.9 q=-1.0 Lsize=     688kB time=00:00:01.26 bitrate=4450.0kbits/s dup=0 drop=13 speed=0.111x    
video:687kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.161766%
[libx264 @ 0xe58c90] frame I:1     Avg QP:20.55  size:391373
[libx264 @ 0xe58c90] frame P:9     Avg QP:24.53  size: 28276
[libx264 @ 0xe58c90] frame B:12    Avg QP:29.19  size:  4745
[libx264 @ 0xe58c90] consecutive B-frames: 13.6% 36.4% 13.6% 36.4%
[libx264 @ 0xe58c90] mb I  I16..4: 30.1% 12.2% 57.6%
[libx264 @ 0xe58c90] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4: 23.0%  3.1%  9.9%  0.0%  0.0%    skip:64.0%
[libx264 @ 0xe58c90] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 17.3%  1.6%  1.9%  direct: 0.8%  skip:78.3%  L0:51.0% L1:46.5% BI: 2.5%
[libx264 @ 0xe58c90] 8x8 transform intra:12.3% inter:19.0%
[libx264 @ 0xe58c90] coded y,uvDC,uvAC intra: 96.6% 48.2% 11.2% inter: 6.6% 2.4% 0.0%
[libx264 @ 0xe58c90] i16 v,h,dc,p:  6%  5% 71% 19%
[libx264 @ 0xe58c90] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 22%  4%  4%  5%  5%  6% 10%
[libx264 @ 0xe58c90] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 19% 18%  5%  5%  6%  5%  5%  8%
[libx264 @ 0xe58c90] i8c dc,h,v,p: 54% 19% 23%  3%
[libx264 @ 0xe58c90] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0xe58c90] ref P L0: 77.5%  3.8% 16.5%  2.2%
[libx264 @ 0xe58c90] ref B L0: 87.7% 10.9%  1.4%
[libx264 @ 0xe58c90] ref B L1: 98.6%  1.4%
[libx264 @ 0xe58c90] kb/s:3833.43
источник

LS

Lex Smooth in ioBroker smarthome
иногда ошибки проскакивают
источник

LS

Lex Smooth in ioBroker smarthome
Создалосб видео на одну секунду
источник

LS

Lex Smooth in ioBroker smarthome
А как увеличить количство кадров?
источник

AF

Alex F. in ioBroker smarthome
-r 15
источник

AF

Alex F. in ioBroker smarthome
здесь на 25 повысь
источник

AF

Alex F. in ioBroker smarthome
должно всё без сучка проскакивать, тогда не будет проблем.
источник

LS

Lex Smooth in ioBroker smarthome
Странно что скриптом видео не обновляется
источник

LS

Lex Smooth in ioBroker smarthome
Он мне шлет старое видео которое создалось в терминале
источник

AF

Alex F. in ioBroker smarthome
попробуй уменьшить разрешение, у тебя малина не справляется
источник

LS

Lex Smooth in ioBroker smarthome
Уменьшить в команде?
источник