kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
642 stars 78 forks source link

RTSP H265 support #61

Open bigntallmike opened 1 year ago

bigntallmike commented 1 year ago

I'm still using the Kerberos.IO Machinery interface for my video cameras because it supports h265 streams and agent does not yet. With more and more cameras going to 4k with h265, when can we expect support in agent for h265 streams?

cedricve commented 1 year ago

Yes that will definitely come @bigntallmike. Currently we are relying on our own version of joy4 (https://github.com/kerberos-io/joy4). This only supports PCM for audio and H264 for video as we speak, but the idea is to implement other audio and video codecs such as H265.

We are not sure if we will get rid of this external library, or we will integrate it directly into the agent repository. As it shows some artefacts with memory allocation which are hard to track. It's also linked to an older version of FFMPEG. Any help from the community is more then welcome!

bigntallmike commented 1 year ago

The only way I usually interface with RTSP streams directly is with ffmpeg itself and I lack any familiarity with golang or I'd have a look. Good luck. See also very old ffmpeg library example: https://stackoverflow.com/a/11054652/853220