Blue Iris Security Camera Integration

yep, thanks, I'm on Blue Iris 5.3.6. rtsp is working if I open the Blue Iris stream in VLC, so the stream is working - Channels is having a problem interpreting the stream, it seems.

Have you tried adding the video/audio codec to the M3U (the tvc-stream-vcodec/tvc-stream-acodec tag), so that Channels doesn't have to guess what it's receiving.

1 Like

I just tried adding tvc-stream-vcodec="h264" tvc-stream-acodec="aac" and still getting the same error. Current setup is the following:

#EXTINF:-1 channel-id="AllCams" channel-number="003" tvg-logo="https://i.ibb.co/kHvRksm/cameraicon.png " tvg-name="Combined Cams" tvc-guide-title="All Cams in one view" tvc-guide-description="Live view of all cameras" tvc-stream-vcodec="h264" tvc-stream-acodec="aac",All Cams View
rtsp://user:[email protected]:81/AllCams

1 Like

I'm trying to add camera feeds from Blue Iris to my Channels DVR (not beta). Do I need to be running the beta version for this to work and must I use M3U playlists? I've added BI camera feeds to other chromecast apps but can't get it to work in the non-beta Channels DVR server.

I was able to tie into BlueIris pretty easy using the UI3 web interface here is my setup

my blueiris ui3 is on ip 192.168.1.100 port 81

#EXTM3U
#EXTINF:-1 channel-id="FrontDoor" channel-number="1.1" tvg-name="FDCam" tvc-guide-title="Front Door Security Camera" tvc-guide-description="Security Camera for Front Door" tvc-stream-vcodec="h264",FDCam
http://UserName:[email protected]:81/h264/FrontDoor/temp.m3u8
#EXTINF:-1 channel-id="BackDoor" channel-number="1.2" tvg-name="BDCam" tvc-guide-title="Back Door Security Camera" tvc-guide-description="Security Camera for Back Door" tvc-stream-vcodec="h264",BDCam
http://UserName:[email protected]:81/h264/bd_cam/temp.m3u8
#EXTINF:-1 channel-id="Garage" channel-number="1.3" tvg-name="GarCam" tvc-guide-title="Garage Security Camera" tvc-guide-description="Security Camera for Garage" tvc-stream-vcodec="h264",GarCam
http://UserName:[email protected]:81/h264/Garage_CAM/temp.m3u8

The camera name in the url is the short camera name

3 Likes

Thanks Airey001 - I basically copied what you had and updated the URLs and it worked. Much appreciated!

Im trying to do the same exact thing and i cant get it going. I also tried the RTSP stream like Brucem and got the same result, works in VLC but not in channels. Im now trying the m3u8 method and its also not working for me. I cant get the m3u8 URL to work anywhere, even outside channels. Is there a BlueIris setting I'm missing?

Blue Iris Version 5.3.9.0

#EXTM3U
#EXTINF:-1 channel-id="Deck" channel-number="1.1" tvg-name="Deck" tvc-guide-title="Deck Cameras" tvc-guide-description="Security Camera for Deck" tvc-stream-vcodec="h264",Deck
http://chnls:[email protected]:8080/h264/DECK/temp.m3u8

I've tried both MPEG-TS and HLS. Which should it be?

Thanks in advance for the help.

i think this is the relevant log ....

2021/02/01 12:21:42.794074 [TNR] Sharing existing connection to M3U-CAMS for ch1.1 Deck (clients=11, len=0)
2021/02/01 12:21:42.796073 [HLS] Starting transcoder for channel 1.1 from 192.168.2.15 (encoder=remux, resolution=, deinterlacer=, bitrate=0)
2021/02/01 12:21:42.825055 [HLS] ffmpeg: ch1.1-dANY-ip192.168.2.15-remux: pipe:: could not find codec parameters
2021/02/01 12:21:42.845045 [HLS] Couldn't generate stream playlist for ch1.1-dANY-ip192.168.2.15: Stream stopped
2021/02/01 12:21:42.845045 [HLS] Stopping transcoder session ch1.1-dANY-ip192.168.2.15
2021/02/01 12:21:42.992987 [HLS] Probe failed for live stream after 10.2238372s and 0 bytes

Im aware you can see the password in the URL and the LOG, it will be changed shortly.

I cant seem to authenticate to BI using the m3u8 URLS either through Channels or even in a browser.

LOG:

2021/02/01 13:09:10.337718 [ERR] Failed to start stream for ch1.1: M3U: get http://chnls:[email protected]:8080/h264/DECK/temp.m3u8: 403 Forbidden
2021/02/01 13:09:10.384742 [HLS] Couldn't generate stream playlist for ch1.1-dANY-ip192.168.2.15: M3U: get http://chnls:[email protected]:8080/h264/DECK/temp.m3u8: 403 Forbidden
2021/02/01 13:09:10.384742 [HLS] Stopping transcoder session ch1.1-dANY-ip192.168.2.15

Does it work if you use the internal IP of Blue Iris server? Is there a reverse proxy or something running in front of it?

thats a public URL. I can browse to the webUI from the channels server using that URL.

its live right now and Thats the password .. you can browse right to it and log in and see my deck!

I mean in your browser. Get it working there first, because if that doesn't work its not going to work in the DVR at all.

Is BI actually running on port 8080 or is there another proxy running on that port. If there's a proxy, that's probably what is not passing the authentication through.

I see the same "Missing or invalid session key" as in your screenshot.

Im running on 8080 straight HTTP, no stunnel or proxy or anything. the m3u8 URLS dont work for me at all even on LAN. Thats why i asked the BI people if they had to make another setting change on their BI server. The only direct stream i can get to work is the RTSP feed and that doesnt seem to work in channels even though it works inside VLC from the channels server.

working in VLC RTSP URL:
rtsp://chnls:[email protected]:8080/DECK&w=1280&h=720

i cross referenced the logs and for some reason its hung up at login. I see in in the BI logs the channels server trying to open the stream and never gets past "login". Im not sure how the other guys got around this. Ill wait for a reply.

Thanks everyone.

On Blue Iris settings, Webserver tab, do you have the cams.linewmans.com:8080 url in the external webserver access? If it's local on your lan, have you tried the IP address directly?

once more update. I was able to use the LAN ip of my BI server by adding some routes internally. My Channels server and by BI server are on different internal VLANS. Once i did that i shut off authentication for LAN clients and removed the username and password from the URLS and it worked. This is of course not ideal but proves it works. If any of the BI users have any insight how they are functioning with username and password auth id love to know how you pulled it off.

Thank You!

Hi, can you share the url that you used to view all cams on 1 channel?

The url i use to see all cams is http://192.168.1.6:81/ui3.htm. but that doesn't work for channels.

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?