What's the least redundant, and most efficient way to stream a non rtsp camera to homekit? #1446
Unanswered
thecrowkeep
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got my decklink connected camera successfully running on homekit currently, but I can't help but feel as though I've got things set up very inefficiently.
i'm running my camera at 4k29.97 through ffmpeg:
ffmpeg -f decklink -i "DeckLink Mini Recorder 4K" -f dshow -i audio="Mic | Line 1/2 (Audient EVO4)" -video_size 3840x2160 -framerate 29.97 -pix_fmt yuv420p -c:v h264_nvenc -preset slow -b:v 30M -g 60 -f rtsp rtsp://localhost:8554/live
then running a mediamtx instance to create the rtsp server.
in scrypted i have a rtsp camera plugin to pull in from
rtsp://localhost:8554/live
then I'm rebroadcasting from scrypted a prebuffered stream with ffmpeg (scrypted was dropping lots of frames).
input: -fflags +genpts
output: -c:v libx264 -pix_fmt yuvj420p -preset ultrafast -bf 0
(using h264_nvenc crashes the stream)the detected resolution/bitrate is unknown.
the keyframe is unknown
the oddities are:
{"fuab":false,"stapb":false,"mtap16":false,"mtap32":false,"sei":true,"reserved0":false,"reserved30":false,"reserved31":false}
I have the following extensions:
WebRTC Plugin, Rebroadcast Plugin, Snapshot Plugin, Scrypted NVR, Scrypted NVR Object Detection, Home Kit, Adaptive Streaming
Adaptive streaming doesn't seem to do much as opening the stream on a mobile network seems to render the 4k stream.
Does anyone see any potential misconfigurations that could be optimized? In its current state it feels like I could look at the configuration wrong and it would break.
and here is how it's working out so far for me:
Screen.Recording.2024-04-25.at.2.31.58.PM-1.mov
Beta Was this translation helpful? Give feedback.
All reactions