Це відео не доступне.
Перепрошуємо.
RTSP Streaming with OBS
Вставка
- Опубліковано 18 сер 2024
- RTSP Streaming Inputs with OBS + PTZ Camera Controls
Learn how to set up RTSP camera streams inside OBS (Open Broadcaster Software) in this short 5-minute video. This is the easiest way for many people to use IP cameras with OBS. Using just a single Ethernet cable, you can stream video directly into your OBS software using the Media Source input selection. The Media Source selection for inputs in OBS is usually known for playing out local media files but it can also be used for ingestion of live video streams coming from your LAN (local area network).
Once you have clicked the plus button in your OBS scene to bring in a "Media Source" you can name the source. If you are using multiple RTSP camera streams I highly recommend using a name you can remember and consider adding the IP address to the name. Since you need your IP camera's IP Address to pull an RTSP stream from the device it's a nice time saver for the future. In fact, many times when you are dealing with multiple cameras it is handy to have the static IP addresses set up in sequential order. When you open up the properties for your OSB media source input you can uncheck all the default boxes that are set up for local media. You want to use the "input" field to type in your RTSP video feed information which is usually done with "RTSP://" and then the IP address of your camera followed by the RTSP stream number. For PTZOptics cameras this would be "/1" for the high definition stream and "/2" for the standard definition stream. Therefore we used our camera's IP address which was 192.168.1.60 like this "rtsp://192.168.1.60/1" to pull in the full 1920x1080p 60fps RTSP stream.
When it comes to optimizing your RTSP settings for OBS I will refer to our latest article on the subject here. As you know from the video the PTZOptics cameras are capable of producing two simultaneous RTSP video feeds (one high definition and one low definition) that can be set up to work perfectly with OBS. For this video, we have the RTSP settings using h.264 video encoding with a resolution of 1920x1080p. The bit rate is set to 12,288 which allows us to use a frame rate of 60 frames per second with high-quality video. We are using an I keyframe interval of 120 with CBR (Constant Bit Rate) enabled.
Learn how to optimize your RTSP Settings for PTZOptics Cameras here - • Optimized Streaming Se...
We have a picture in picture setup shown with OBS to share how quickly and easily we can take control of multiple cameras inside OBS. We can also connect to the PTZOptics cameras using the static IP address for pan, tilt, and zoom controls. The PTZOptics OBS PTZ camera controller is available for download on the OBS forums here. The PTZ Camera controller includes the ability to control up to 8 unique PTZ cameras inside OBS and call camera preset positions easily within the live streaming software. We demonstrate control in this video briefly but also have a link to this video for more information.
One important factor to consider with RTSP video streaming is latency when paired with an additional audio source. You can ingest audio into your RTSP streaming h.264 encodings directly in the camera using the 3.5mm audio input. If you do this there will be no need to delay your audio inputs in OBS. But if you are trying to match the audio from your mixer with the video coming from the RTSP stream on your network there may need to be a slight delay added. You can do this in the Advanced Audio Properties in OBS. OBS has an audio setting called "Sync Offset" which is controlled in ms (milliseconds). You can offset or delay your incoming audio in order to sync up your RTSP video that may be coming in anywhere from 100 to 1,500 milliseconds late when compared to your audio. Start trying to delay your audio by just 250ms. If that works you should be just fine using CBR (Constant Bit Rate) as your network will do its best to deliver a healthy video stream consistently. But, you may need to add additional delay to match up to your RTSP video stream up to 1-2 seconds. When doing this remember that the
PTZOptics Live Streaming Camera Manufacturer focused on HD-SDI, USB 3.0, HDMI, and IP streaming cameras. Our UA-cam channel features live broadcasting tips, tricks, and tutorials for live streaming and more.
✓ Watch our Latest Friday Live Stream: • NDI.CLOUD - SIENNA NDI...
✓ Subscribe to our UA-cam Channel - / @ptzoptics
✓ Join the Giveaway of the Week - ptzoptics.com/g...
✓ Free UDEMY Course on how we live stream here: ptzoptics.com/l...
Hashtags: #ptzoptics, #livestreaming, #tech, #videoproduction, #PTZCameras, #streamingmedia, #webinar, #collaboration #wirecast #vmix #newtek #Tricaster #blackmagic #FacebookLive #UA-camLive
Good video; Short and to the point
Glad you liked it!
Awesome Job buddy.....
Perfect!
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
1:16 Why unselect "Use hardware decoding when available"? Isn't this setting supposed to use your GPU to offload the CPU hence lower temp and fans during transcoding?
That's a great point, he might have done that without considering that! - Lindsey :)
I believe video over a LAN has more delay than video over SDI. What is the recommended audio delay to sync audio and video? I have 500 ms max on my mixer.
RTSP can add more latency than 500ms. It depends on your network. SDI will be much less. With SDI we are talking about 50-60ms.
Only work in PTZOptics cameras? I have a PTZ camera but of other brand.
Mauro Sosa - yes only PTZOptics cameras
Mauro Sosa - yes only PTZOptics cameras
The RTSP Stream should work, i doing this + obs even with the pi cam. The plugin ... you need to try.
thanks
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
Can the camera be controlled in OBS while connected through USB?
You can control the camera via USB. But that is for use with the PTZOptics app only at this time.
Same question! for connect a controler joystick
Hi do yuo have experience with Dahua ip camera for PTZ control inside OBS ? I follow your instructions but i cant manage PTZ controls
Thanks
Hey there, the PTZOptics OBS plugin is designed to work with PTZOptics cameras. You might want to reach out to support@ptzoptics.com or ask this question in our Facebook User Group! facebook.com/groups/ptzopticspals
Hope this helps :) - Lindsey
Hello, I modified 1st stream resolution in browser, but camera (12x version) later on send 1920x1080 stream. Why? :(
Hello Tom, Did you reboot your camera after making the change?
@@PTZOptics Hello, Not, because resolution and bitrate change not big change :) Many IP Cam not required reboot if I changes resolution and bitrate. If CODEC changes yes, but I not changed CODEC. So, message "Please reboot" after I clicked Apply? ;) Or auto reboot? Of course after reboot working fine. Thanks! I have one more small problem, DHCP not working, only manual IP, but I write mail to your support... :)
@@Tomsojer04 Try using your IR remote with #*4 to quickly turn the camera to DHCP. Then reboot the camera.
Thank you. It is working but it lags in OBS.
yes, 1 second around.
only works with Optics?
Should the PTZ control work with any ONVIF compatible PTZ?
So the plugin being shown uses VISCA over IP for control over the PTZOptics camera, that being said the ONVIF control present on a PTZOptics camera should function with most ONVIF control solutions such as ONVIF Device Manager and many more. For more information on taking control over your PTZOptics camera please feel free to visit our support forum or by visiting our Facebook user group
Help, I followed your setup with my Lumix Bgh1 and nothing. I see nothing.
If you have the username and password, try it like this: rtsp://username:password@ip/cameraurl
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
Please, my obs studio is not showing
Did you get it to work?
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
RE: "You can upgrade your cameras to NDI..." were you referring to some way to enhance existing cameras already owned? Like a flash of the firmware? Or were you referring to purchasing new cameras?
There is an NDI license that can be purchased for existing Gen 2 PTZoptics cameras.
Thanks. Are you talking about the $600 licenses that are sold online at stores such as Adorama & B&H? (See link below for example.) If so, is that $600 PER camera? If so, what benefits are gained by doing so? For those of us new to concept of IP over ethernet and particularly NDI, more info is needed. There is much confusion. The above video seems to show the only difference between generic IP over ethernet and NDI being 2 seconds between i-frames v. 1 second between i-frames, thus reducing bandwidth needs, while increasing risk of artifacts, yet that risk is somehow mitigated by use of NDI, and yet that mitigation method was not explained in the video.
www.adorama.com/ptg2ndiupgra.html?gclid=CjwKCAjw7vraBRBbEiwA4WBOn8B6OEHDLNKoMyeT0m5lQCLeaNujAN0og7mgbHqAMBZIsWKKkoE0OxoChBAQAvD_BwE
www.bhphotovideo.com/c/product/1352034-REG/ptzoptics_pt_ndi_fwup_ndi_firmware_upgrade_for.html?ap=y&gclid=CjwKCAjw7vraBRBbEiwA4WBOn4v5PEHMtWzKWTMGU6LUkKn7Z61LB8D2WDW-gFQnQc_E5QH9Ozx9dBoCwjIQAvD_BwE&smp=y
Yes, that would be it. It provides a bunch of upgraded functionality including low latency video streaming.
How can you use them without lag considering they are used for livestreaming?
We would recommend posting this more technical question to our support forum help.ptzoptics.com/support/discussions or to our Facebook user group facebook.com/groups/ptzopticspals to ensure the issue can be remedied in a timely fashion. To offer one (1) suggestion though, I would make sure that after adjusting the video settings on the PTZOptics camera that you reboot the camera to fully commit those adjustments. If that does not resolve the issue please post this to the forums mentioned above or to contact the PTZOptics support team at support@ptzoptics.com :)
Just an odd question, so if I take the RTSP stream into OBS and watch it through there, would it be sufficient enough to control the camera through? We are currently evaluating our options in our budget for my school, so we are trying to figure out how to watch and have a dedicated screen to control the camera if we want to go full IP with it.
If you check out our new PTZ control applications we offer video preview. It should be the same latency as OBS which is roughly 1/2 second.
what bout amcrest or eufy cameras?
Yes, both Amcrest and Eufy cameras can typically stream via RTSP (Real-Time Streaming Protocol), and you can use this feature to integrate their video feeds into OBS (Open Broadcaster Software), but PTZOptics cameras do it better.
I have a Question. If I use any IP that only supports Android and Iphone, is it still possible to capture the IP Camera onto OBS Studios from the PC?
As long as it is an RTSP stream it should work
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
How can I add sound from our sound system into the stream
in the audio mixing you can select desktop áudio and get it, maybe try to look for a basic obs video
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
Hey Paul. Love your work. I Recently bought it 30 times Zoome IP camera on Amazon. The software that it comes with is outdated and you cannot view it on a web browser especially on a Mac. I’ve tried for six hours connecting it to my system and was not successful. Is there a way to contact this camera without using the given software that came with it if so which one would you recommend where I can bring It straight into OBS and set up RTS live feed. Thank you in advance
Hey Terenzio, there are a couple ways. The PTZOptics Mac software has a video viewer. Also, you can bring it straight into OBS if you would like. Also, you should upgrade the firmware. The support team can help you get the video preview working in a web-browser if that's what you want.
I did try that by putting in the ip but nothing happened. I was hoping there was a way to set up the cameras rts ip stream in a Mac compatible software. I will try the PTZ Optics for Mac again. Thank you for your quick reply.
Rtsp stream dont freeze after few hours in OBS? Also this plugin works with Securus IP Cameras?
i am using a security ip cam and it's working fine...
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
is it runs 30fps and the audio is sync? thanks
Hello!
Streaming RTSP feeds from PTZOptics cameras into OBS (Open Broadcaster Software) can indeed support 30fps (frames per second) and synchronized audio, but the actual performance and synchronization can depend on several factors:
Camera Configuration
Frame Rate: Ensure the PTZOptics camera is configured to stream at 30fps. This setting is typically adjustable in the camera's web interface.
Resolution and Bitrate: The resolution and bitrate settings on the camera can also affect the stream's performance. Higher resolutions and bitrates offer better quality but require more bandwidth and processing power, which could impact performance on the receiving end.
Network Conditions
Bandwidth: RTSP streams, especially high-definition video at 30fps, require a stable and sufficient network bandwidth to transmit smoothly without packet loss or delays.
Latency: Network latency can affect the synchronization between audio and video. A wired network connection is recommended for stability and to minimize latency.
OBS Configuration
Source Settings: When adding the RTSP feed as a media source in OBS, ensure you have the correct URL and that the "Use hardware decoding when available" option is selected, which can help with performance.
Sync Offset: If you notice an audio sync issue, OBS allows you to adjust the audio sync offset for each source. You can manually adjust the timing to synchronize the audio with the video.
Performance Considerations
Hardware: The performance of your computer can impact the ability to stream and record video at 30fps. Ensure your hardware (CPU, GPU, and RAM) is sufficient to handle the processing load.
Software Settings: Other OBS settings, like the output resolution, frame rate, and encoding options, should be configured to match your streaming goals without overloading your system.
Testing and Adjustments
Testing: It’s crucial to test your setup before going live to ensure the video streams at the desired frame rate and the audio is in sync. Monitoring the stream on a separate device can help identify any issues.
Adjustments: Depending on your test results, you may need to adjust camera settings, OBS source properties, and network configurations to optimize performance and synchronization.
In summary, while PTZOptics cameras are capable of streaming RTSP feeds at 30fps with synchronized audio in OBS, achieving optimal results requires proper configuration of the camera, OBS, and ensuring that your network and computer hardware are up to the task. If issues arise, adjusting settings and testing different configurations will be key to finding the best setup for your streaming needs.
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
@@PTZOptics thanks! very helpful
Hello, I’m a noob with a very non noob job and I’ve been assigned a task that requires multiple video streams coming in from url links we do not control but have legal access too. We need to be able to switch between each source. Can I set the input to url based camera feeds this same way or must it be the direct IP address? Like I said I’m quite the noob
It sounds like you need multiple cameras and an easy way to switch between them? You want to stream these to a site like UA-cam or many you need a private viewing system?
Hello, is this working over the internet or just over the local network LAN? I am looking for a way to bring in a RTSP feed to OBS over the internet. My livestream encoder can do RTSP and UDP. Is there a way to send the feed to OBS?
You'd need to setup an SSH tunnel or use a VPN to the source network. In that way it will appear on a "local" network.
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
Thanks for your help!
Has anyone had the problem where the feed shows in the "Properties for Media Source" window but not in the preview window after clicking OK. This is maddening when you follow the instructions perfectly and it doesn't work
I'm using a 20x sdi PTZOptics camera
Hello!
It sounds like you're experiencing an issue where your PTZOptics camera's RTSP stream is visible in the "Properties for Media Source" window in OBS but does not show up in the main preview window after setting everything up. This can be frustrating, but there are a few common solutions to try that can resolve this issue:
Check Your Network Connection: Ensure that your PTZOptics camera and the computer running OBS are on the same network and that the network allows for the necessary communication between devices. Some networks have restrictions that might prevent RTSP streams from being properly transmitted.
Verify RTSP URL Format: Double-check the RTSP URL you are using. For PTZOptics cameras, the format is usually rtsp://[camera IP address]/1 (for high definition stream) or rtsp://[camera IP address]/2 (for standard definition stream). Make sure there are no typos in the IP address or the URL format.
Firewall and Antivirus Settings: Sometimes, firewall or antivirus software on your computer can block the stream. Ensure OBS is allowed through your firewall and that your antivirus is not interfering with the stream.
Update OBS and Camera Firmware: Ensure that both OBS and your PTZOptics camera firmware are up to date. Outdated software can sometimes cause compatibility issues.
Use VLC to Test RTSP Stream: To check if the issue is with OBS or the camera stream itself, try opening the RTSP stream in VLC Media Player. If it works in VLC but not in OBS, the issue is likely with OBS settings. If it does not work in VLC, there might be an issue with the camera or network settings.
Re-add the Media Source in OBS: Remove the media source that's not working and add it again. This can sometimes resolve the issue.
Adjust OBS's Hardware Acceleration Settings: In OBS, go to Settings > Advanced and look for hardware acceleration options. Experiment with enabling or disabling these settings to see if there's an impact on your stream visibility.
OBS Studio vs. OBS Classic: If you are using OBS Classic, consider switching to OBS Studio if possible. OBS Studio is more up-to-date and might handle RTSP streams better.
If after trying these steps, you're still experiencing issues, it might be helpful to consult the PTZOptics Knowledge Base for more detailed information or reach out to their technical support team directly. They might have additional insights specific to your model and setup scenario.
Please reach out to our PTZOptics Support Team
Support Numbers: 833-888-9706 or 484 593 2584
Monday -Thursday: 8am to 6pm EST
Friday: 8am to 4pm EST
Not open Saturday or Sunday.
Community Portal: community.ptzoptics.com/s/
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
@@PTZOptics Found the solution a looooong time ago.
how can i connect dvr to obs? i cant connect it with rtsp! but i see my dvr screen in internet explorer
Hello!
Connecting a DVR (Digital Video Recorder) to OBS (Open Broadcaster Software) for streaming or recording purposes usually involves capturing the video feed from the DVR and inputting it into OBS. If you're able to see your DVR screen in Internet Explorer, it suggests that your DVR is accessible over the network and potentially capable of streaming video using protocols such as RTSP (Real-Time Streaming Protocol). However, if direct RTSP streaming to OBS is not working or not supported by your DVR, there are alternative methods to achieve this connection.
Understanding the Challenge with RTSP and DVRs
RTSP Support: Not all DVRs may support RTSP streaming in a manner that OBS can directly connect to. The DVR's RTSP stream needs to be properly configured, and OBS needs the correct URL to connect to it.
Network Configuration: Ensuring the DVR is correctly configured on your network and that any necessary ports are forwarded or accessible within your local network is crucial.
Alternative Methods to Connect DVR to OBS
Web Browser Source in OBS:
Since you mentioned being able to view the DVR screen in Internet Explorer, one workaround is using the Browser source option in OBS to capture the web interface of your DVR.
In OBS, add a new source by choosing "Browser" and enter the URL you use to view the DVR in Internet Explorer. Adjust the size and crop as needed to display just the video feed.
Capture Card:
If your DVR has an HDMI or composite video out, you can use a capture card or video capture device to connect the DVR's video output directly to your computer.
Connect the DVR's output to the capture card, then add the capture card as a source in OBS. This method provides high-quality video input into OBS.
Software Solutions:
Use software that can receive the RTSP stream from the DVR and then either display it as a virtual webcam or re-stream it in a format that OBS can capture.
Tools like VLC Media Player can open RTSP streams and re-stream them, but setting this up requires some configuration.
Direct RTSP Stream URL:
If your DVR supports RTSP but you're having trouble connecting, ensure you have the correct RTSP URL format, which typically looks like rtsp://[USERNAME]:[PASSWORD]@[IP_ADDRESS]:[PORT]/[PATH]. You might need to consult your DVR's documentation or support to get the exact URL.
In OBS, you would add this as a "Media Source" and input the RTSP stream URL.
Check for Software/Firmware Updates:
Ensure both your DVR and OBS are up to date. Sometimes, compatibility issues are resolved in software or firmware updates.
Additional Tips
- Check DVR Documentation: Your DVR’s user manual or online support might have specific instructions or the RTSP URL format you need.
- Network Security: Be mindful of security implications when exposing your DVR to the network, especially if configuring port forwarding for external access.
- Given the variety of DVR models and configurations, if these general tips don't resolve your issue, you might need specific guidance based on your DVR's make and model. If you provide the model of your DVR, I can offer more tailored advice or check if there's related information in the documents provided.
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
Where I find '1 camera--> multiple virtual streams?' Thanks
you mean sub cameras ? ex: 192.168.0.55:554/Streaming/channels/101 (change 101 for 102,103,etc) / or 201 for a second in the same adress
Marloco Necromancer How can I have multiple virtual ANGLES with 1 physical camera?
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
Delay 3second (Video rtsp (obs) vs real), why?
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
I am having trouble getting the stream. When I pick up the stream from VLC player it asks for username and password. When I try through OBS... I just get nothing and a black screen. Any ideas?
if you have the username and password, try it like this: rtsp://username:password@ip/cameraurl
@@Morpheus852 That worked! Thanks!
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
how connect a phone with android?
Hello!
To stream video from an Android phone to OBS (Open Broadcaster Software) using RTSP (Real-Time Streaming Protocol), you can follow a multi-step process. This involves setting up your Android phone as an RTSP server, which then can be connected to OBS as a media source.
Here’s a general outline of how to do it:
1. Install an RTSP Server App on Your Android Phone
First, you need an app that can turn your Android device into an RTSP server. There are several apps available on the Google Play Store for this purpose, such as "IP Webcam" or "LiveDroid". Download and install one of these apps on your Android device.
2. Configure the RTSP Server App
Open the app and go through the settings to configure your stream. This typically involves setting the video source (camera), audio source (microphone), and stream quality settings. Look for the RTSP server section within the app and make sure it’s enabled. The app should provide you with an RTSP URL (e.g., rtsp://[Your_IP_Address]:[Port]/[Path]). Make sure to note this URL, as you will need it to connect OBS to your phone.
3. Connect Your Phone and Computer to the Same Network
Ensure that both your Android device and your computer are connected to the same network. This is crucial for OBS to be able to access the RTSP stream from your phone.
4. Set Up OBS to Receive the RTSP Stream
Now, open OBS on your computer and do the following to add your Android device’s video feed:
Click on the “+” icon in the “Sources” box at the bottom of the OBS window.
Select “Media Source” from the list of sources.
In the window that opens, uncheck “Local File” to enable streaming from a network source.
In the “Input” field, enter the RTSP URL provided by the server app on your Android phone.
Click “OK” to add the source. OBS will now attempt to connect to the RTSP stream from your Android phone.
5. Start Streaming
With the RTSP stream from your Android phone now added to OBS, you can include it in your scenes and start streaming or recording as per your requirements.
Troubleshooting Tips
If you encounter connectivity issues, double-check the RTSP URL and ensure there are no typos.
Make sure your firewall or antivirus software on your computer is not blocking OBS or the RTSP stream.
Ensure the RTSP server app on your Android phone is not being restricted by battery optimization settings that may affect its operation in the background.
By following these steps, you should be able to successfully stream video from your Android phone to OBS using RTSP.
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
How do you add username and password for an RTSP stream, please?
You should not need to add the user name and password. Just the RTSP string as shown in the video
@@StreamGeeks Thanks, but the camera's stream requires authentication.
I ended up finding a workaround which is to do the RTSP stream in VLC and use OBS's VLS Input source.
If you have the username and password, try it like this: rtsp://username:password@ip/cameraurl
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
how do i find my camera wifi IP adress?
Hi, I use an iphone app "IP Scanner" there is probably an andriod version too. Or you should be able to access you router and it should tell you what devices are connected.
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
can u do without these annoying swishes ? it destructs
Thanks for checking out our Channel!
Learn More: ptzoptics.com/
did not work for me at all
if you have the username and password, try it like this: rtsp://username:password@ip/cameraurl