nanosonde / sip2rtsp

A SIP client that provides two-way audio streams to gstreamer RTSP server with ONVIF backchannel support
MIT License
15 stars 4 forks source link

Error creating devcontainer #7

Closed chip131001 closed 1 year ago

chip131001 commented 1 year ago

I get an error message when starting the container.

How can I solve the problem?

Bildschirm­foto 2023-03-19 um 09 21 28
nanosonde commented 1 year ago

Are you really using the latest commit?

As you can see the CI pipeline passed for all three targets.

nanosonde commented 1 year ago

Oops. Too fast. Just noticed that you are using the devcontainer.

I haven‘t fixed that yet. Will do that asap. Stay tuned…

nanosonde commented 1 year ago

I also had this for the regular build.

I have fixed this by using the option „--break-system-packages“.

nanosonde commented 1 year ago

Add this option here: https://github.com/nanosonde/sip2rtsp/blob/c36cb1e7b5a125fbf3db1ef144f46446abd33a46/Dockerfile#L122

chip131001 commented 1 year ago

that already exists

Bildschirm­foto 2023-03-19 um 10 59 48
nanosonde commented 1 year ago

that already exists Bildschirm­foto 2023-03-19 um 10 59 48

pip3 install --break-system-packages -r requirements-dev.txt

Would be correct. I have just fixed in the main branch.

chip131001 commented 1 year ago

Ok thanks it works now. I'm having trouble configuring it. How can I set up the test source in scrypted?

nanosonde commented 1 year ago

Just install the ONVIF plugin and manually add an ONVIF camera. Use the IP of the docker host and your configured ONVIF port. Default is 10101. Enter this in scrypted.

nanosonde commented 1 year ago

grafik

chip131001 commented 1 year ago

I did, but I don't see anything in Scrypted. This is what my output looks like in the console. Is that all correct?

Bildschirm­foto 2023-03-19 um 17 28 09
nanosonde commented 1 year ago

I wonder what you currently want to do?

If you are using the devcontainer, then the sip2rtsp python service is not started. This container is for development purposes for the python code. Here you would have to manually start the python service with python3 -m sip2rtsp.

But you do not need to use that if you do not plan to develop something.

Just checkout the repo and run make run or make run_shell to run everything.