Jump to content
Sign in to follow this  
rory

Dahua PSS New tests

Recommended Posts

Warning -The following may only be suitable or advanced users.

 

EzPSS.exe, for Dahua PSS software

 

This sets up a single DVR in the PSS software (multisite coming soon).

It could be used instead of PSSProject.exe to do the following based on the INI settings:

 

1-Create a single DVR

2-Set a multiview

3-Create a last monitor based on that device

4-Create hi res and or low res tasks and set span time, based on multiview setting

5-Start a task

6-Auto Login

7-Remove Password - saves in a new INI incase they want the password back

8-Starts PSS in full screen

 

INI settings - 0=no, 1=yes

 

[pss]

login=auto login to PSS

nopass=removes the password (saves incase you want to set it back on)

fullscreen=start PSS in full screen

view=total cameras/multiview

load=start PSS or not

 

[tasks]

type= 0-Main Stream, 3-Extra Stream, 03-Main Stream and Extra

start=Which task to start, 0 or 3

time=update time of video windows, 10=default, eg. 43200 is good if you want to drag video around

 

Main Stream = HI-RES, Extra Stream = LOW-RES

 

Extract EZPSS.zip into ANY pss path and use EZPSS.exe instead of PSSProject.exe

Make sure to change the info in EZPSS.ini first

If you just want to update the PSS device, tasks and login, make load=0 so it doesnt start PSS.

Then you can just use the regular PSS shortcut.

 

This is a demo, not on my site yet.

EZPSS.zip

Share this post


Link to post
Share on other sites

Using the above EzPSS.

 

This is an example of how to apply a new Skin to the default PSS Installation path, and then update the settings and start PSS.

 

Basically in the skin folder we put the EZPSS.exe, EZPSS.ini, and PSSFS.exe.

If they exist in the skin folder they will be copied and if load is turned on in the SKIN CMD Install file, then it will load EZPSS if that exists in the PSS path - else it would load PSSProject.exe

 

It only has to load EZPSS once to add the device, tasks and login settings.

Then you can just use the regular PSS shortcut as it is updated in the skin install.

But if you want full screen you either need to run EZPSS or PSSFS, instead of PSSProject.exe

 

The skin install still replaces the existing PSS_Config.ini with the one in the skin folder, but that will change as I plan a PSS_Skin.ini especially for that purpose - coming soon. Currently the skin install is open source and uses CMD and VBS files.

 

To Test:

 

Uninstall PSS if it already exists and install a new copy.

Extract the attached zip folder anywhere, then run PRO-SKIN.cmd.

make sure to change the IP and login in the EZPSS.ini in the skin folder (pro) first though.

It will update the newly installed PSS with a skin called "pro", along with the new settings and tasks and then start PSS. A screenshot of the "pro" skin is at the bottom of this post.

 

Note, this is a demo - I'm still working on it.

 

 

pssp3-1.jpg

pro-test.zip

Share this post


Link to post
Share on other sites

DahuaMPlayer

 

Play Downloaded AVIs from Dahua DVRs with Media Player Classic.

I made something like this for GeoVision a while back and figured it could serve an even better purpose for Dahua Recorded Video.

 

When you Playback with PSS you can download to AVI. But you need some generic H.264 codecs installed.

 

This is optimized for a USB Flash Drive.

When you have autorun enabled the popup will say "Explore Recorded Video"

It opens an Autorun.cmd file which uses a vbscript to see if the Divx codecs are installed.

If not then it silently installs the DivX H.264 codecs, and opens explorer to the root folder/drive.

 

In this example there is one video file. The videos go into a folder called VIDEO, and AVI (DAV folder will come later).

 

The files to play the videos are CMD files in the root path. Copy the files to new files and change the file path and name inside them and rename them for other videos. The CMD file calls another CMD file in the SYSTEM folder which then checks the paths and calls a VBS file which does some more. Basically you dont even need all that, just a call to the player from the first CMD will suffice - but we do more in this case.

 

This is an example of a video CMD file:

The part after SET file= is what you would change

@ECHO OFF

SET file=VIDEO\AVI\DOWNLOAD_20110916160000_1001_4.avi

Start /b SYSTEM\PLAY "%file%"
exit

SYSTEM\PLAY is actually PLAY.CMD, it just checks to see where it is being called from then calls Play.vbs - it is more for cosmetics or if you want to run a CMD to it from inside the SYSTEM folder. Play.vbs checks that the codecs are installed and if not it then installs them silently before opening the video in Media Player. Also some systems might have issues opening a VBS from the autorun.

 

If you want to just make a CMD file to play the video without checking the codecs then it is like this:

@ECHO OFF
start /b SYSTEM\Player.exe "VIDEO\AVI\DOWNLOAD_20110916160000_1001_4.avi"
exit

 

The basic Media Player is included in this and renamed Player.exe (mplayer2.exe, copyright Microsoft) - but you could replace it with any player once you keep the same name (or edit the PLAY.VBS file). I like the basic Windows Media Player though, it's simple and can drag the corners to resize, and maximize etc.

 

You could optionally change the autorun open value to one of the CMD files, eg. if you only have one video and want it to play when opening the drive, change the open value to that CMD file instead and change the "Action" to Play Recorded Video, or something else.

 

The SYSTEM folder also contains a codecs installation CMD file example, and the autorun CMD file which will do what it would do on Autorun from a USB flash drive.

 

It's very basic - next is to make it also play DAV files ...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×