Create GIFs from alerts & clips; Send Pushover notifications with GIF attachments [Part 1/3]

Hello!

I am getting error below.

PS C:\Windows\system32> BI_gif_tool.ps1 -UI3Rec '287499540-337764'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "66f92465573061653cdf6cb438133f4c"
}
ERR/unexpected response from MakeGIF(): 'ERR/unable to get clipstats for database record: '@287499540''
 
  • Like
Reactions: Flintstone61
Also error on:

PS C:\Windows\system32> BI_gif_tool.ps1 -Camera dah04ptz25x -Latest -IgnoreDat
ERR/unexpected response from MakeGIF(): 'ERR/BIJsonClipstats() expecting an argument (-Clips)'




This works OK.
BI_gif_tool.ps1 -Camera dah04ptz25x -Live
Getting JPGs from the Camera's Live Video Stream...

---------------------------------------------------

Executing ffmpeg:
-----------------
success

GIF File Summary:
-----------------
GIF created: 'C:\Dropbox\Bat2\BI_GIF_tool\dah04ptz25x\output.gif'
GIF method: viaLive
GIF specs: ImageCnt,Height,Dur(msec),FPS,Size(KB) = 10,320,10000,2,674
GIF archived as: 'C:\Dropbox\Bat2\BI_GIF_tool\_gif_archive\dah04ptz25x.20241117_090000.2155357.gif'
GIF source: 'J:\BlueIris\dah04ptz25x.20241117_090000.bvr'

GIF Archive Maintenance Summary:
--------------------------------
Count of archived GIF files matching 'C:\Dropbox\Bat2\BI_GIF_tool\_gif_archive\*.gif' = 2
No old GIF files found to prune (age >= 360 hrs)
Oldest GIF file age is 0 hrs (dah04ptz25x.20241117_090000.434897.gif)

Pushover Response:
------------------
Pushover notification sent

Performance Summary:
--------------------
JPG fetch delay: 0 msec
makegif execution time: 128536 msec
pushover execution time: 15971 msec
total execution time: 14527 msec

CSV Log Summary:
----------------
Performance data logged to 'C:\Dropbox\Bat2\BI_GIF_tool\BI_gif_tool_V2.2_log.csv'

Blue Iris Logfile Summary:
--------------------------

Custom BI logfile message posted
 
Last edited:
Hello!

I am getting error below.

PS C:\Windows\system32> BI_gif_tool.ps1 -UI3Rec '287499540-337764'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "66f92465573061653cdf6cb438133f4c"
}
ERR/unexpected response from MakeGIF(): 'ERR/unable to get clipstats for database record: '@287499540''
Sorry about this.

Unfortunately, I haven't been able to reproduce your observations. I tried all of the following:
  1. Executing the script in powershell.exe (PS5.1), powershell_ise.exe (PS5.1) and pwsh.exe (PS7)
  2. Using a non-admin Blue Iris user account.
While examining the code I did find a bug left over from a change in V2 (when I changed argument -DbRec to -DbRecNo). I also modified the BIJsonClipstats()
to enforce the requirement that the database record be prefixed with a @.

I've added a V2.2Mod1 zip file with these "fixes" to post #1. Please give it a try.
NOTE: A new user-settings file is not provided nor needed; keep using the one provided with the V2.2 zip file.

Because I'm unable reproduce your observations, I cannot confirm that either of these are actual fixes.

If the issues persist after trying the newer script, let's try ruling out a Blue Iris database "glitch":
  1. Please try first a database 'Compact/Reindex' action.
  2. If that doesn't improve things, then try a database 'Repair/Regenerate' action.
Please keep in mind that when you use these database actions, the original UI3 rec= argument value will no longer apply. You'll need to reload the UI3 page, re-navigate to the alert, then grab the new argument value to use in the Powershell script.
 
Last edited:
Hello!

Unfortunately same error.


------------------------------------------------------
PS C:\Users\mladen> BI_gif_tool.ps1 -AlertRec '@312796519'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "74bc0ba066c863084ea90df161714315"
}
ERR/unexpected response from MakeGIF(): 'ERR/DB record not found (@312796519)'

------------------------------------------------------
PS C:\Users\mladen> BI_gif_tool.ps1 -DbRecNo '312796519'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "74bc0ba066c863084ea90df161714315"
}
ERR/unexpected response from MakeGIF(): 'ERR/DB record not found (@312796519)'

------------------------------------------------------
PS C:\Users\mladen> BI_gif_tool.ps1 -UI3Rec '312796519-348207'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "74bc0ba066c863084ea90df161714315"
}
ERR/unexpected response from MakeGIF(): 'ERR/DB record not found (@312796519)'

------------------------------------------------------

Maybe my version of Blue Iris 5.7.3.0 is to old.

Command BI_gif_tool.ps1 -Camera dah04ptz25x -Live works OK.

Result is attached.
 

Attachments

  • dah04ptz25x.20241118_090002.1184698.gif
    dah04ptz25x.20241118_090002.1184698.gif
    115.3 KB · Views: 16
Last edited:
Hello!

Unfortunately same error.


------------------------------------------------------
PS C:\Users\mladen> BI_gif_tool.ps1 -AlertRec '@312796519'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "74bc0ba066c863084ea90df161714315"
}
ERR/unexpected response from MakeGIF(): 'ERR/DB record not found (@312796519)'

------------------------------------------------------
PS C:\Users\mladen> BI_gif_tool.ps1 -DbRecNo '312796519'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "74bc0ba066c863084ea90df161714315"
}
ERR/unexpected response from MakeGIF(): 'ERR/DB record not found (@312796519)'

------------------------------------------------------
PS C:\Users\mladen> BI_gif_tool.ps1 -UI3Rec '312796519-348207'
BIJsonClipstats() json_response_obj.result = fail
{
"result": "fail",
"session": "74bc0ba066c863084ea90df161714315"
}
ERR/unexpected response from MakeGIF(): 'ERR/DB record not found (@312796519)'

------------------------------------------------------

Maybe my version of Blue Iris 5.7.3.0 is to old.

Command BI_gif_tool.ps1 -Camera dah04ptz25x -Live works OK.

Result is attached.
These errors suggest that the Blue Iris JSON interface may not be recognizing your credentials. Or the username lacks the necessary privileges. Please double-check the applicable user-settings.

The software version may be a clue. I'll give it a try.
 
Last edited:
I am sure that username and password are correct and user have admin rights.