Optimized Streaming Settings for RTSP, RTMP, NDIⓇ

Поделиться
HTML-код
  • Опубликовано: 17 апр 2018
  • We've got a brand new guide for you on RTSP, RTMP, and NDIⓇ stream settings with our cameras. Tune in today to learn and grab the guide!
    Of first note is that all of these streams have been set to use H.264 compression as it is currently the most widely used protocol. Changing to H.265 or MJPEG, which are also available, will require different settings. So you are likely well aware of what the resolution and frame rate are but may not be as aware of the requirements that coincide with those selections. As we increase the resolution, frame rate, or both, we need a larger pipeline (i.e. more bandwidth) to properly support the connection. Thus, we will increase that pipeline by adjusting the bitrate accordingly, as shown in the chart above. Example: 1920 x 1080 at 60 FPS requires a bitrate or 12,288 Kb/s while the same resolution at 30 FPS only requires a bitrate of 8,192 Kb/s. We are transmitting less information and thus the bitrate can be smaller. PTZOptics Streaming Settings Guide ​(RTSP, NDI and RTMP) Produced on 2018-4-6 by Matthew Davis If there is not enough bandwidth allocated, the network cannot support the set bitrate, or the camera is told to use too high of a bitrate then artifacting will occur. Another setting of interest would be the i-frame interval that relates directly to the H.264 compression and how it will handle your stream.
    When adjusting this setting, you are telling H.264 how many full images or frames (as opposed to a predicted image or frame) to send per second. The lower this number, or shorter the interval, the better chance you have of high quality video without artifacts at the expense of bandwidth. Just as it sounds this is a balancing act. The more predictive frames used, the lower your overall bandwidth usage will be, which sounds great… unfortunately this also means we are allowing H.264 to predict more of the imagery without updated references, full images, which can lead to artifacting or even very strange behavior with subjects moving where they aren’t supposed to be.
    The last setting we’ll be covering is the differences between CBR, Constant Bit rate, and VBR, Variable Bit Rate. VBR is a very enticing technology that, to save bandwidth, will vary the bitrate depending on the complexity of the scene, sounds awesome right? While VBR generally provides better compression and thus higher quality for the same amount of bits, it is not recommended because the peaks in bitrate can result in skips or buffering. In addition, some solutions for viewing the stream can average the incoming VBR resulting in video freezing when an overly complex scene occurs.
    In short, while it may be useful in certain scenarios VBR is not recommended for a professional live stream due to the complexities and unpredictability it introduces. Note that when using multicast these same settings will apply just via a different transport while lowering the impact on the network for multiple viewers / producers
    So in the above recommended settings for use as an NDI source you’ll notice that the only change is to the i-frame interval. The correlation is that rather than generating a new i-frame every second, we will be generating a new i-frame every two seconds. This is to allow NDI™ to manage the stream to provide the low latency and high quality that is synonymous with NDI™. Please feel free to adjust these as needed based on your network conditions, but know that the changes may impact the overall quality of your streaming experience.
    When looking into recommended settings for an RTMP stream that is being delivered to a service such as RUclips or Facebook, it is always best to reference the service providers recommended encoder settings and find the best match based on what the camera is capable of and by network bandwidth limitations you may have. Below are a few examples from some of the popular services to use as a reference:
    PTZOptics Live Streaming Camera Manufacturer focused on HD-SDI, USB 3.0, HDMI and IP streaming cameras. Our RUclips 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 RUclips Channel - / @ptzoptics
    ✓ Join the Giveaway of the Week - ptzoptics.com/giveaway/
    ✓ Free UDEMY Course on how we live stream here: ptzoptics.com/landing/coupons....
    Hashtags: #ptzoptics, #livestreaming, #tech, #videoproduction, #PTZCameras, #streamingmedia, #webinar, #collaboration #wirecast #vmix #newtek #Tricaster #blackmagic #FacebookLive #RUclipsLive
  • КиноКино

Комментарии • 12

  • @SoleskyMelchizedek
    @SoleskyMelchizedek 6 лет назад

    Hi guys. I had been busy on my new membership site making money after learning so much from you. God bless you.

  • @jilesherron
    @jilesherron 5 лет назад

    I have a PTZOptics camera with a software version: SOC v3.1.85 - ARM v1.1.85T
    Webware version: v1.3.0
    I can't see the stream in OBS even though I set everything up to match what you guys have here (with media source, rtsp etc). I can pull it into VLC using the network stream function and the IP address, but I can't get it directly into OBS.
    Also I don't have the H.264 option. Is there a way to update my camera so I can use the extra features?

    • @PTZOptics
      @PTZOptics  3 месяца назад

      Hello!
      Based on your comment about the issues with streaming from a PTZOptics camera into OBS and the absence of the H.264 option, it sounds like the camera's firmware might be outdated. Here are the steps you can take to troubleshoot the streaming issue and update the firmware to access additional features like H.264 encoding:
      1. Check Current Firmware and Update
      Updating the firmware on your PTZOptics camera might resolve the issue with streaming to OBS and enable the H.264 codec option:
      Visit the PTZOptics Website: Go to the PTZOptics downloads page to find the latest firmware for your camera model.
      Download the Latest Firmware: Ensure that the firmware version is compatible with your camera model and follow the instructions carefully to update the firmware. The process typically involves downloading a file, uploading it to the camera via its web interface, and rebooting the camera.
      2. Verify RTSP Stream Settings
      Even with an older firmware, you should be able to stream RTSP into OBS. Since you can view the stream in VLC, the stream should technically also work in OBS. Ensure that the settings in OBS are configured correctly:
      Add Media Source Correctly: In OBS, make sure you add a ‘Media Source’ instead of other sources. Double-check the URL format, which should be something like rtsp://[IP_ADDRESS]:554/[STREAM_PATH]. Replace [IP_ADDRESS] and [STREAM_PATH] with the actual IP address of your camera and the correct stream path (usually something like "1" or "2" for the stream channel).
      No Authentication Issues: If your camera’s RTSP stream is protected by a username and password, ensure these are correctly entered in OBS.
      Network Settings: Make sure there’s no firewall or network setting blocking OBS from accessing the RTSP stream.
      3. Test in OBS Again
      After updating the firmware and confirming the RTSP URL:
      Create a New Media Source in OBS: Rather than modifying the existing source, create a new one to avoid any issues with cache or incorrect settings lingering.
      Use the Auto-Configuration Wizard in OBS: If setting up manually continues to be problematic, OBS's Auto-Configuration Wizard can help adjust your settings based on your intended use (Tools > Auto-Configuration Wizard).
      4. Camera and Network Troubleshooting
      If problems persist:
      Restart the Camera and Your Computer: Sometimes, a simple restart can resolve connection issues.
      Check Network Latency and Bandwidth: Make sure your network can handle live video streaming, which can be bandwidth-intensive, especially at higher resolutions.
      5. Consult the User Manual or Support
      If all else fails, or you encounter problems updating the firmware:
      Review the User Manual: The manual often contains troubleshooting steps specific to your camera model.
      Contact PTZOptics Support: If specific issues arise during the firmware update or if the streaming issue continues, reaching out to PTZOptics support can provide you with direct assistance tailored to your situation.
      By following these steps, you should be able to resolve the issue with streaming to OBS and enable additional features like H.264 encoding through a firmware update.
      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/

  • @offdawallgangotfwg9432
    @offdawallgangotfwg9432 4 года назад

    why isnt my mini mac in safari lets me play videos i can get to, it says cant play because of address starting with "RTSP:"?????

    • @PTZOptics
      @PTZOptics  4 месяца назад

      Hello!
      The issue you're encountering with your Mac Mini in Safari not being able to play videos that have addresses starting with "RTSP:" is due to the nature of the RTSP (Real-Time Streaming Protocol) itself and Safari's capabilities. RTSP is a network control protocol designed for use in entertainment and communications systems to control streaming media servers. It's commonly used for streaming live video feeds, surveillance cameras, and similar applications.
      Why Safari Can't Play RTSP Directly:
      Lack of Direct Support: Safari, like many web browsers, doesn't natively support direct playback of RTSP streams. Browsers typically support HTTP/HTTPS protocols for web content, including videos. RTSP requires a media player that can handle the protocol's demands for streaming content in real time.
      Protocol Differences: RTSP streams operate differently from typical web video content. They often require dedicated media player software that can negotiate the stream setup, control the playback (play, pause, stop), and handle the real-time aspects of the stream.
      Solutions and Workarounds:
      Use a Dedicated Media Player: Applications like VLC Media Player can play RTSP streams. You can copy the RTSP URL from Safari and open it in VLC (or a similar media player) by choosing "Open Network Stream" or a similar option within the player.
      Browser Extensions or Plugins: Some browser extensions or plugins might claim to offer the ability to play RTSP streams directly in the browser. However, the effectiveness and security of such solutions can vary. Always be cautious when installing extensions, especially those handling media playback.
      Convert the Stream (If Possible): If you control the source of the RTSP stream (e.g., a camera or a server you manage), you might have the option to convert the stream to a more web-friendly format using software or hardware solutions. This is more complex and may not be suitable for all situations, especially if you're trying to view a stream from an external source.
      Embedded Web Player: Some services or devices provide an HTML5 web player for their streams that can be accessed via a regular web page instead of directly opening an RTSP stream. Check if the service or device offers such an option.
      Consult Documentation or Support: If you're trying to access a specific service or device (like a surveillance camera), check the manufacturer's documentation or support resources. They may provide specific instructions or software for viewing their video feeds.
      Unfortunately, there's no simple "click to play" solution for RTSP streams in Safari due to the protocol's specialized nature and the browser's limitations. Using a dedicated media player like VLC is one of the most straightforward and reliable methods to watch RTSP video streams on your Mac Mini.
      Thanks for checking out our Channel!
      Learn More: ptzoptics.com/

  • @AlexExplorer
    @AlexExplorer Год назад

    8:30 we use 30/60/120 fps...

  • @rizwanmehmood7691
    @rizwanmehmood7691 3 года назад

    How we can live broadcast simply ip camera direct on Facebook via rtmp? Please reply

    • @PTZOptics
      @PTZOptics  6 месяцев назад

      To live broadcast an IP camera directly on Facebook via RTMP (Real-Time Messaging Protocol), you'll need to follow these steps:
      Requirements
      IP Camera: Make sure your camera supports RTMP streaming. Check the camera's manual or specifications to confirm this.
      Internet Connection: A stable and fast internet connection is crucial for live streaming.
      RTMP Stream URL and Stream Key from Facebook:
      Go to your Facebook page.
      Click on “Live” under “Create” or in the “Post” options.
      In the Live Producer tool, choose “Use Stream Key”.
      Copy the “Stream URL” and “Stream Key”. You'll need these to set up the stream from the camera.
      Setting Up the IP Camera
      Access Camera Settings:
      Access your IP camera’s settings through its web interface. This usually involves entering the camera's IP address in a web browser.
      Configure RTMP Settings:
      Look for a section in the settings related to streaming, broadcasting, or RTMP.
      Enter the RTMP Stream URL from Facebook into the appropriate field.
      Add the Stream Key to the URL, often in the format rtmp://[stream-url]/live/[stream-key].
      Adjust any other necessary settings (like stream quality, framerate, etc.) according to your needs.
      Save and Start Streaming:
      Save the settings.
      Initiate the stream from the camera. Your camera will now start sending the video feed to Facebook.
      On Facebook
      Preview the Stream:
      Back in Facebook’s Live Producer tool, you should see the video feed from your IP camera in the preview.
      If not, check your camera's settings and ensure it’s streaming to the correct RTMP URL and key.
      Go Live:
      Once you see the preview, add any details to your live stream (like a title and description).
      Click “Go Live” when you’re ready to start broadcasting to your audience.
      Troubleshooting
      Connectivity Issues: Ensure the camera and your computer (if applicable) are connected to a reliable internet source.
      Firewall or Network Restrictions: Sometimes, firewalls or network settings can block the stream. Ensure that the necessary ports are open and that RTMP is allowed through your network.
      Compatibility: Double-check if your IP camera’s encoding formats are compatible with Facebook’s streaming requirements.
      Remember, the process might vary slightly based on the make and model of your IP camera and the current interface of Facebook Live. Always refer to your camera's manual for specific instructions.
      Thanks for checking out our Channel!
      Learn More: ptzoptics.com/

  • @sjsielen
    @sjsielen 4 года назад +2

    I Frame interval means how many frames between I Frames. I Frame Interval value of 120 at 60fps means every 120 frames (or 2 seconds) you have an I frame. Please correct this in the video if you can. Thank you, very informative, otherwise.

    • @PTZOptics
      @PTZOptics  6 месяцев назад

      Hello!
      It seems like there's a bit of confusion regarding the I-Frame Interval in video encoding, and I appreciate your effort to seek clarification.
      Let's break it down:
      Understanding I-Frames and I-Frame Interval
      I-Frames (Intra-coded Frames): These are the key frames in video encoding that contain the full image data, not just changes from the previous frame. They are used as reference points for subsequent frames (P-frames and B-frames) to decode the video accurately.
      I-Frame Interval: This term refers to the frequency at which I-Frames appear in the video stream. It is expressed in terms of the number of frames.
      Your Example: I-Frame Interval of 120 at 60fps
      In your example, an I-Frame Interval of 120 at a frame rate of 60 frames per second (fps) indeed means that an I-Frame is inserted every 120 frames.
      Since the video is running at 60fps, 120 frames would equate to 2 seconds (120 frames ÷ 60 fps = 2 seconds).
      Therefore, in this scenario, there's an I-Frame every 2 seconds.
      Importance in Video Streaming
      The I-Frame Interval is a crucial setting in video encoding for streaming.
      A shorter interval (more frequent I-Frames) can improve video quality and make the stream more resilient to packet loss, but it increases the bitrate.
      A longer interval (less frequent I-Frames) can reduce the bitrate but might affect the quality, especially in fast-moving scenes or if there's packet loss.
      It's great to see such attention to detail, as understanding these technical aspects is crucial for optimal video encoding and streaming quality. If you have more questions or need further clarification, feel free to ask!
      Thanks for checking out our Channel!
      Learn More: ptzoptics.com/

  • @alexnguyen8518
    @alexnguyen8518 5 лет назад

    Is it possible to use a PS3 and PC config for NDI streaming??

    • @PTZOptics
      @PTZOptics  3 месяца назад

      Hello!
      Using a PS3 in conjunction with PC for NDI® streaming involves a few additional steps and considerations because the PS3 does not natively support NDI®, which is primarily used for video production and streaming environments with network-enabled devices.
      Here’s how you can set up your PS3 and PC configuration to utilize NDI® for streaming:
      Step 1: Capture PS3 Video and Audio
      First, you need to capture the video and audio output from your PS3. This is typically done using a video capture card.
      Connect the PS3 to a Capture Card:
      Use an HDMI cable to connect your PS3 to an HDMI capture card. Note that PS3 uses HDCP (High-bandwidth Digital Content Protection) on its HDMI output, which may block video recording and streaming through some capture cards. You may need to use a component cable and component to HDMI converter if your capture card does not support HDCP stripping.
      Ensure the capture card is installed and recognized by your PC.
      Step 2: Convert Captured Video to NDI®
      Once you have the video feed from your PS3 going into your PC via the capture card, you can convert this feed into an NDI® stream using software that supports NDI® output:
      Use Broadcasting Software like OBS Studio:
      Open OBS Studio (which is free and supports NDI® with a plugin).
      Add the capture card as a source in OBS by clicking the ‘+’ (add) button under the ‘Sources’ box, and selecting ‘Video Capture Device.’ Configure it to capture the video from the PS3.
      Install the OBS-NDI plugin if not already installed. This plugin can be downloaded from GitHub and allows you to output an NDI® stream from OBS.
      Enable NDI® Output:
      Go to ‘Tools’ in OBS and select ‘NDI® Output Settings.’
      Check ‘Enable NDI® Output’ and name your output to identify it in the network.
      Step 3: Use NDI® Stream
      With NDI® output enabled in OBS, any NDI®-enabled software or hardware on the same network can now receive the PS3’s video feed from your PC:
      Use NDI® Studio Monitor to view the stream on another computer.
      Integrate the NDI® stream into production software like NewTek’s TriCaster or any other system that accepts NDI® inputs.
      Additional Notes:
      Ensure all devices are on the same network and configured to communicate with each other.
      Check network bandwidth as NDI® can consume significant bandwidth, especially at higher resolutions and frame rates.
      This setup allows you to stream and record PS3 gameplay using NDI® technology, providing flexibility for broadcasting and video production scenarios.
      Thanks for checking out our Channel!
      Learn More: ptzoptics.com/