homebridge-camera-ffmpeg: timeline stream is not discontinuous

Describe The Bug:

To Reproduce:

Expected behavior:

Logs:

homebridge.zip

Homebridge Config:

 "platform": "Camera-ffmpeg",
            "videoProcessor": "ffmpeg",
            "cameras": [
                {
                    "name": "Nappali",
                    "manufacturer": "Dlink",
                    "model": "DCS 960L",
                    "firmwareRevision": "1.04.02",
                    "motion": true,
                    "videoConfig": {
                        "source": "-re -i rtsp://admin:xxxxxxxx@192.168.1.xx:554/play1.sdp",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 10,
                        "maxBitrate": 300,
                        "vcodec": "h264",
                        "packetSize": 1316,
                        "audio": true,
                        "debug": true
                    }
                },
                {
                    "name": "konyha",
                    "manufacturer": "Dahua",
                    "model": "C36",
                    "videoConfig": {
                        "source": "-re -i rtsp://syno:cxxxxxxxxxxxxxxx@192.168.1.xx:554/Sms=3.unicast",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 10,
                        "maxBitrate": 300,
                        "vcodec": "h264",
                        "packetSize": 1316,
                        "audio": true,
                        "debug": true
                    }

Screenshots:

Képernyőfotó 2020-07-13 - 15 47 43

here is the screenrecords from 2 cameras was streams always stop and big jump seconds: https://share.icloud.com/photos/02C-ehDhck-JreIxAYwX2MJ7Q

Environment:

  • Node.js Version:
  • NPM Version:
  • Homebridge Version:
  • Homebridge Camera FFmpeg Version: 2.2.1
  • Homebridge Config UI X Plugin Version: homebridge-config-ui-x v4.23.2 - © 2020 oznu
  • Operating System: Synology NAS Docker

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

@roe1974

From: https://trac.ffmpeg.org/wiki/StreamingGuide

The FFmpeg’s “-re” flag means to “Read input at native frame rate. Mainly used to simulate a grab device.” i.e. if you wanted to stream a video file, then you would want to use this, otherwise it might stream it too fast (it attempts to stream at line speed by default). My guess is you typically don’t want to use this flag when streaming from a live device, ever.

@roe1974 I don’t know where the advice to use it for this plugin started, but I plan to go through all the documentation and remove it. It should not ever be used when the source is live video.