homebridge-plugins / homebridge-camera-ffmpeg

Homebridge Plugin Providing FFmpeg-based Camera Support
https://homebridge-plugins.github.io/homebridge-camera-ffmpeg/
Apache License 2.0
1.09k stars 227 forks source link

RPi3 with Microseven Camera Long Delay #280

Closed Jayne3 closed 4 years ago

Jayne3 commented 5 years ago

[2019-2-11 20:46:25] [Camera-ffmpeg] Start streaming video from Home with 640x360@132kBit ffmpeg -rtsp_transport tcp -re -i rtsp://192.168.1.82/11 -map 0:0 -vcodec libx264 -pix_fmt yuv420p -r 10 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -maxrate 132k -payload_type 99 -ssrc 10985089 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params fyz67P6Fuigvq1zQXxy3IZ3m/RHmlwMilZKzMoWj srtp://192.168.1.69:64750?rtcpport=64750&localrtcpport=64750&pkt_size=1316 -map 0:1 -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -bufsize 24k -ac 1 -payload_type 110 -ssrc 3854144 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params S+XNq9fPNfm/d6OXXWDjsVtKneZFrsiZrHEkkH1n srtp://192.168.1.69:61610?rtcpport=61610&localrtcpport=61610&pkt_size=1316 ffmpeg version N-93108-g3e8b8b6b50 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516 configuration: --prefix=/usr/local --arch=armel --target-os=linux --enable-omx-rpi --enable-nonfree --enable-gpl --enable-libfdk-aac --enable-mmal --enable-libx264 --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-demuxer=rtsp libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 47.100 / 58. 47.100 libavformat 58. 26.101 / 58. 26.101 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100

Guessed Channel Layout for Input Stream #0.1 : mono Input #0, rtsp, from 'rtsp://192.168.1.82/11': Metadata:

title           : 10

Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 30 tbr, 90k tbn, 180k tbc Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s

Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #1:0 (pcm_alaw (native) -> aac (libfdk_aac)) Press [q] to stop, [?] for help

Output #1, rtp, to 'srtp://192.168.1.69:61610?rtcpport=61610&localrtcpport=61610&pkt_size=1316': Metadata: title : 10 encoder : Lavf58.26.101 Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, 24 kb/s Metadata: encoder : Lavc58.47.100 libfdk_aac

[swscaler @ 0x3cdbc20] deprecated pixel format used, make sure you did set range correctly

[libx264 @ 0x3590570] using cpu capabilities: ARMv6 NEON

[libx264 @ 0x3590570] profile High, level 2.2

Output #0, rtp, to 'srtp://192.168.1.69:64750?rtcpport=64750&localrtcpport=64750&pkt_size=1316': Metadata: title : 10 encoder : Lavf58.26.101 Stream #0:0: Video: h264 (libx264), yuv420p, 640x360, q=-1--1, 132 kb/s, 10 fps, 90k tbn, 10 tbc Metadata: encoder : Lavc58.47.100 libx264 Side data: cpb: bitrate max/min/avg: 132000/0/132000 buffer size: 132000 vbv_delay: -1

frame= 3 fps=0.0 q=28.0 size= 5kB time=00:00:00.33 bitrate= 117.0kbits/s dup=0 drop=1 speed=0.619x
frame= 7 fps=6.5 q=21.0 size= 10kB time=00:00:00.65 bitrate= 123.9kbits/s dup=0 drop=8 speed=0.605x
frame= 10 fps=6.3 q=20.0 size= 13kB time=00:00:00.97 bitrate= 109.6kbits/s dup=0 drop=14 speed=0.609x
frame= 14 fps=6.5 q=19.0 size= 17kB time=00:00:01.30 bitrate= 109.8kbits/s dup=0 drop=22 speed=0.607x
frame= 17 fps=6.4 q=18.0 size= 21kB time=00:00:01.61 bitrate= 107.1kbits/s dup=0 drop=28 speed=0.61x
frame= 19 fps=6.0 q=19.0 size= 23kB time=00:00:01.93 bitrate= 98.5kbits/s dup=0 drop=33 speed=0.613x
frame= 22 fps=6.0 q=18.0 size= 27kB time=00:00:02.15 bitrate= 101.3kbits/s dup=0 drop=38 speed=0.588x
frame= 23 fps=5.9 q=21.0 Lsize= 28kB time=00:00:02.28 bitrate= 99.7kbits/s dup=0 drop=41 speed=0.585x
video:28kB audio:7kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

[libx264 @ 0x3590570] frame I:1 Avg QP:25.11 size: 4246 [libx264 @ 0x3590570] frame P:22 Avg QP:17.64 size: 1088 [libx264 @ 0x3590570] mb I I16..4: 21.3% 73.3% 5.4%

[libx264 @ 0x3590570] mb P I16..4: 0.3% 0.8% 0.0% P16..4: 15.6% 4.1% 2.8% 0.0% 0.0% skip:76.5% [libx264 @ 0x3590570] 8x8 transform intra:73.9% inter:80.7% [libx264 @ 0x3590570] coded y,uvDC,uvAC intra: 39.6% 0.0% 0.0% inter: 6.5% 0.0% 0.0% [libx264 @ 0x3590570] i16 v,h,dc,p: 15% 15% 17% 53% [libx264 @ 0x3590570] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 14% 33% 4% 4% 3% 4% 4% 3% [libx264 @ 0x3590570] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 31% 18% 3% 6% 3% 12% 4% 2% [libx264 @ 0x3590570] i8c dc,h,v,p: 100% 0% 0% 0% [libx264 @ 0x3590570] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x3590570] ref P L0: 86.7% 1.3% 8.5% 3.5% [libx264 @ 0x3590570] kb/s:98.03

Exiting normally, received signal 15.

[2019-2-11 20:46:31] [Camera-ffmpeg] Stopped streaming

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.