rtsp audio

Hi-

I'm achieving homekit integration by going Camera -> SS -> Scrypted -> Homekit. I noticed that my cameras stopped having audio via this chain, whereas I thought it was working at one point (but am not positive).

I was looking into why, and when I bring up VLC using the RTSP stream (which is what Scrypted is using), I also get no audio, which would seem to explain it.

Most of my cameras are AAC. Setting a camera to reencode doesnt seem to make a difference. Any thoughts?

Thanks!

Comments

  • Ben
    Ben
    edited December 2024

    I presume you are using the "URL Generator" function in SecuritySpy to create the RTSP URL to give to Scrypted? The URL Generator currently doesn't have an option for audio, but this would be a useful feature so we'll make sure to add this for the next update.

    If, on the other hand, you are creating the RTSP URL manually, you can add an "acodec=aac" parameter to get AAC audio with the stream.

  • Thanks Ben.

    I was using the generator. Oddly enough, which I add the acodec=aac parameter to the URL string, the RTSP stream stops working in Scrypted. I also noticed that even though my url string had a api key via the 'auth' parameter, I'm prompted for a l/p when using VLC. When I remove the acodec parameter, the embedded auth works. Could be related to not working in Scrypted, or not.

  • The auth token that's added to the URL is specific for that exact URL only, so if you edit the URL in any way you will break the authentication. This is probably why your edited URL isn't working.

    Audio options have now been added to the URL Generator tool in the latest 6.7 version of SecuritySpy, which you can obtain from the SecuritySpy download page. Please test this and let me know if this works as expected for you.