Blue Iris Security Camera Integration

Hi - In Blue Iris, I have 4 cameras set up, with an HD stream that records only when there is motion and an SD stream which is recording 24x7. I do this so I have 24x7 ok quality recording and HD recording when there is motion for better resolution. For the HD streams, I set up a group in Blue Iris called AllCams. This is my entry in Channels using the AllCams group:

#EXTINF:-1 channel-id="All Cameras" channel-number="1.4" tvg-name="AllCam" tvc-guide-title="All Security Cameras" tvc-guide-description="Security Cameras" tvc-stream-vcodec="h264",AllCam
http://user:[email protected]:81/h264/AllCams/temp.m3u8

I am struggling getting BI working as a custom channel. I read above and tried to mimc it as much as possible.

I have individual channels working streaming directly from each camera. I am trying to use BI to have 1 channel as a view of all cameras. I created the AllCamsHD group for this purpose. Here is my text string:

#EXTINF:-1 channel-id="All Cameras" channel-number="000" tvg-name="AllCamsHD" tvc-guide-title="All Security Cameras" tvc-guide-description="All Security Cameras" tvc-stream-vcodec="h264",AllCamsHD
http://user:[email protected]:81/h264/AllCamsHD/temp.m3u8

And here my logs...
2021/04/14 16:06:57.572851 [TNR] Opened connection to M3U-Cameras for ch000 AllCamsHD
2021/04/14 16:06:57.574028 [HLS] Starting transcoder for channel 000 from 192.168.0.18 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
2021/04/14 16:06:57.585265 [HLS] ffmpeg: ch000-dANY-ip192.168.0.18-remux: pipe:: could not find codec parameters
2021/04/14 16:06:57.647205 [HLS] Couldn't generate stream playlist for ch000-dANY-ip192.168.0.18: Stream stopped
2021/04/14 16:06:57.647316 [HLS] Stopping transcoder session ch000-dANY-ip192.168.0.18
2021/04/14 16:06:57.647352 [TNR] Closed connection to M3U-Cameras for ch000 AllCamsHD
2021/04/14 16:06:57.647516 [HLS] Probe failed for live stream after 73.099161ms and 0 bytes

Any Suggestions?

Try opening your URL in VLC. I can take my URL and put it in VLC and it opens. It might be an easier way for you to troubleshoot this. Maybe you get a better error from VLC.

Try this for the link:

rtsp://user:[email protected]:81/AllCamsHD

instead of

http://user:[email protected]:81/h264/AllCamsHD/temp.m3u8

I do notice that when I load the link in VLC it comes up almost instantly. When viewed through Channels, it takes almost 15 seconds for the feed to show up. It also only seems to work when I am on my local network. While I can pull up the individual camera feeds remotely, the view all cameras link times out. It seems Channels gives up after 15 seconds and no feed. Not sure why VLC can pull it up almost instantly and Channels can't.

The remote viewing wasn't a big issue for me since I mainly wanted to view it on my TV while at home anyway. I can also use the BlueIris viewer when I am remote.

Both the HTTP and the RTSP strings shown above stream in VLC fine. Neither of them work in Channels.

Here are the logs for the rtsp stream.

2021/04/15 07:26:28.073757 [TNR] Opened connection to M3U-Cameras for ch000 AllCamsHD
2021/04/15 07:26:28.074887 [HLS] Starting transcoder for channel 000 from 192.168.0.18 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
2021/04/15 07:26:28.165434 [HLS] ffmpeg: rtsp-All Cameras:  [rtsp @ 0x5917880] method SETUP failed: 461 Unsupported transport
2021/04/15 07:26:33.956878 [HLS] ffmpeg: rtsp-All Cameras:  [mpegts @ 0x593d540] Non-monotonous DTS in output stream 0:0; previous: 80191, current: 0; changing to 80192. This may result in incorrect timestamps in the output file.
2021/04/15 07:26:33.956905 [HLS] ffmpeg: rtsp-All Cameras:  [mpegts @ 0x593d540] Non-monotonous DTS in output stream 0:0; previous: 80192, current: 19711; changing to 80193. This may result in incorrect timestamps in the output file.
2021/04/15 07:26:33.956924 [HLS] ffmpeg: rtsp-All Cameras:  [mpegts @ 0x593d540] Non-monotonous DTS in output stream 0:0; previous: 80193, current: 39331; changing to 80194. This may result in incorrect timestamps in the output file.
2021/04/15 07:26:33.956937 [HLS] ffmpeg: rtsp-All Cameras:  [mpegts @ 0x593d540] Non-monotonous DTS in output stream 0:0; previous: 80194, current: 59041; changing to 80195. This may result in incorrect timestamps in the output file.
2021/04/15 07:26:33.956948 [HLS] ffmpeg: rtsp-All Cameras:  [mpegts @ 0x593d540] Non-monotonous DTS in output stream 0:0; previous: 80195, current: 78661; changing to 80196. This may result in incorrect timestamps in the output file.
2021/04/15 07:26:34.173914 [HLS] Probed live stream in 6.098750155s: h264 1272x720 progressive 629745bps
2021/04/15 07:26:44.099910 [HLS] Couldn't generate stream playlist for ch000-dANY-ip192.168.0.18: Timeout waiting for session to start after 8s
2021/04/15 07:26:44.100025 [HLS] Stopping transcoder session ch000-dANY-ip192.168.0.18 (out: 14.912s, finished: false)
2021/04/15 07:26:44.100086 [ERR] Error during stream M3U-Cameras ch000 AllCamsHD: read |0: file already closed
2021/04/15 07:26:44.100111 [TNR] Closed connection to M3U-Cameras for ch000 AllCamsHD

is this still working for you? It wont work for me.

VLC wont play in the http://un:pw@ipaddr:port/h264/shortname/temp.m3u8. Channels errors too.

VLC does play rtsp://ipaddr:port/shortname?username=un&password=pw

but Channels wont:

[TNR] Opened connection to M3U-BlueIris for ch0.02 FrontCams
[HLS] Starting transcoder for channel 0.02 from 192.168.2.166 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
[rtsp @ 0x66aa580] method OPTIONS failed: 401 Unauthorized
[HLS] ffmpeg: rtsp-Front Cameras: rtsp://192.168.2.8:6980/front?username=un&password=pw: Server returned 401 Unauthorized (authorization failed)
[ERR] Error during stream M3U-BlueIris ch0.02 FrontCams: exit status 1
[HLS] ffmpeg: ch0.02-dANY-ip192.168.2.166-remux: pipe:: could not find codec parameters
[HLS] Couldn't generate stream playlist for ch0.02-dANY-ip192.168.2.166: Stream stopped
[HLS] Stopping transcoder session ch0.02-dANY-ip192.168.2.166
[TNR] Closed connection to M3U-BlueIris for ch0.02 FrontCams
[HLS] Probe failed for live stream after 2.609912758s and 0 bytes

of note, when I manually get your version of the URL, I see:

dvr1$ wget -O - 'http://un:[email protected]:6980/h264/front/temp.m3u8'
--2021-11-02 04:35:34-- http://un:[email protected]:6980/h264/front/temp.m3u8
Connecting to 192.168.2.8:6980... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Basic realm="BlueIris"
Connecting to 192.168.2.8:6980... connected.
HTTP request sent, awaiting response... 200 OK
Length: 203 [application/vnd.apple.mpegurl]
Saving to: ‘STDOUT’

100%[ ] 0 --.-KB/s
#EXTM3U>
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:3
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:3.000,front

Notice that it 401s and then has to resend with the digest. The Channels log doesnt show it do this with the rtsp url-- it tries once, gets the 401, and does not try again.

1 Like

I also tried these, which both work verbatim in VLC (i turned off required authentication in blue iris)

this doesnt work at all, channels just shows the black player window with the spinny circle trying to load

[ERR] Failed to start stream for ch0.01: M3U: Could not fetch playlist: http://192.168.2.8:6980/h264/all/temp.h264: context deadline exceeded (Client.Timeout or context cancellation while reading body)

this one shows one frame and then shows the spinny circle trying to load (video stays stuck on the one frame)

  • rtsp://192.168.2.8:6980/all

[TNR] Opened connection to M3U-BlueIris for ch0.01 AllCams
[HLS] Starting transcoder for channel 0.01 from 192.168.2.2 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
[rtsp @ 0x7794580] method SETUP failed: 461 Unsupported transport
[mpegts @ 0x77ba400] Non-monotonous DTS in output stream 0:0; previous: 80101, current: 0; changing to 80102. This may result in incorrect timestamps in the output file.
[mpegts @ 0x77ba400] Non-monotonous DTS in output stream 0:0; previous: 80102, current: 19711; changing to 80103. This may result in incorrect timestamps in the output file.
[mpegts @ 0x77ba400] Non-monotonous DTS in output stream 0:0; previous: 80103, current: 39241; changing to 80104. This may result in incorrect timestamps in the output file.
[mpegts @ 0x77ba400] Non-monotonous DTS in output stream 0:0; previous: 80104, current: 58951; changing to 80105. This may result in incorrect timestamps in the output file.
[mpegts @ 0x77ba400] Non-monotonous DTS in output stream 0:0; previous: 80105, current: 78571; changing to 80106. This may result in incorrect timestamps in the output file.
[mpegts @ 0x77ba400] Non-monotonous DTS in output stream 0:0; previous: 80106, current: 80101; changing to 80107. This may result in incorrect timestamps in the output file.
[mpegts @ 0x803d780] DTS discontinuity in stream 0: packet 6 with DTS 80107, packet 7 with DTS 98101
[HLS] Probed live stream in 6.111236669s: h264 1920x1080 progressive 586905bps
[HLS] Session ch0.01-dANY-ip192.168.2.2 started in 6.117178007s
[HLS] Couldn't generate stream playlist for ch0.01-dANY-ip192.168.2.2: Playlist has not been updated in 20.736572165s
[HLS] Stopping transcoder session ch0.01-dANY-ip192.168.2.2 (out: 25.28s, finished: false)
[ERR] Error during stream M3U-BlueIris ch0.01 AllCams: read |0: file already closed
[TNR] Closed connection to M3U-BlueIris for ch0.01 AllCams
[HLS] ffmpeg: rtsp-All Cameras: av_interleaved_write_frame(): Broken pipe
[HLS] ffmpeg: rtsp-All Cameras: Error writing trailer of pipe:: Broken pipe
[TNR] Opened connection to M3U-BlueIris for ch0.01 AllCams
[HLS] Starting transcoder for channel 0.01 from 192.168.2.2 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
[rtsp @ 0x659c580] method SETUP failed: 461 Unsupported transport
[mpegts @ 0x65c2400] Non-monotonous DTS in output stream 0:0; previous: 103501, current: 0; changing to 103502. This may result in incorrect timestamps in the output file.
[mpegts @ 0x65c2400] Non-monotonous DTS in output stream 0:0; previous: 103502, current: 20251; changing to 103503. This may result in incorrect timestamps in the output file.
[mpegts @ 0x65c2400] Non-monotonous DTS in output stream 0:0; previous: 103503, current: 41220; changing to 103504. This may result in incorrect timestamps in the output file.
[mpegts @ 0x65c2400] Non-monotonous DTS in output stream 0:0; previous: 103504, current: 61651; changing to 103505. This may result in incorrect timestamps in the output file.
[mpegts @ 0x65c2400] Non-monotonous DTS in output stream 0:0; previous: 103505, current: 81451; changing to 103506. This may result in incorrect timestamps in the output file.
[mpegts @ 0x65c2400] Non-monotonous DTS in output stream 0:0; previous: 103506, current: 101881; changing to 103507. This may result in incorrect timestamps in the output file.
[mpegts @ 0x7d45780] DTS discontinuity in stream 0: packet 6 with DTS 103507, packet 7 with DTS 121501
[HLS] Probed live stream in 6.369807787s: h264 1920x1080 progressive 588965bps
[HLS] Session ch0.01-dANY-ip192.168.2.2 started in 6.375834469s
[HLS] Stopping transcoder session ch0.01-dANY-ip192.168.2.2 (out: 18.112s, finished: false)
[ERR] Error during stream M3U-BlueIris ch0.01 AllCams: read |0: file already closed
[TNR] Closed connection to M3U-BlueIris for ch0.01 AllCams
[HLS] ffmpeg: rtsp-All Cameras: av_interleaved_write_frame(): Broken pipe
[HLS] ffmpeg: rtsp-All Cameras: Error writing trailer of pipe:: Broken pipe

Google suggests the method SETUP failed: 461 Unsupported transport error has to do with ffmpeg and udp vs tcp.

any ideas ?

I was able to get my Blue Iris RSTP camera feeds added to the Guide using a m3u file.

#EXTM3U
#EXTINF:-1 tvg-logo="https://i.imgur.com/GcQRIIv.jpg" group-title="No group" tvg-id="" tvg-name="", All Cameras
rtsp://Echo:[email protected]:58824/ALL

#EXTINF:-1 tvg-logo="https://i.imgur.com/GcQRIIv.jpg" group-title="No group" tvg-id="" tvg-name="", Front Yard
rtsp://User:[email protected]:Port#/Front

#EXTINF:-1 tvg-logo="https://i.imgur.com/GcQRIIv.jpg" group-title="No group" tvg-id="BI1" tvg-name="", Front Porch
rtsp://User:[email protected]:Port#/FD_Dome
1 Like

After setting up one camera, it plays on the local network in original quality, but the log says this:

2023/12/31 12:08:28.981391 [TNR] Opened connection to M3U-FrontDoor for ch8001 Front Door
2023/12/31 12:08:29.129642 [HLS] ffmpeg: rtsp-FrontDoor:  [rtsp @ 0000000002652880] method SETUP failed: 461 Unsupported transport

When I set firestick quality to encode to 4mbps, I get the same error but it won't play. Any ideas?