question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Config Support]: RTMP not working after upgrade from Add0n 3.1 to 0.11.1

See original GitHub issue

Describe the problem you are having

Hi,

I have upgraded from 3.1 to 0.11 by removing the add-on and reinstalling on a RPI 4. I have everything working again locally but the only point that keep failing is RTMP. I used my former config in which it worked perfectly. I retransmitted the RTSP stream of 3 camera’s via RTMP.

The problem now is that this does not work anymore. VLC to the RTMP://1.2.3.4/live/camname is not working. It just fails with no info in logs.

Is there something obvious that I could chnage in the config to get it working? There have not been other chnages to the system then the normal upgrades.

DuckDNS installed with remote access and SSL.

RPI with HASSOS / Frigate add-on / Frigate integration

Thank you for any insights.

Version

0.11.1

Frigate config file

"rtmp": {
        "enabled": true

Relevant log output

{
  "birdseye": {
    "enabled": true,
    "height": 720,
    "mode": "objects",
    "quality": 8,
    "width": 1280
  },
  "cameras": {
    "schuur": {
      "best_image_timeout": 60,
      "birdseye": {
        "enabled": true,
        "mode": "objects"
      },
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 720,
        "max_disappeared": 25,
        "stationary": {
          "interval": 0,
          "max_frames": {
            "default": 3000,
            "objects": {
              "person": 1000
            }
          },
          "threshold": 50
        },
        "width": 1280
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-timeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://user:pass@192.168.178.144:554/stream2",
            "roles": [
              "detect",
              "rtmp"
            ]
          },
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://user:pass@192.168.178.144:554/stream1",
            "roles": [
              "record"
            ]
          }
        ],
        "output_args": {
          "detect": [
            "-f",
            "rawvideo",
            "-pix_fmt",
            "yuv420p"
          ],
          "record": [
            "-f",
            "segment",
            "-segment_time",
            "10",
            "-segment_format",
            "mp4",
            "-reset_timestamps",
            "1",
            "-strftime",
            "1",
            "-c",
            "copy",
            "-an"
          ],
          "rtmp": [
            "-c",
            "copy",
            "-f",
            "flv"
          ]
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://user:pass@192.168.178.144:554/stream2 -c copy -f flv rtmp://127.0.0.1/live/schuur -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect",
            "rtmp"
          ]
        },
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://user:pass@192.168.178.144:554/stream1 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/schuur-%Y%m%d%H%M%S.mp4",
          "roles": [
            "record"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 60,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 50,
        "improve_contrast": false,
        "mask": [
          "516,49,512,0,0,0,0,45,237,48"
        ],
        "mqtt_off_delay": 30,
        "threshold": 30
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "schuur",
      "objects": {
        "filters": {
          "cat": {
            "mask": [
              "0,0,1000,0,1000,200,0,200"
            ],
            "max_area": 24000000,
            "max_ratio": 24000000,
            "min_area": 0,
            "min_ratio": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "person": {
            "mask": [
              "0,0,1000,0,1000,200,0,200",
              "0,0,1000,0,1000,200,0,200"
            ],
            "max_area": 100000,
            "max_ratio": 24000000,
            "min_area": 5000,
            "min_ratio": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "0,0,1000,0,1000,200,0,200",
        "track": [
          "person",
          "cat"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "objects": [
            "person",
            "car",
            "cat"
          ],
          "post_capture": 20,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 20,
            "mode": "active_objects",
            "objects": {
              "car": 20,
              "cat": 20,
              "person": 20
            }
          }
        },
        "expire_interval": 60,
        "retain": {
          "days": 0,
          "mode": "motion"
        },
        "retain_days": null
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 30,
          "mode": "motion",
          "objects": {
            "car": 30,
            "person": 30
          }
        },
        "timestamp": false
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "ui": {
        "dashboard": true,
        "order": 0
      },
      "zones": {}
    },
    "voordeur": {
      "best_image_timeout": 60,
      "birdseye": {
        "enabled": true,
        "mode": "objects"
      },
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 720,
        "max_disappeared": 25,
        "stationary": {
          "interval": 0,
          "max_frames": {
            "default": 3000,
            "objects": {
              "person": 1000
            }
          },
          "threshold": 50
        },
        "width": 1280
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-timeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://user:pass@192.168.178.136:554/stream2",
            "roles": [
              "detect",
              "rtmp"
            ]
          },
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://user:pass@192.168.178.136:554/stream1",
            "roles": [
              "record"
            ]
          }
        ],
        "output_args": {
          "detect": [
            "-f",
            "rawvideo",
            "-pix_fmt",
            "yuv420p"
          ],
          "record": [
            "-f",
            "segment",
            "-segment_time",
            "10",
            "-segment_format",
            "mp4",
            "-reset_timestamps",
            "1",
            "-strftime",
            "1",
            "-c",
            "copy",
            "-an"
          ],
          "rtmp": [
            "-c",
            "copy",
            "-f",
            "flv"
          ]
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://user:passt@192.168.178.136:554/stream2 -c copy -f flv rtmp://127.0.0.1/live/voordeur -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect",
            "rtmp"
          ]
        },
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://user:pass@192.168.178.136:554/stream1 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/voordeur-%Y%m%d%H%M%S.mp4",
          "roles": [
            "record"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 60,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 50,
        "improve_contrast": false,
        "mask": [
          "1280,49,1280,0,0,0,0,43",
          "613,226,711,385,876,477,976,505,1014,549,863,720,787,688,717,692,537,673,388,579,392,295",
          "0,367,72,539,149,694,249,720,247,633,224,507,218,449,193,344,184,264,171,177,165,92,0,88",
          "787,366,1145,511,1144,440,1220,384,1280,397,1280,474,1280,686,1153,621,677,361"
        ],
        "mqtt_off_delay": 30,
        "threshold": 30
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "voordeur",
      "objects": {
        "filters": {
          "car": {
            "mask": [
              "0,0,1000,0,1000,200,0,200"
            ],
            "max_area": 24000000,
            "max_ratio": 24000000,
            "min_area": 0,
            "min_ratio": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "cat": {
            "mask": [
              "0,0,1000,0,1000,200,0,200"
            ],
            "max_area": 24000000,
            "max_ratio": 24000000,
            "min_area": 0,
            "min_ratio": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "person": {
            "mask": [
              "0,0,1000,0,1000,200,0,200",
              "0,0,1000,0,1000,200,0,200"
            ],
            "max_area": 100000,
            "max_ratio": 24000000,
            "min_area": 5000,
            "min_ratio": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "0,0,1000,0,1000,200,0,200",
        "track": [
          "person",
          "car",
          "cat"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "objects": [
            "person",
            "car",
            "cat"
          ],
          "post_capture": 20,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 20,
            "mode": "active_objects",
            "objects": {
              "car": 20,
              "cat": 20,
              "person": 20
            }
          }
        },
        "expire_interval": 60,
        "retain": {
          "days": 0,
          "mode": "motion"
        },
        "retain_days": null
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 30,
          "mode": "motion",
          "objects": {
            "car": 30,
            "person": 30
          }
        },
        "timestamp": false
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "ui": {
        "dashboard": true,
        "order": 0
      },
      "zones": {}
    },
    "voortuin": {
      "best_image_timeout": 60,
      "birdseye": {
        "enabled": false,
        "mode": "objects"
      },
      "detect": {
        "enabled": true,
        "fps": 5,
        "height": 720,
        "max_disappeared": 25,
        "stationary": {
          "interval": 0,
          "max_frames": {
            "default": 3000,
            "objects": {
              "person": 1000
            }
          },
          "threshold": 50
        },
        "width": 1280
      },
      "ffmpeg": {
        "global_args": [
          "-hide_banner",
          "-loglevel",
          "warning"
        ],
        "hwaccel_args": [],
        "input_args": [
          "-avoid_negative_ts",
          "make_zero",
          "-fflags",
          "+genpts+discardcorrupt",
          "-rtsp_transport",
          "tcp",
          "-timeout",
          "5000000",
          "-use_wallclock_as_timestamps",
          "1"
        ],
        "inputs": [
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://user:pass@192.168.178.202:554/stream2",
            "roles": [
              "detect",
              "rtmp"
            ]
          },
          {
            "global_args": [],
            "hwaccel_args": [],
            "input_args": [],
            "path": "rtsp://user:pass@192.168.178.202:554/stream1",
            "roles": [
              "record"
            ]
          }
        ],
        "output_args": {
          "detect": [
            "-f",
            "rawvideo",
            "-pix_fmt",
            "yuv420p"
          ],
          "record": [
            "-f",
            "segment",
            "-segment_time",
            "10",
            "-segment_format",
            "mp4",
            "-reset_timestamps",
            "1",
            "-strftime",
            "1",
            "-c",
            "copy",
            "-an"
          ],
          "rtmp": [
            "-c",
            "copy",
            "-f",
            "flv"
          ]
        }
      },
      "ffmpeg_cmds": [
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://user:pass@192.168.178.202:554/stream2 -c copy -f flv rtmp://127.0.0.1/live/voortuin -r 5 -s 1280x720 -f rawvideo -pix_fmt yuv420p pipe:",
          "roles": [
            "detect",
            "rtmp"
          ]
        },
        {
          "cmd": "ffmpeg -hide_banner -loglevel warning -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -timeout 5000000 -use_wallclock_as_timestamps 1 -i rtsp://user:pass@192.168.178.202:554/stream1 -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an /tmp/cache/voortuin-%Y%m%d%H%M%S.mp4",
          "roles": [
            "record"
          ]
        }
      ],
      "live": {
        "height": 720,
        "quality": 8
      },
      "motion": {
        "contour_area": 60,
        "delta_alpha": 0.2,
        "frame_alpha": 0.2,
        "frame_height": 50,
        "improve_contrast": false,
        "mask": "0,900,1080,900,1080,1920,0,1920",
        "mqtt_off_delay": 30,
        "threshold": 30
      },
      "mqtt": {
        "bounding_box": true,
        "crop": true,
        "enabled": true,
        "height": 270,
        "quality": 70,
        "required_zones": [],
        "timestamp": true
      },
      "name": "voortuin",
      "objects": {
        "filters": {
          "car": {
            "mask": [
              "0,0,1000,0,1000,200,0,200"
            ],
            "max_area": 24000000,
            "max_ratio": 24000000,
            "min_area": 0,
            "min_ratio": 0,
            "min_score": 0.5,
            "threshold": 0.7
          },
          "person": {
            "mask": [
              "0,0,1000,0,1000,200,0,200",
              "0,0,1000,0,1000,200,0,200"
            ],
            "max_area": 100000,
            "max_ratio": 24000000,
            "min_area": 5000,
            "min_ratio": 0,
            "min_score": 0.5,
            "threshold": 0.7
          }
        },
        "mask": "0,0,1000,0,1000,200,0,200",
        "track": [
          "person",
          "car"
        ]
      },
      "record": {
        "enabled": true,
        "events": {
          "objects": [
            "person",
            "car",
            "cat"
          ],
          "post_capture": 20,
          "pre_capture": 5,
          "required_zones": [],
          "retain": {
            "default": 20,
            "mode": "active_objects",
            "objects": {
              "car": 20,
              "cat": 20,
              "person": 20
            }
          }
        },
        "expire_interval": 60,
        "retain": {
          "days": 0,
          "mode": "motion"
        },
        "retain_days": null
      },
      "rtmp": {
        "enabled": true
      },
      "snapshots": {
        "bounding_box": true,
        "clean_copy": true,
        "crop": false,
        "enabled": true,
        "height": null,
        "quality": 70,
        "required_zones": [],
        "retain": {
          "default": 30,
          "mode": "motion",
          "objects": {
            "car": 30,
            "person": 30
          }
        },
        "timestamp": false
      },
      "timestamp_style": {
        "color": {
          "blue": 255,
          "green": 255,
          "red": 255
        },
        "effect": null,
        "format": "%m/%d/%Y %H:%M:%S",
        "position": "tl",
        "thickness": 2
      },
      "ui": {
        "dashboard": true,
        "order": 0
      },
      "zones": {}
    }
  },
  "database": {
    "path": "/media/frigate/frigate.db"
  },
  "detect": {
    "enabled": true,
    "fps": 5,
    "height": 1080,
    "max_disappeared": 25,
    "stationary": {
      "interval": 0,
      "max_frames": {
        "default": 3000,
        "objects": {
          "person": 1000
        }
      },
      "threshold": 50
    },
    "width": 1920
  },
  "detectors": {
    "coral1": {
      "device": "usb:0",
      "num_threads": 3,
      "type": "edgetpu"
    },
    "coral2": {
      "device": "usb:1",
      "num_threads": 3,
      "type": "edgetpu"
    }
  },
  "environment_vars": {},
  "ffmpeg": {
    "global_args": [
      "-hide_banner",
      "-loglevel",
      "warning"
    ],
    "hwaccel_args": [],
    "input_args": [
      "-avoid_negative_ts",
      "make_zero",
      "-fflags",
      "+genpts+discardcorrupt",
      "-rtsp_transport",
      "tcp",
      "-timeout",
      "5000000",
      "-use_wallclock_as_timestamps",
      "1"
    ],
    "output_args": {
      "detect": [
        "-f",
        "rawvideo",
        "-pix_fmt",
        "yuv420p"
      ],
      "record": [
        "-f",
        "segment",
        "-segment_time",
        "10",
        "-segment_format",
        "mp4",
        "-reset_timestamps",
        "1",
        "-strftime",
        "1",
        "-c",
        "copy",
        "-an"
      ],
      "rtmp": [
        "-c",
        "copy",
        "-f",
        "flv"
      ]
    }
  },
  "live": {
    "height": 720,
    "quality": 8
  },
  "logger": {
    "default": "info",
    "logs": {}
  },
  "model": {
    "height": 320,
    "labelmap": {},
    "labelmap_path": null,
    "path": null,
    "width": 320
  },
  "motion": {
    "contour_area": 60,
    "delta_alpha": 0.2,
    "frame_alpha": 0.2,
    "frame_height": 50,
    "improve_contrast": false,
    "mask": "0,900,1080,900,1080,1920,0,1920",
    "mqtt_off_delay": 30,
    "threshold": 30
  },
  "mqtt": {
    "client_id": "frigate",
    "host": "192.168.178.230",
    "password": "1234",
    "port": 1883,
    "stats_interval": 60,
    "tls_ca_certs": null,
    "tls_client_cert": null,
    "tls_client_key": null,
    "tls_insecure": null,
    "topic_prefix": "frigate",
    "user": "mqttuser"
  },
  "objects": {
    "filters": {
      "person": {
        "mask": "0,0,1000,0,1000,200,0,200",
        "max_area": 100000,
        "max_ratio": 24000000,
        "min_area": 5000,
        "min_ratio": 0,
        "min_score": 0.5,
        "threshold": 0.7
      }
    },
    "mask": "0,0,1000,0,1000,200,0,200",
    "track": [
      "person",
      "car",
      "cat"
    ]
  },
  "plus": {
    "enabled": false
  },
  "record": {
    "enabled": true,
    "events": {
      "objects": [
        "person",
        "car",
        "cat"
      ],
      "post_capture": 20,
      "pre_capture": 5,
      "required_zones": [],
      "retain": {
        "default": 20,
        "mode": "active_objects",
        "objects": {
          "car": 20,
          "cat": 20,
          "person": 20
        }
      }
    },
    "expire_interval": 60,
    "retain": {
      "days": 0,
      "mode": "motion"
    },
    "retain_days": null
  },
  "rtmp": {
    "enabled": true
  },
  "snapshots": {
    "bounding_box": true,
    "clean_copy": true,
    "crop": false,
    "enabled": true,
    "height": null,
    "quality": 70,
    "required_zones": [],
    "retain": {
      "default": 30,
      "mode": "motion",
      "objects": {
        "car": 30,
        "person": 30
      }
    },
    "timestamp": false
  },
  "timestamp_style": {
    "color": {
      "blue": 255,
      "green": 255,
      "red": 255
    },
    "effect": null,
    "format": "%m/%d/%Y %H:%M:%S",
    "position": "tl",
    "thickness": 2
  },
  "ui": {
    "use_experimental": false
  }
}

Frigate stats

No response

Operating system

HassOS

Install method

HassOS Addon

Coral version

USB

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
NickM-27commented, Nov 2, 2022

Without any logs there’s no way to help. Paste frigate logs and the logs when trying to view. If you can’t get VLC logs then use ffplay

0reactions
adekloetcommented, Nov 2, 2022

Thanks, Let me check the port config in the add-on

afbeelding

Seems oke?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alex de Kloet adekloet - GitHub
[Config Support]: RTMP not working after upgrade from Add0n 3.1 to 0.11.1. Describe the problem you are having Hi, I have upgraded from...
Read more >
Got an error message "invalid RTMP url" How do I fix this?
Given that your Flash setup is outdated (a security issue), first uninstall Flash from the Add/Remove Programs panel on Windows. Then see if...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:90687 - "app-emulation/bochs: ebuild does not support pci nor pcidev linux kernel module" status:RESOLVED resolution:OBSOLETE severity:enhancement ...
Read more >
How to Webcast Using RTMP - Panopto Support
Instructions on how to use webcast using RTMP with Panopto. ... requires more advanced configuration steps and is not recommended for users ...
Read more >
Streaming issues via RTMP - Hopin Support
When generating the RTMP stream settings in the Event Dashboard > Venue > Stage/s, two separate RTMPs URLs are created: Preferred and Fallback....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found