How to Live Stream to YouTube, Facebook Using an Amcrest IP Camera
This article will provide insight on how you can live stream your Amcrest camera to streaming platforms such as Youtube, Facebook, Twitch, etc, using castr,io. This article is applicable to all Amcrest cameras with a functioning IP address and RTSP capabilities.
Step 1: Visit the castr.io web site and sign up for an account. To signup for an account, go to https://castr.io/#pricing
On the castr.io website you will notice 3 different plans: a free plan, which provides a single stream with up to 5 publishing locations, multiple ingest (RTSP, RTMP & More), 1 Facebook channel or 1 custom RTMP. The second plan will be the $9.99/mo broadcast x2 plan which provides 2 streams, 10 publishing locations, 2 Facebook channels or 2 custom RTMP, and IP camera restreaming. The third will be the unlimited plan which is $29.99 which offers streaming from unlimited locations, 5 Facebook channels or 5 Custom RTMP and IP camera restreaming.
In this example, we will be using the free plan.
Step 2: Once you have finished signing up for your castr.io account, click on Add Stream.
A dropdown menu will appear. If you are going to stream to multiple sites, click on New Restream, if you are live streaming to your own player click on New Live Stream. In this example, we will click on New Restream. Then, title your stream in the Stream Name field and select the hosting region that you are located in and click Save.
Step 3: The status will currently say, offline. To continue we need to add the platform you will be streaming on. Click on the Add Platform button.
Step 4: Select the platform you would like to publish your stream to from the provided list.
Step 5: You will notice a few options to connect in the next menu. You can connect with your platform's account directly or with a stream key from the server. For efficiency, it is highly recommended to use a dedicated stream key. Click on, Setup With Server/Key.
To access your stream key, go to your platform's account and access the stream key from your account's admin settings. For example, on YouTube, go to your Creator Studio and in the Live Streaming field, click on Events. In the events menu, click on New live event.
In the Info & Settings menu, give the stream a name and fill out any other relevant information and click on Create Event.
Next, click on Ingestion Settings and click select which stream key you will be using. In this example, we will be using a Single-use Stream key. Follow the steps listed on the YouTube menu. Copy the Stream Name field and navigate back to the castr.io dashboard.
Step 6: In the castr.io dashboard, paste the information from the stream name field into the Streaming Key field and click Save.
Step 7: Next, you will need the RTSP information from your camera that castr.io is going to pull from to stream your video. The format of the RTSP information will be as follows: "rtsp://UserName:Password@IPAddress/cam/realmonitor?channel=1&subtype=0 be sure to change "UserName:Password@IPAddress".
Note: To find your external (Public) IP, go to Google and type in What's My IP? Please note, the public IP will change if the router or device has been reset unless a static IP is set. Additionally, subtype=0 is for substream (lowerend resolution, and subtype=1 will be the main stream of your camera feed.
Step 8: Next, you will need access to your router so you can port forward the Amcrest camera's TCP and UDP ports to 554. This will make the feed accessible from the internet. Since every router is different, please consult your particular router's manufacturer or Google on how to port forward on your particular model router. Be sure to add the camera to your router and set the TCP and UDP ports to 554 and save.
Step 9: Navigate back to the castr.io dashboard and change the stream from Publish to Pull. Then, in the Pull Source field, enter the RTSP IP Information described in step 7 and click Save.
Allow the stream to pull and the URL to save. Once the media has loaded, your stream will be active and will appear in the stream window to the right.
Step 10. Click on the restream toggle switch, next to the add platform button, to allow the stream to stream to your selected platform.
To view the stream, navigate back to your platform to preview the stream. For instance on YouTube, click on Live Control Room, click on Preview, and then click on Start Streaming. Click Ok and click on View on Watch Page to view the stream.
For a detailed video on how to perform this task as well, click here.