homebridge-camera-ffmpeg: D-link DCS-920 live video crashes ffmpeg

Describe The Bug: D-link DCS-920 live video crashes ffmpeg Snapshots work perfectly fine

To Reproduce: Browse To The Video Feed

Logs:

[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] FFMPEG: [mjpeg @ 0000026abbc0e780] Opening 'http://admin:XXXXX@192.168.0.44/VIDEO.CGI' for reading
[http @ 0000026abbc0fdc0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy,data'
[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] FFMPEG: [tcp @ 0000026abbc11800] Original list of addresses:
[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] FFMPEG: [tcp @ 0000026abbc11800] Address 192.168.0.44 port 80
[tcp @ 0000026abbc11800] Interleaved list of addresses:
[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] FFMPEG: [tcp @ 0000026abbc11800] Address 192.168.0.44 port 80
[tcp @ 0000026abbc11800] Starting connection attempt to 192.168.0.44 port 80
[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] FFMPEG: [tcp @ 0000026abbc11800] Successfully connected to 192.168.0.44 port 80
[http @ 0000026abbc0fdc0] request: GET /VIDEO.CGI HTTP/1.1
User-Agent: Lavf/58.38.101
Accept: */*
Range: bytes=0-
Connection: close
Host: 192.168.0.44
Icy-MetaData: 1
[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] FFMPEG: http://admin:XXXXX@192.168.0.44/VIDEO.CGI: End of file
[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] [FFMPEG] ffmpeg exited with code: 1 and signal: null (error)
[7/6/2020, 5:41:34 PM] [Camera-ffmpeg] Stopped DCS-920 video stream!

Homebridge Config:

                     "manufacturer": "D-Link",
                     "model": "DCS-920",
                     "videoConfig": {
                        "source": "-re -f mjpeg -i http://admin:XXXXX@192.168.0.44/VIDEO.CGI",
                        "stillImageSource": "-f mjpeg -i http://admin:XXXXX@192.168.0.44/image.jpg",
                        "maxFPS": 30,
                        "audio": false,
                        "debug": true
                    }

or ive tried

                            "source": "-re -i http://admin:XXXXX@192.168.0.44/video/mjpg.cgi",
                            "stillImageSource": "-i http://admin:XXXXX@192.168.0.44/image.jpg",

same error… I’ve verified the links in browser i can see a feed

Environment: Latest Setup, Up To Date

if any info from the camera is needed, let me know 😃

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 26 (9 by maintainers)

Most upvoted comments

is http://admin:XXXXX@192.168.0.44/VIDEO.CGI really only the video feed?

does the URL works in VLC?

did you try another URLs for your camera from here http://www.camera-sdk.com/p_162-how-to-connect-to-your-d-link-ip-camera-onvif.html or here https://www.ispyconnect.com/man.aspx?n=d-link&page=15