question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a Remote Camera

See original GitHub issue

Hi guys.

So I am trying to add a remote camera over WAN, meaning the NVR and the Camera are not in the same network. Everything is working except the recording/live feature and this is because it connects to a default port.

I am running with these options: unifi-cam-proxy --host IP -i IP:8081 --mac '08:a1:89:92:74:c9' --cert client.pem --token 238482h34jj2 hikvision -u admin -p Som3PasS

In Unifi-Video itself I see the camera but when I try to view it Live or set it up I get: INFO Spawning ffmpeg for video2 (wt7S2_08A1899274C9_1): ffmpeg -nostdin -y -stimeout 15000000 -rtsp_transport tcp -i "rtsp://admin:Som3PasS@IP:8081:554/Streaming/Channels/3/" -c:v copy -ar 32000 -ac 1 -codec:a aac -b:a 32k -metadata streamname=wt7S2_08A1899274C9_1 -f flv - | /usr/bin/python3 -m unifi.clock_sync | nc NVR-IP 6666

So it is connecting to rtsp://admin:Som3PasS@IP:8081:554 which is not OK ) Is there a way to change the default RTSP port to another one? Because I am using NAT so the port is 10554. The reason I need this option is because there are 4 cameras there, so I cant just map 554 and 80 from Hikvision to WAN IP, because it will only make one camera to work.

Any input is highly appreciated. Thanks.

Later add Maybe adding a parameter like –port and –rtspport could fix the issue for all types of cameras and connections. So it could be issued like:

unifi-cam-proxy --host IP -i 34.24.24.1 --port 8081 --mac '08:a1:89:92:74:c9' --cert client.pem --token 238482h34jj2 hikvision -u admin -p Som3PasS --rtspport 10554

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
edavriocommented, Dec 22, 2021

Actually we did everything. It even supports Record on Motion and other things. We did a fork of the current repo and we will release it soon.

0reactions
GhostlyCrowdcommented, Jan 22, 2022

@edavrio so this has been marked as stale, in the interest of open source are you going to be submitting a pull request with your improvements?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Photography Tip: How To Set up a Remote Camera - YouTube
Just a quick tip on how to set up and trigger a remote camera wirelessly, and how to rig it up to a...
Read more >
Add remote camera to local NVR | IP Cam Talk
The best way to start is to setup your camera with hik-online so your dns stays tracked by your nvr (not needed if...
Read more >
How to Set Up an IP Camera for Remote Viewing - Reolink
Step 2: Launch the app and enter a unique ID number (UID) to add the camera device. Reolink App View IP Camera Remotely....
Read more >
How to Set Up IP Camera Remote Viewing: Step by Step Guide
To facilitate remote viewing, you simply type in the IP address of your network security camera in your internet browser like you would...
Read more >
Add a remote camera in Xeoma - Felenasoft
Nowadays cameras are installed everywhere, and video surveillance software should be able to work with any camera from anywhere.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found