-
Notifications
You must be signed in to change notification settings - Fork 6
Still not working for me - FOSCAM C1 V3, Pi based Homebridge #64
Comments
OK, another day, another attempt. Ditch everything - AGAIN!: Check everything else is upto date: Reinstall everything: Ensure that users have access to the video group and reboot: Nuked everything in the persist directory, removed home bridge from the home app, along with the camera. Rebooted again. And for grins and giggles, I restarted my network (Google mesh wifi), and the camera. Started home bridge again, re-added to the home app using the QR code. then added the camera Snapshot works as do the motion and alarm sensors. Clicking on the video and I got a stream! Yes - brilliant. Here's the debug output showing what it was doing: [2018-9-26 10:32:30] Homebridge is running on port 51826. libavutil 55. 34.101 / 55. 34.101 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, rtsp, from 'rtsp://gooadmin:[email protected]:554/videoMain': Codec AVOption tune (Tune the encoding to a specific scenario) specified for output file #0 (srtp://10.88.96.7:50179?rtcpport=50179&localrtcpport=50179&pkt_size=1316) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [swscaler @ 0x1e9ce20] deprecated pixel format used, make sure you did set range correctly [h264_omx @ 0x1ded9f0] Using OMX.broadcom.video_encode Output #0, rtp, to 'srtp://10.88.96.7:50179?rtcpport=50179&localrtcpport=50179&pkt_size=1316':
Stream mapping: frame= 8 fps=0.0 q=-0.0 size= 20kB time=00:00:00.40 bitrate= 415.5kbits/s speed=0.768x [h264 @ 0x1ebf720] concealing 1783 DC, 1783 AC, 1783 MV errors in I frame [h264 @ 0x1eb67d0] Increasing reorder buffer to 1 frame= 61 fps= 19 q=-0.0 size= 155kB time=00:00:03.93 bitrate= 323.0kbits/s speed=1.25x [h264 @ 0x1eb67d0] [h264 @ 0x1eb67d0] frame= 124 fps= 17 q=-0.0 size= 390kB time=00:00:08.06 bitrate= 396.5kbits/s dup=6 drop=0 speed= 1.1x frame= 236 fps= 17 q=-0.0 size= 819kB time=00:00:15.53 bitrate= 431.7kbits/s dup=6 drop=0 speed=1.09x [h264 @ 0x1f10e80] frame= 244 fps= 17 q=-0.0 size= 863kB time=00:00:16.06 bitrate= 439.8kbits/s dup=6 drop=0 speed=1.09x [h264 @ 0x1f10e80] [h264 @ 0x1f10e80] concealing 553 DC, 553 AC, 553 MV errors in I frame frame= 300 fps= 16 q=-0.0 size= 1068kB time=00:00:19.80 bitrate= 441.9kbits/s dup=6 drop=0 speed=1.07x frame= 356 fps= 16 q=-0.0 size= 1330kB time=00:00:23.53 bitrate= 463.0kbits/s dup=6 drop=0 speed=1.06x [h264 @ 0x1f10e80] concealing 166 DC, 166 AC, 166 MV errors in I frame frame= 364 fps= 16 q=-0.0 size= 1381kB time=00:00:24.06 bitrate= 470.2kbits/s dup=6 drop=0 speed=1.06x [h264 @ 0x1f10e80] error while decoding MB 52 36, bytestream -31 [h264 @ 0x1f10e80] concealing 717 DC, 717 AC, 717 MV errors in I frame frame= 418 fps= 16 q=-0.0 size= 1605kB time=00:00:27.66 bitrate= 475.2kbits/s dup=6 drop=0 speed=1.04x Exiting normally, received signal 15. [2018-9-26 10:33:18] [Foscam] Stopped streaming But then that's the only time it's work. Subsequent attempts to click on the camera in home give me nothing again, and the debug output looks like this: [2018-9-26 10:33:27] [Foscam] Start streaming video from C1 with 1280x720@299kBit libavutil 55. 34.101 / 55. 34.101 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, rtsp, from 'rtsp://gooadmin:[email protected]:554/videoMain': Codec AVOption tune (Tune the encoding to a specific scenario) specified for output file #0 (srtp://10.88.96.7:50310?rtcpport=50310&localrtcpport=50310&pkt_size=1316) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [swscaler @ 0x2336830] deprecated pixel format used, make sure you did set range correctly [h264_omx @ 0x229a0e0] Using OMX.broadcom.video_encode Output #0, rtp, to 'srtp://10.88.96.7:50310?rtcpport=50310&localrtcpport=50310&pkt_size=1316':
Stream mapping: frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x Exiting normally, received signal 15. [2018-9-26 10:33:50] [Foscam] Stopped streaming Nothing is coming from the camera. all the frames are empty. ARRRRRRRGH!!! I know this works. I've seen it with my own eyes. But it only appears to work once. So I know I've got what needs to be in place... just ffmpeg, home bridge and the new foscam plugin. My question now is - Do I need to look at settings on the camera? There's the config webpage you can get @ ipaddr:88, which has a bunch of settings. And RSTP is setup with RSTP on 554 and ONVIF on 888. Should UPnP and P2P be on? Should I leave the DHCP setting on (as I have the IP reserved on the router for it), or force it in the camera setup? Should there be something set on the router, besides reserving that IP Address? I'll be bald by the time I get this working.... :) Finally - this is all i've got in the config.json file
} |
Well, thats it. I'm calling it - I've wasted way too much of my time on this. I've even tried installing home bridge on my Mac, and running foscam from there - but it still does not work. the C1 camera sucks. Starting an Amazon return on them, and good riddance. |
Did you managed to get it working @TheRealGreatOldOne ? |
@Shinodas - no, I did not. I returned the cameras, and bought some from EZVIZ. These work perfectly with the standard camera plugin for homebridge |
Can someone please help?
The camera streams fine via VLC, on the following address RTSP://usr:[email protected]:554/videoMain
I've completely torn down the home bridge server, and rebuilt. Raspbian stretch lite, latest file from pi.org (27/06/2018)
ffmpeg:
ffmpeg version N-81800-gf013ba4 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-omx --enable-omx-rpi
libavutil 55. 30.100 / 55. 30.100
libavcodec 57. 58.103 / 57. 58.103
libavformat 57. 51.100 / 57. 51.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 63.100 / 6. 63.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 2.100 / 2. 2.100
libpostproc 54. 0.100 / 54. 0.100
gcc: version 6.3.0 20170516 (Raspbian 6.3.0-18+rpi1+deb9u1)
node -v : v8.12.0
libavahi-compat-libdnssd-dev is already the newest version (0.6.32-2).
Homebridge: installed from latest NPM /usr/bin/homebridge -> /usr/lib/node_modules/homebridge/bin/homebridge
I then grab then foscam NPM, install it and use the config.json from luisiam/homebridge-foscamcamera to add my camera:
that's the only thing in the config bar bridge info at the top. home bridge starts fine, and I can add the bridge in the home app, and then the camera itself. it starts taking snapshots fine, and the sensors work as expected:
[2018-9-25 18:55:09] Homebridge is running on port 51826.
[2018-9-25 18:55:11] [Foscam] Initializing platform accessory 'Foscam C1'...
[2018-9-25 18:55:11] Foscam C1 is running on port 35519.
[2018-9-25 18:55:12] [Foscam] C1 is armed (stay).
[2018-9-25 18:55:45] [Foscam] C1 is armed (stay).
[2018-9-25 18:55:46] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
[2018-9-25 18:55:58] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
[2018-9-25 18:56:09] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
[2018-9-25 18:56:11] [Foscam] C1 Motion Detected!
[2018-9-25 18:56:11] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
[2018-9-25 18:56:11] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
[2018-9-25 18:56:11] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
[2018-9-25 18:56:16] [Foscam] C1 Motion Detected!
[2018-9-25 18:56:16] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
[2018-9-25 18:56:17] [Foscam] Snapshot from C1 at 480x270
ffmpeg -i http://gooadmin:[email protected]:88/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=gooadmin&pwd=thx1138& -t 1 -s 480x270 -f image2 -
But as soon as you click on the camera to see the feed, I get a static image and this on the ssh session to the pi:
[2018-9-25 18:57:10] [Foscam] Start streaming video from C1 with 1280x720@299kBit
ffmpeg -rtsp_transport tcp -re -i rtsp://gooadmin:[email protected]:554/videoMain -map 0:0 -vcodec libx264 -pix_fmt yuv420p -r 15 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 299k -bufsize 299k -payload_type 99 -ssrc 233507 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params vMIlAtMkc7YnZ0havVEjD5TgJ31HgjoklYA0N4ge srtp://10.88.96.7:55757?rtcpport=55757&localrtcpport=55757&pkt_size=1316
ffmpeg version N-81800-gf013ba4 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree --enable-omx --enable-omx-rpi
libavutil 55. 30.100 / 55. 30.100
libavcodec 57. 58.103 / 57. 58.103
libavformat 57. 51.100 / 57. 51.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 63.100 / 6. 63.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 2.100 / 2. 2.100
libpostproc 54. 0.100 / 54. 0.100
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://gooadmin:[email protected]:554/videoMain':
Metadata:
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709), 1280x720, 50 tbr, 90k tbn, 180k tbc
Stream #0:1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s
[swscaler @ 0x18849e0] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x1851f90]
VBV maxrate unspecified, assuming CBR
[libx264 @ 0x1851f90] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x1851f90] profile High, level 3.1
Output #0, rtp, to 'srtp://10.88.96.7:55757?rtcpport=55757&localrtcpport=55757&pkt_size=1316':
Metadata:
title : videoMain
encoder : Lavf57.51.100
Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720, q=-1--1, 299 kb/s, 15 fps, 90k tbn, 15 tbc
Metadata:
encoder : Lavc57.58.103 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/299000 buffer size: 299000 vbv_delay: -1
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
Exiting normally, received signal 15.
[2018-9-25 18:57:40] [Foscam] Stopped streaming
Nothing appears to be being sent....
What am I doing wrong here? Do I need:
To have the https://github.com/KhaosT/homebridge-camera-ffmpeg module installed? And does it need to be registered as a platform with some configuration? If so, what?
What about the special version of camera ffmpeg with OMX? (https://github.com/legotheboss/homebridge-camera-ffmpeg-omx) - same questions as the noramal - does it need to be installed? settings in the config.json file?
Im only running this as the pi user at the moment whilst i troubleshoot (ha! :-D) - and I've made sure that this user is a member of the video group.
HELP! :/
The text was updated successfully, but these errors were encountered: