Standalone Java app for dedicated live view with Instant Replay

Clarke

n3wb
Joined
Mar 13, 2015
Messages
14
Reaction score
2
Location
SE PA
Sorry, but how do I access the instant replay feature? I see the options config for it, but haven't been able to figure out the keystroke or process to initiate it.

Thanks!
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
It is a bar along the bottom of the window. If you don't see it, move your pointer near it. Click around on it and you should see pretty quickly how it works.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
I published a new version of this just now.

Version 2.6
+Added "Night Mode" which can apply a video filter to turn the video red and (on some Windows devices) change the brightness of the screen.
+Added a small .NET program, "ScreenBrightness.exe" to the jar file which is extracted at runtime on Windows systems to facilitate changing screen brightness.
 

wcrowder

Getting the hang of it
Joined
Oct 8, 2015
Messages
294
Reaction score
53
Location
French Lick, Indiana 47432
Wonderful job!!! Now I'm really enamored with Blue Iris for home/hobby systems.

Does this work with Chrome cast or maybe an Intel Compute stick for a cheap "Monitor Wall"? Has anyone tried it? Multicast client would be nice... :)

bp2008, how do I contribute?

Don't even think about quitting development on this, this should be part of Blue Iris. Do you know what a display wall costs on an "enterprise" system? This is actually better!
 
Last edited by a moderator:

bignose2

n3wb
Joined
Nov 11, 2015
Messages
21
Reaction score
0
Firstly, just amazing software, exactly what I have wanted for years, BI is great & so much better with your contributions,
.. it all just works so well & what I want (Use to use iSpy, was good but no comparison)

Is there a way to open your blueirisviewer automatically using a different server without having to go into "o" options.
e.g. something like a command line option pointing to different config.
I have TWO different sets of 7 cameras on two different PC servers (Same LAN)

Would be great to quickly just click a Windows 8.1 (&10) desktop shortcut and open one OR the other.
Not necessarily both open at same time (but would be a bonus)

This is the great thing about UI2, simple link to whichever Lan IP & port and this DOES do what I want but whilst I love UI2 nice to have both.

Also, a tiny thing & not important but is it possible to do away with the 2 seconds delay when auto logging in UI2 or is it a necessary delay.

Thanks again for your great work, I will look but is there a donation option for this development.
 

bignose2

n3wb
Joined
Nov 11, 2015
Messages
21
Reaction score
0
Stupid me, found my own answer, simply have a copy of the files in another directory with the .jar & config and point that,

Great!
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
Also, a tiny thing & not important but is it possible to do away with the 2 seconds delay when auto logging in UI2 or is it a necessary delay.

Thanks again for your great work, I will look but is there a donation option for this development.
The delay is there so you have an opportunity to disable the automatic login and clear your stored user name and password. Without the delay, this is nearly impossible for most users.

But to answer your question, yes the delay can be eliminated by modifying the login page but your change would be replaced every time you update ui2.

Stupid me, found my own answer, simply have a copy of the files in another directory with the .jar & config and point that,

Great!
Yup, that is the answer. :)

You may also appreciate this hidden setting that someone requested ages ago. You can change the window title for each copy if you go into the settings file and find this setting:

Code:
<windowTitle>BlueIrisViewer</windowTitle>
Me personally, I always run it in borderless mode and only with one BI server anyway so the window title does not matter to me.
 

bignose2

n3wb
Joined
Nov 11, 2015
Messages
21
Reaction score
0
Hi,
I hope I don't find my own answer again just as I ask a question but do wonder if this is not possible..

I have a few different layouts but would like one where I have just 2 cameras in a small Borderless box 360x220 approx in the corner of my windows screen.

It the borderless bit that's tricky.

Because the window is small I cannot see all the menu to either click Toggle or adjust the size

Is there a way to toggle borderless with a keyboard shortcut etc, that would sort it & be very handy.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
There is not a way to toggle it with a keyboard key, but you could try positioning and sizing in windowed mode, then close the app and change the config file manually to enable borderless mode. You can also fine tune the position and size with the config file.

Sorry it isn't easier to deal with those menus in a small window. I will keep that in mind next time I am in the code and see if I can make it possible to use all the functionality via scrolling.
 

patja

n3wb
Joined
Nov 23, 2015
Messages
14
Reaction score
1
I just updated to Blue Iris 4.2.6.7 and now the standalone Java app BlueIrisViewer is no longer connecting to the server. The log indicates it is failing to get a result from http://myserver:81/json and manually trying that URL gives a 404 error.

UI2.htm and the standard Blue Iris web site work fine.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
UI2 uses the same /json page. Something else is wrong. Perhaps the port number in your URL.
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
@patja, after you double check the server address is correct if it is still a problem let me know and I will try to reproduce in case it actually is a bug in my code :)
 
Last edited by a moderator:

patja

n3wb
Joined
Nov 23, 2015
Messages
14
Reaction score
1
@patja, after you double check the server address is correct if it is still a problem let me know and I will try to reproduce in case it actually is a bug in my code :)
Well it appears I jumped the gun. I was able to get it working using the IP address rather than the server name.

I noticed when I ping my server by name from the client it just gives the IPv6 address in the response, which I had never seen before. Maybe that is what was causing it to fail to connect. When I went to the server and did an ipconfig to verify the IPv4 address and used that to connect it worked.

Maybe this change in behavior was caused by my client PC finally having the November Windows 10 update forced down its throat last night? I noticed it reset a bunch of stuff: default browser, default file associations. Maybe it also messed up (excuse me, "improved") name/address resolution? I found the message "all of your files are exactly where you left them" to be very un-reassuring, for good reason it turns out! My files may be where I left them, but my settings I took great pains to customize were blown away.

I will just use the IPv4 address in BlueIrisViewer going forward. I have a DHCP reservation setup so it shouldn't change.

Thanks for your tools, they really help complete the Blue Iris experience!
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
I'm glad you got it working. I'll keep the ipv6 problem in mind but probably not a lot I can do about it...
 

CrazyFin

n3wb
Joined
Jul 14, 2015
Messages
23
Reaction score
5
Looks like a wonderful app for viewing cams locally on the internal network from other machines than just the one that has BlueIris installed.

However, I am not able to log in from any of the other machines I am testing from. I get only "Unrecognized server!" as the error message.
Logfile is enabled but I do not get any prints to the logfile. I do see in the logfile that I am disabling/enabling the error logging.

If I take the ip address and port number from BlueIris Viewer and enter that into my web browser I am able to login just fine.
I can ping my BlueIris server ip and get reply back.

I am on BlueIris Viewer 2.6 and my BlueIris server is running latest version 4.2.9.1.

Accessing the BlueIris server via my Android phone and the BlueIris app for Android works perfectly fine.

EDIT:
I installed on a 3rd computer but still the same error. Now I get the following log errors:

============
2016/02/14 16:01:59 An exception has occurred in class org.brian.blueirisviewer.util.Utilities:
http://127.0.0.1:80/json
Additional Info:
URL: http://127.0.0.1:80/json
java.io.FileNotFoundException: http://127.0.0.1:80/json
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.brian.blueirisviewer.util.Utilities.getViaHttpConnection(Utilities.java:157)
at org.brian.blueirisviewer.util.Utilities.getViaHttpConnection(Utilities.java:59)
at org.brian.blueirisviewer.util.Utilities.getStringViaHttpConnection(Utilities.java:240)
at org.brian.blueirisviewer.images.Images$1.run(Images.java:158)
at java.lang.Thread.run(Unknown Source)

2016/02/14 16:01:59 An exception has occurred in class org.brian.blueirisviewer.images.Images$1:
Exception message was null
Unexpected token END OF FILE at position 0.
at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:81)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:75)
at org.brian.blueirisviewer.images.Images$1.run(Images.java:162)
at java.lang.Thread.run(Unknown Source)
=============

Note that the URL is still the local address which is wrong.
I have changed in the GUI and I can also see in the config file that it indeed has the new and proper IP address and port.

I tested now with running the BlueIris Viewer locally on the same machine where I have BlueIris installed. Same error.

I do have verified that my custom port setting for BlueIris is properly stated in the URL since when I paste the URL into a web browser I am connected directly without any problems.
 
Last edited by a moderator:

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
Looks like a wonderful app for viewing cams locally on the internal network from other machines than just the one that has BlueIris installed.

However, I am not able to log in from any of the other machines I am testing from. I get only "Unrecognized server!" as the error message.
Logfile is enabled but I do not get any prints to the logfile. I do see in the logfile that I am disabling/enabling the error logging.

If I take the ip address and port number from BlueIris Viewer and enter that into my web browser I am able to login just fine.
I can ping my BlueIris server ip and get reply back.

I am on BlueIris Viewer 2.6 and my BlueIris server is running latest version 4.2.9.1.

Accessing the BlueIris server via my Android phone and the BlueIris app for Android works perfectly fine.

EDIT:
I installed on a 3rd computer but still the same error. Now I get the following log errors:

============
2016/02/14 16:01:59 An exception has occurred in class org.brian.blueirisviewer.util.Utilities:
http://127.0.0.1:80/json
Additional Info:
URL: http://127.0.0.1:80/json
java.io.FileNotFoundException: http://127.0.0.1:80/json
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at org.brian.blueirisviewer.util.Utilities.getViaHttpConnection(Utilities.java:157)
at org.brian.blueirisviewer.util.Utilities.getViaHttpConnection(Utilities.java:59)
at org.brian.blueirisviewer.util.Utilities.getStringViaHttpConnection(Utilities.java:240)
at org.brian.blueirisviewer.images.Images$1.run(Images.java:158)
at java.lang.Thread.run(Unknown Source)

2016/02/14 16:01:59 An exception has occurred in class org.brian.blueirisviewer.images.Images$1:
Exception message was null
Unexpected token END OF FILE at position 0.
at org.json.simple.parser.JSONParser.parse(JSONParser.java:257)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:81)
at org.json.simple.parser.JSONParser.parse(JSONParser.java:75)
at org.brian.blueirisviewer.images.Images$1.run(Images.java:162)
at java.lang.Thread.run(Unknown Source)
=============

Note that the URL is still the local address which is wrong.
I have changed in the GUI and I can also see in the config file that it indeed has the new and proper IP address and port.

I tested now with running the BlueIris Viewer locally on the same machine where I have BlueIris installed. Same error.

I do have verified that my custom port setting for BlueIris is properly stated in the URL since when I paste the URL into a web browser I am connected directly without any problems.
The exceptions suggest that Blue Iris returned an error code instead of the expected response. My thoughts are that maybe you are not reaching the Blue Iris web server, but instead some other web server. Please post the content of your BIVSettings.cfg in a Code or Html block (so that the forum doesn't modify the content). You can strip out the username and password settings before posting, if you have them set. Also post a screenshot of your Blue Iris Options > Web server tab (obscure only the public WAN address). This will let me verify that everything looks right.

If the settings look perfectly fine, then the next step would be to have you run Fiddler4 wireshark to capture the network traffic from BlueIrisViewer so that we can look at the raw request and response text. Unfortunately the easier Fiddler4 program won't work because BlueIrisViewer is coded to not try to use proxy servers I think and I'm not sure why.
 
Last edited:

CrazyFin

n3wb
Joined
Jul 14, 2015
Messages
23
Reaction score
5
Code:
<org.brian.blueirisviewer.BIVSettings>
  <serverURL>http://192.168.10.6:8181/</serverURL>
  <loadStartPositionAndSizeUponAppStart>true</loadStartPositionAndSizeUponAppStart>
  <disableWindowDragging>false</disableWindowDragging>
  <overrideGridLayoutX>0</overrideGridLayoutX>
  <overrideGridLayoutY>0</overrideGridLayoutY>
  <startPositionX>320</startPositionX>
  <startPositionY>180</startPositionY>
  <startSizeW>1280</startSizeW>
  <startSizeH>720</startSizeH>
  <borderless>false</borderless>
  <restartBorderlessToggle>false</restartBorderlessToggle>
  <imageRefreshDelayMS>450</imageRefreshDelayMS>
  <bOverrideGridLayout>false</bOverrideGridLayout>
  <imageFillMode>0</imageFillMode>
  <modalUI>true</modalUI>
  <username>XXXXXXX</username>
  <password>XXXXXX</password>
  <imageResolutionMode>2</imageResolutionMode>
  <overrideJpegQuality>false</overrideJpegQuality>
  <jpegQuality>60</jpegQuality>
  <instantReplayEnabled>false</instantReplayEnabled>
  <instantReplayHistoryLengthMinutes>5</instantReplayHistoryLengthMinutes>
  <hiddenCams/>
  <logErrorsToDisk>true</logErrorsToDisk>
  <windowTitle>BlueIrisViewer</windowTitle>
  <useLibjpegTurbo>true</useLibjpegTurbo>
  <useMjpegStream>false</useMjpegStream>
  <nightModeEnabled>false</nightModeEnabled>
  <nightModeStartTime>20:00</nightModeStartTime>
  <nightModeEndTime>8:00</nightModeEndTime>
  <setDayModeBrightness>false</setDayModeBrightness>
  <setNightModeBrightness>false</setNightModeBrightness>
  <dayModeBrightness>100</dayModeBrightness>
  <nightModeBrightness>10</nightModeBrightness>
  <pixelManipulationDayMode>0</pixelManipulationDayMode>
  <pixelManipulationNightMode>3</pixelManipulationNightMode>
</org.brian.blueirisviewer.BIVSettings>
and here is the screenshot of my BlueIris webserver settings

BlueIris webserver settings.PNG

If I change the password or username then I get the error message invalid username so BlueIris Viewer must be getting connection with the BlueIris server.
Screenshot example:

BlueIris viewer - connection seems to work - wrong username and password.JPG
 
Last edited by a moderator:

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
Code:
<org.brian.blueirisviewer.BIVSettings>
  <serverURL>http://192.168.10.6:8181/</serverURL>
</org.brian.blueirisviewer.BIVSettings>
and here is the screenshot of my BlueIris webserver settings

View attachment 8306

If I change the password or username then I get the error message invalid username so BlueIris Viewer must be getting connection with the BlueIris server.
Screenshot example:

View attachment 8308
Well that all looks fine ... which unfortunately means I have no idea what is wrong. If you are able, proceed with wireshark to see if you can find clues as to why Blue Iris is not returning the expected response. But wireshark isn't the easiest thing to get along with. If you want, you can PM me your public IP and port number and some temporary/limited account credentials and I will try to connect from my end.
 

djmt99

Young grasshopper
Joined
Oct 13, 2015
Messages
82
Reaction score
12
Is it possible to rearrange or resize the cameras, as it appears in the second screenshot of the first post? Or was that a screenshot of multiple instances of the viewer?
 

bp2008

Staff member
Joined
Mar 10, 2014
Messages
12,666
Reaction score
14,005
Location
USA
Is it possible to rearrange or resize the cameras, as it appears in the second screenshot of the first post? Or was that a screenshot of multiple instances of the viewer?
That was a screenshot of a portrait view 16:9 camera that had been clicked (bringing it to full-screen). To clarify, it is not possible to affect the layout of the cameras beyond what you have in the Camera Layout section of the options.
 
Top