Besides being a Video Management System, Blue Iris is also a Streaming Server. This allows users to share their camera feeds externally. The best way to understand how to leverage BI's streaming services is via the following use cases.
The most common endpoint for BI webcasting is the web interface (UI3). The Blue Iris Web Interface webinar walks through the user interface and all its features/functionality.
See Web Interface (UI3) gotchas article for learnings from past tickets.
Webcasting (video streaming) Pipeline
Standard streaming pipeline: IP Cameras -> Media Server -> Endpoint
- IP Cameras
The process starts with a video capture device otherwise known as a IP camera. The camera is dedicated hardware that usually captures 15-30 frames per second.
IP Cameras are high performance computers which is why they are so expensive. Compression algorithms are responsible for shrinking each frame to manageable chunks which can be transported over the internet. H.264 and H.265 are standard compression algorithms supported by Blue Iris.
Packaging involves bundling all the compressed frames into manageable sizes that can be transported over the network. Think of packaging as grouping 1-3s of video frames into one chunk of data that is transported across the network. HLS, MPEG DASH, RTMP and RTSP are all common protocols for video streaming.
- Network: Responsible for moving the data from cameras to Blue Iris.
- Blue Iris. Media server + Video Management System
Blue Iris is also a media server. Media servers can take streams in one format, for example RTSP from a camera and convert them to another format, for example, RTMP so that users can, for example, share their camera streams elsewhere such as YouTube. Media servers are responsible for taking video/audio inputs and streaming the content to various endpoints.
- And the final destination is the endpoint playing the video, for example a browser on a laptop, a mobile device, a TV, a gaming device etc.
Source -> Decode -> Encode -> Endpoint
- IP Cameras = Source
- Media server = Decode + Encode
- Endpoint = Endpoint
Blue Iris Web server
Every time a user accesses BI via a remote endpoint (mobile app, web browser), a connection is made between the BI web server and the endpoint.
Web server streams
BI allows for three types of streams from the web server. Global settings -> Web server tab -> Advanced.
Web server encoding settings
Global settings -> Web server tab -> Advanced -> Configure button
H.264 Encoding Settings
- H.264 video encoding
- Quality: Value from 0 - 100. Lower the value, lower the quality. The marginal difference in quality after a certain point is minimal. For example, 100 does not produce an image that is twice the quality of a 50 setting. In most cases, quality = 50 is plenty good.
- Rate control: If selected, you are choosing a Constant Bit Rate (CBR). Choose if you have bandwidth concerns.
If unchecked, you are using a Variable Bit Rate (VBR).
- Frame type layout
Maximum keyframe interval (GOP): 300
Maximum B-frames between P-frames: 0 (only applies to Main profiles or above)
- Profiles: H.264 provides features that are encapsulated in profiles.
Baseline restricts the encoder to certain basic features only. Baseline can easily be played back on most devices. Main and High add features on top of Baseline. Baseline profiles were widely used for mobile devices. However, now more and more mobile devices support Main or High profiles.
Main: B frames (above) are only allowed in the Main profile or above. They can be used to save on bandwidth but harder to decode. Widely used for web streaming.
High profile is often used in broadcasting. Used on high definition TVs. Also adopted by the Blu-ray disc storage format.
- Presets: Presets are a collection of options that will provide a certain encoding speed to compression ratio. A slower preset will provide better compression. This means that, for example, if you target a certain file size or constant bit rate, you will achieve better quality with a slower preset. Similarly, for constant quality encoding, you will simply save bitrate by choosing a slower preset.
- Audio: AAC or MP3
- Bitrate (kbps): 192
YouTube - Streaming
Use case: Pushing Blue Iris live camera stream(s) to YouTube's media server via RTMP.
YouTube provides URLs to connect to 3rd party software such as Blue Iris.
BI setup is just as simple. Camera settings -> Webcast tab.
You do need to supply the correct stream settings that will work with YouTube.
- Audio: Set to AAC. 128 kbps
- Max bitrate (kbps): 2048. YouTube prefers 9500 kbps so go higher if network can support bandwidth.
- Maximum keyframe interval (GOP): 60
- Profile: main
- Preset: superfast
- Zero frame latency: Unchecked
- Resize output frame width x height: Checked. 1280 x 720. YouTube prefers 2560 x 1440 (double 1280 x 720) so go higher if network can support bandwidth and camera has the resolution. No point increasing the resolution if your camera is 1 MP (1280 x 720).
Display BI streams on your website Coming soon!
Scenarios: Zoos live streaming animal footage via their website
Embedded Media Players Coming soon!
Scenario: Play live streams on setup boxes such as XBox.
Amazon Echo Show + Monocle Coming soon!