Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtsp support in hkcam (patch) #95

Open
e1z0 opened this issue Sep 13, 2020 · 4 comments
Open

rtsp support in hkcam (patch) #95

e1z0 opened this issue Sep 13, 2020 · 4 comments

Comments

@e1z0
Copy link

e1z0 commented Sep 13, 2020

Hello and thank you for the great contribution by supporting the HomeKit in golang world!

I've made h264 rtsp stream as input source support patch, a little bit hacky but in general it works pretty well
Patch.: patch -p0 < hkcam-rtsp.patch
After compilation use the following parameters to pass the rtsp stream:

./hkcam -input_device rtsp -input_filename "rtsp://admin:[email protected]:554/0/av0" -h264_encoder h264

hkcam-rtsp.patch.zip

dbarrosop added a commit to dbarrosop/hkcam that referenced this issue Nov 14, 2020
@dbarrosop
Copy link

FWIW I tried it with my IP Camera and it worked great

@bartekpacia
Copy link

@e1z0 could you submit a pull request so it would out-of-the-box?

@1lluminaughty
Copy link

Hello,
I patched the code files successfully.

How do I generate a new binary for the Raspberry Pi Zero platform?

@pagbrl
Copy link

pagbrl commented Mar 2, 2022

Hi !
Thanks for this patch.

@1lluminaughty to answer your question, you can clone the repo and run make build, that should create the binary in the build directory.

I have another question however : what is the preferred option to create the rtsp flux ? I'm using vlc but it seems that it's not the best solution (regarding dropped frames, etc.). Here's my rtsp script

libcamera-vid -t 0 --inline -o - | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8080/}' :demux=h264

What are the other options for this ? I'm not sure where to look for documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants