Blue Iris URLs for external streams

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,458
Reaction score
38,187
Location
Alabama

davo22

n3wb
Joined
Mar 24, 2015
Messages
17
Reaction score
5
You are right. Had an extra e in the URL. Can't believe I missed it. Cheers
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,458
Reaction score
38,187
Location
Alabama
You are right. Had an extra e in the URL. Can't believe I missed it. Cheers
Before I mentioned that, I tried the "e" in the last "mjpeg" at the end and it made no diff but caused the 404 if used in the first one....go figure.
 
Last edited:

Wayneski

n3wb
Joined
Jun 16, 2019
Messages
1
Reaction score
0
Location
MSP
I realize this is an old thread, but I have searched and can't find anything newer on this topic.

I am experiencing an issue getting the URL to work in Action Tiles. I am able to open the URL in chrome on my tablets (Amazon Fire HD 8, Nexus 7) and in Action Tiles via browser, but when I launch the AT Panel on my tablets I get a blank box with three dots at the top.

I am using the following URL: http:/BI_IP:port/mjpg/cam1/video.mjpg?user=userid:password=password

Any help would be appreciated.
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,458
Reaction score
38,187
Location
Alabama
@Wayneski ,
You have:
Code:
http:/BI_IP:port/mjpg/cam1/video.mjpg?user=userid:password=password
Try putting the "e" in your "video.mjpg", making it "video.mjpeg"
 

TonyR

IPCT Contributor
Joined
Jul 15, 2014
Messages
16,458
Reaction score
38,187
Location
Alabama

Humbro

n3wb
Joined
Feb 17, 2020
Messages
1
Reaction score
1
Location
UAE
Hi guys, Ive been trying to work this out for awile and this discussion was very helpful.

Though i may be able to help others out to get the ULRS sorted with the attached speadsheet.

You still need to set BI acess and enter in your DNS or IP, port and camera short names but after that you should be able to cut and paste the link into Chrome or VLC player.
 

Attachments

dolhop

n3wb
Joined
Feb 27, 2020
Messages
6
Reaction score
0
Location
canada
Is the list of URLs posted near the beginning of this thread still correct for BI5?

What I would like to do is offer up a direct URL to the clip during an alert. i.e. when motion is triggered, an alert is sent out (I will be sending to Slack) and I would like to be able to send not only the alert image, but also a URL directly back to my BI5 web server so that if I am interested in the specifc clip, I can just click on the URL and watch the video.

I see that when I use the webserver and go to /cliplist.htm I get a webpage of various clips. Clicking on one of the clips starts video in a popup window with a URL like: http://<ip_addr>:81/clips/@313563 however, that isn't a filename, my guess is that it's just an identifier used in the database that maps to a specifc file on disk.

I guess I need to know two things: 1. during an alert, can I get the URL to access the video directly, and 2. can we access files directly? I did see mention of a http://<ip_addr>/clips/ URL to be able to access the clips, but that URL just spins for me. I should mention that I do have "allow directory listing" enabled.

UPDATE: I see that via MACROS I can obtain the name of the alert snapshot and the video clip file. From there I could put together a URL. However, I would need for the BI web server to be able to serve up files from the C:\Blue Iris\New folder IN ADDITION TO the UI3 web files location....anyone know if this is possible?
 
Last edited:

dolhop

n3wb
Joined
Feb 27, 2020
Messages
6
Reaction score
0
Location
canada
Thanks. I saw that, but the closest thing is /file/clips/{filename}&mode=jpeg&speed=100 which will produce an M-JPEG stream. I just want it to serve up the video file straight from the disk. I'd like to avoid having to run an instance of nginx to do this....
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,007
Location
USA
UPDATE: I see that via MACROS I can obtain the name of the alert snapshot and the video clip file. From there I could put together a URL. However, I would need for the BI web server to be able to serve up files from the C:\Blue Iris\New folder IN ADDITION TO the UI3 web files location....anyone know if this is possible?
Yes, try right-clicking a clip in UI3 and mouse over the "Download" option to see the URL it creates. If you record H.264 format directly to MP4 files, you will be able to play the videos directly in a browser without any special effort just by loading that URL.
 

dolhop

n3wb
Joined
Feb 27, 2020
Messages
6
Reaction score
0
Location
canada
Thanks. That URL seems to match what I initially found: http://<ip_addr>:81/clips/@313563 and the 313563 doesn't have any direct correlation to the filename that is available from the &FILE macro during the alert (which matches the filename on disk). I presume that's a DB identifier.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,007
Location
USA
You are right, it is a db identifier. The way you access the actual file on disk is to append its file extension (as UI3 does when making the "Download" link!). If you use Blue Iris's JSON API, it gives you all you need.
 

dolhop

n3wb
Joined
Feb 27, 2020
Messages
6
Reaction score
0
Location
canada
You are right, it is a db identifier. The way you access the actual file on disk is to append its file extension (as UI3 does when making the "Download" link!). If you use Blue Iris's JSON API, it gives you all you need.
Thanks. Though I cannot parse that fully: the UI3 URL has the DB ID a la http://<ip_addr>:81/clips/@313563. The filename on disk (in C:\BlueIris\New) and given in the &FILE macro during the alert is something like camname.20200227_123547.mp4. Ideally I'd like to be able to have http://<ip_addr>:81/clips/camname.20200227_123547.mp4 available to me via the webserver. OR have the DB ID available to me during the alert as a macro parameter.

As for the JSON API, I see I can request cliplist, but to have to call that during my alert script and iterate over the list of clips seems.....overly complicated for such a simple concept. Did I miss something in the JSON API?

I am a bit surprised this hasn't come up before (or maybe it has, but the search of this forum and the BI forum yielded little). Seems having the DB ID as a macro, and the ability to serve up video files directly would both be good feature additions to BI.

BTW, thanks so much for you assistance with this, I really appreciate it.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,007
Location
USA
I think I understand what you are saying now. Forget what I said about using the JSON API.

I just tried, Blue Iris does serve from the "New" recording folder using e.g. http://<ip_addr>:81/clips/camname.20200227_123547.mp4 . Does it not for you?
 

dolhop

n3wb
Joined
Feb 27, 2020
Messages
6
Reaction score
0
Location
canada
huh. it works, thanks. I was initially tripped up by this because I have "directory listing" enabled, and was expecting to be able to go to http://<ipaddr>/clips/ and see a listing of all clips. This doesn't work. the browser spins as though it's loading, but nothing ever loads. I must have been playing with various settings around this and couldn't get the direct clip URL working either. After resetting the settings, it works. Thanks again.

Any idea why the /clips/ URL doesn't offer a directory listing? Does it for you?
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,007
Location
USA
I noticed the same thing with directory listing. Seems broken. If you need it to work, you should tell Blue Iris Support.

(The last time I tested directory listing was years ago, but it worked then)
 
Top