homebridge-plugins / homebridge-camera-ffmpeg

Homebridge Plugin Providing FFmpeg-based Camera Support
https://homebridge-plugins.github.io/homebridge-camera-ffmpeg/
Apache License 2.0
1.09k stars 227 forks source link

Support for H.265-Based Cameras #1208

Closed ahmadnazirafiq closed 3 years ago

ahmadnazirafiq commented 3 years ago

Hi,

I'm using IMOU Ranger 2 camera (https://www.imoulife.com/product/detail/Ranger2) and it supports RTSP streams using H.265 codec when streamed via VLC. It was smooth as expected.

IMG_0548

However, when streamed via HomeKit its choppy sometimes and there's some artefacts on the feed no matter the settings I've adjusted in the ffmpeg plugin. I even tried the "copy" in video codec section but this doesn't stream the feed at all, other codecs streams but its choppy.

This issue does not happen with cameras like Xiaofang & Dafang; it spits out the feed clearly. Below is the information I got from VLC:

Screenshot 2021-09-30 at 10 52 46

Any ideas?

ahmadnazirafiq commented 3 years ago

Found a workaround by adding -rtsp_transport tcp to the start of the source line. Seems to no longer showing the artefacts in the feed. Closing this issue.