-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: FFmpeg exited with code 1 #53
Comments
Can you try with the beta build? |
I've tested this build with both my rbpi3 on buster macosx catalina and a linux mint vm (which needs g++ to be installed) |
Yep will try later today and report back. |
No luck with the beta build. All the cameras still show "no response". I do like that it adds all the cameras at once though that is nice. |
any reason you are using libx264 for vcodec instead of h264 (or h264_omx on rbpi)? |
copied it out of the wiki. I changed to h264 with the beta to match the new wiki config. Also tried copy with no luck. |
Hmm ok, strange FFmpeg can be tricky to get working correctly on various setups. |
Buster, Node v12.18.1, Homebridge v1.1.1 |
Ok, are you running on a rbpi? |
yes. Pi 4 |
Ok, I have the same setup so we should be able to get this working. |
It does work with homebridge-camera-ffmpeg albeit the camera is slow. That was with whatever the default configuration settings were. It works flawlessly with homebridge-unifi-protect2 (again with the default config settings). My current setup was a fresh install of everything so I could just focus on this software so those are not installed currently. The only difference I can tell from our setup is that I am using UniFi Protect Network Video Recorder. |
Do the snapshots work in the home app? (is they do ffmpeg should be working and it is the stream settings that are messed up, if not ffmpeg is not working correctly) |
They don’t work for this package (do for the other two). How would you recommend I troubleshoot?? |
Can you try with the latest beta, it has an updated ffmpeg dependency that now will correctly print debug info |
[7/2/2020, 8:26:54 AM] [Unifi protect cameras & motion sensors] Starting video stream (1280x720, 15 fps, 299 kbps, 1378 mtu)... |
Does the fact that I have the microphone disabled on the cameras make a difference? |
Try renaming your camera. This appears to be related to homebridge-plugins/homebridge-camera-ffmpeg#579 and homebridge-plugins/homebridge-camera-ffmpeg#554 |
No luck still. It recognized the camera name changes but homekit but cameras still show "no response" and log file says the same as above. |
@sullyhome did you find a solution? I’m having the same exact issue. |
Unfortunately I did not. I rebuilt everything fresh again to try and still no luck. |
Could you try with the latest beta: [email protected] |
Appears perhaps there is a different bug reading the cameras? Getting the following in the logs.... [7/23/2020, 6:38:36 PM] [Unifi protect cameras & motion sensors] Cameras retrieved, enumerating motion sensors |
[email protected] should fix this (on my local machine this error does not occur because I have homebridge as a dev dependency) |
The issue above with populating the cameras is fixed but sadly still no video feeds. |
Please refer to: #62 |
I see there is a "closed" issue on this but I am unable to get this to work . This is a fresh install. Within the home app I get "no response" from the cameras. In the log file I get "ERROR: FFmpeg exited with code 1". Have tried the couple configs in the closed issue with no success.
This is connecting to the newest Unifi NVR. G3 Bullet and G3 Flex Cameras. homebridge-camera-ffmpeg and homebridge-unifi-protect2 both work for me.
Config file:
{
"bridge": {
"name": "Homebridge BED1",
"username": "0E:60:72:0F:BE:D1",
"port": 51653,
"pin": "664-83-642"
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"name": "Unifi protect cameras & motion sensors",
"unifi": {
"enhanced_classes": [],
"controller": "https://192.168.1.172",
"controller_rtsp": "https://192.168.1.172:7447",
"username": "xxx",
"password": "xxx",
"motion_interval": 5000,
"motion_repeat_interval": 30000,
"motion_score": 50,
"enhanced_motion": true,
"enhanced_motion_score": 50,
"save_snapshot": false,
"debug": false
},
"googlePhotos": {
"upload_gphotos": false,
"auth_redirectUrl": "http://localhost:8080/oauth2-callback"
},
"videoConfig": {
"maxStreams": 2,
"maxWidth": 1024,
"maxHeight": 576,
"maxFPS": 15,
"maxBitrate": 3000,
"vcodec": "libx264",
"packetSize": 376,
"audio": false,
"additionalCommandline": "-protocol_whitelist https,crypto,srtp,rtp,udp"
},
"platform": "UnifiProtectMotion"
}
]
}
The text was updated successfully, but these errors were encountered: