PDA

View Full Version : Utility: DirMon2


Pages : [1] 2

Jere_Jones
02-19-2006, 11:00 PM
DirMon2 is now available! DirMon2 is a completely different program than the original DirMon so it doesn't suffer from the same flaws (i.e. it has completely new flaws).

What's new?
- It is now flexible beyond belief.
- Can run as a service (that is the prefered method now).
- Can run multiple jobs at the same time.
- Allows building of command line options with substitutions from the target filename.
- Most fields now accept Perl-style regular expressions.
- The order in which jobs are processed is now configurable.

Here are some important things you should know when you are setting it up:

http://www.dragonglobal.org/images/DM2JobSettings.gif

When you click on the "New Button" you will be asked for a name. This name can be pretty much anything you want. Since it will be used in the Current Status tab so you can identify what is currently running and what is waiting to run.

The circled sections are the minimum sections that must be filled out for a job. What you see is a basic setup for running ShowAnalyzer.

http://www.dragonglobal.org/images/DM2GlobalSettings.gif

Since the DirMon2 service isn't installed when DirMon2 is installed, you will need to install it manually via the "Install" button circled above. Anytime you want to change any of the service settings, you will need to click the uninstall and then click the install button to actually apply the settings. Of course you can also use the service management built into Windows.

A major change from the old DirMon is how deleting old files is handled. Now you can have different settings for different directories. These are managed in the "Clean up" section on the "Global Settings" tab. When you click on the "Add" button (circled above), you get the following dialog:

http://www.dragonglobal.org/images/DM2AddCleanup.gif

Fill it out and hit ok. It's that simple. One important thing is that the clean up descriptions are completely independent. So if you want to delete txt files when there isn't a mpg or an mpeg these have to be together. Otherwise any given txt file will get deleted by one cleanup or the other. Make sense? If not, let me know and I'll try to elaborate.

Now, the important step: SAVE YOUR SETTINGS!!
http://www.dragonglobal.org/images/DM2SaveSettings.gif

Now you can click on the "Start" button to start DirMon2 doing what it does.

You may be asking how you control how many jobs run at the same time. On the "Global Settings" tab there is a setting for the total number of resources available. Each job has a setting for the number of resources required. They default to 100 each so that only 1 job will run at a time. However, if you change the number of resources required, then you change how many jobs will run at once. For example, a job requiring 50 resources can have 2 jobs running at once if there are 100 resources available. Make sense? If not, let me know and I'll elaborate.

EDIT: It might be nice to let you know where to get it. Download it from here: http://www.dragonglobal.org/dirmon.htm

EDIT 2: Command Line Options Substitutions
The command line options block is a rather complicated creature.
First, if it is blank, then the target file name is added.
Example
Command Line Options:
Result: ShowAnalyzer X:/Directory/file.mpg
Second, if it is not blank, but does not have any of the substitution strings then the the target file name is put before what ever is put in the options block.
Example
Command Line Options: -status
Result: ShowAnalyzer X:/Directory/file.mpg -status
Third, if there are any substitution strings used then ONLY what is built from the options block is passed to the processor.
Example
Command Line Options: -i [[%FULLFILESPEC%]] -o [[%PATH%/%BASENAME%.avi]]
Result: ShowAnalyzer -i X:/Directory/file.mpg -o X:/Directory/file.avi

What are the substitution strings and what will the result be?

Example filename: D:/TV/Nova.mpg
%FULLFILESPEC% - D:/TV/Nova.mpg
%DRIVE% - D
%PATH% - D:/TV
%DIRECTORY% - TV
%BASENAME% - Nova
%EXTENSION% - mpg

Example filename: D:/Nova.mpg
%FULLFILESPEC% - D:/Nova.mpg
%DRIVE% - D
%PATH% - D:
%DIRECTORY% -
%BASENAME% - Nova
%EXTENSION% - mpg

Example filename: //Media/TV/Nova.mpg
%FULLFILESPEC% - //Media/TV/Nova.mpg
%DRIVE% - //Media/TV
%PATH% - //Media/TV
%DIRECTORY% -
%BASENAME% - Nova
%EXTENSION% - mpg

Example filename: //Media/TV/SageTV/Nova.mpg
%FULLFILESPEC% - //Media/TV/SageTV/Nova.mpg
%DRIVE% - //Media/TV
%PATH% - //Media/TV/SageTV
%DIRECTORY% - SageTV
%BASENAME% - Nova
%EXTENSION% - mpg


Additionally, anything contained within [[ ]]'s will be surrounded with quotes if necessary (i.e. there are any spaces). DO NOT NEST THEM!! Bad, bad things will happen if they are nested. If someone can come up with a possible use for nested quotes, then I'll look into supporting it. Until then, just don't do it.

Version History
0.5.0 - 19 Feb 2006
- Initial public release

0.5.1 - 21 Feb 2006
- Queued Jobs list now updates properly
- Added logging of when jobs start and end
- Process Subdirectories can now be turned off
- First line of Active Jobs list now displays the number of resources currently in use

0.5.2 - 22 Feb 2006
- Fixed crash when adding a directory when no ini file already exists.

0.5.3 - 5 Mar 2006
- Fixed typo in GUI
- Added "Allow interaction with desktop" setting
- Made changes to job search. Hopefully it will be more reliable.
- Passwords are now encrypted when they are saved in the ini file.

0.5.4 - 8 Mar 2006
- Fixed bug that would occasionally cause 100% cpu usage.

0.5.5 - 20 Apr 2006
- Added setting to adjust delay on drive idle check and file finished check.
- Fixed bug preventing custom command lines from working.
- Added DirMon2Hidden.exe for those of you that want to use DirMon2 in the same way as the original DirMon (i.e. NOT as a service)

0.5.6 - 20 Jun 2006
- Changed method used to determine if a file is being used or written to. Added "Wait until file is idle" option to reflect new methods.
- *NOTE* "Wait until file is finished" attempts to secure write access to the file in question. It will not write to or change the file in any way. Failure indicates the file is already being written to. Although this can also be caused by a program improperly setting access modes. (Windows Media Player is known to do this)
- *NOTE* "Wait until file is idle" attempts to secure delete access to the file in question. It will not delete the file. Failure indicates another program has the file open, either for reading or writing. Access restrictions to the directory can also cause this test to always flag.
- *NOTE* "Wait until drive is idle" checks the free space on the drive, waits for the number of seconds specified in the "Wait time" block, and then checks again. If the free space has decreased, then the drive is determined to be "In use".
- Added Process ID to the Active List.

0.5.7 - 26 Jun 2006
- An entry in the Activity Log will now be made when deleting a file.
- Fixed bug causing some files to never be found.
- Changed forward slashes to back slashes. (Happy?)

0.5.8 - 16 Jul 2006
- "Wait until file is idle" will now load correctly.
- Added entry in activity log for when the overseer starts and ends.
- Corrected error trapping in cleanup execution.
- Overseer shouldn't just stop anymore.

0.5.9 - 17 Jul 2006
- Jobs that are already running won't be added to the queue anymore.

0.6.0 - 4 Aug 2006
- Added another method to determine if the file is finished before running a job.

0.6.1 - 14 September 2006
- Added another method to determine if the job is finished. This should prevent jobs that crash from holding up the queue.

0.6.2 - 3 October 2006
- Potentially fixed race condition when a job stalls due to "Wait..." reasons.

0.6.3 - 27 December 2006
- Fixed a problem when trying to delete a file that was already deleted.

Enjoy,
Jere

DFA
02-19-2006, 11:24 PM
Nice going Jere. Seems to be maturing and getting a professional polish to it. Very nice all-around utility.

DFA

mightyt
02-19-2006, 11:59 PM
You are awesome Jere!! :thumb: ...

Thanks for continuing to improve an already great product .... :goodjob:

Haven't tried it yet ... but any rule of thumb on what to do if you have DirMon 0.2.5 installed already??

Upgrade over it?

or

Uninstall and Install DirMon2 0.5.0??

T.

Jere_Jones
02-20-2006, 12:08 AM
Haven't tried it yet ... but any rule of thumb on what to do if you have DirMon 0.2.5 installed already??
DirMon and DirMon2 are completely different programs. Having one installed doesn't affect the other.

That said, I would recommend removing all traces of the, ahem, old DirMon before installing and running this one.

And, in case anyone is thinking about it, the settings from one can not transfer to the other.

Jere

joe123
02-20-2006, 12:20 AM
Nice Job! :clap:

Jere_Jones
02-20-2006, 12:33 AM
I have edited the first message to explain how the Command Line Options block works. It is another major improvement over the old, obsolete DirMon.

Jere

Jere_Jones
02-20-2006, 12:43 AM
Anyone who downloaded DirMon2 before I posted this message needs to redownload it. I forgot to un-hardcode the location of the service exe. :blush:

Jere

sleonard
02-20-2006, 01:49 AM
Anyone who downloaded DirMon2 before I posted this message needs to redownload it. I forgot to un-hardcode the location of the service exe. :blush:

Jere

I just found that out! I just used regedit to search and modify the service location but I'll get the fixed version right away.

heffe2001
02-20-2006, 08:16 AM
Just installed it and it seems to be working fine (is there anywhere it outputs a log file as to what it has done, etc?). Would it be too much to ask for DirMon to be able to talk to Neilm's Webserver, and use that for conditions in it's processor rules? I'm still looking for a way to process my TS in MPG wrapper files (and before anybody says just tell sage to do program streams, it doesn't work that way from firewire). I'd also like to be able to save certain shows in xvid format instead of mpg, those shows all being from certain channels. Could set a trigger that if a file is recorded from channel x, start the auto-gk routine (or even SA, then video-redo to strip commercials automatically, THEN compress).

Jere_Jones
02-20-2006, 08:31 AM
Just installed it and it seems to be working fine (is there anywhere it outputs a log file as to what it has done, etc?).
No. You can see what it will do and what it is doing in the current status tab of the GUI. Just hit the refresh button. If you are requesting such a feature, then I can look into it.
Would it be too much to ask for DirMon to be able to talk to Neilm's Webserver, and use that for conditions in it's processor rules?
Yes. Besides adding an unbelievable amount of complexity, it would tie DirMon to SageTV, which is something I don't want to do.
I'm still looking for a way to process my TS in MPG wrapper files (and before anybody says just tell sage to do program streams, it doesn't work that way from firewire).
TS stream support is my current project (now that DirMon2 is out :))
I'd also like to be able to save certain shows in xvid format instead of mpg, those shows all being from certain channels. Could set a trigger that if a file is recorded from channel x, start the auto-gk routine (or even SA, then video-redo to strip commercials automatically, THEN compress).
In theory, you could add a job that would query the webserver and create a trigger file. This would need another program that would do the querying and creating but such a program shouldn't be hard to write. Run it with a high priority boost and low resource usage and you should be good to go.

I'm thinking of something along the lines of creating a small utility that would create something like BatmanBegins.501 if BatmanBegins.mpg was recorded on channel 501. Another option would be creating BatmanBegins.xvidme if BatmanBegins.mpg matches some sort of criteria.

Just an idea.

Jere

Bohica
02-20-2006, 08:41 AM
TS stream support is my current project (now that DirMon2 is out :))
Jere

Just out of curiosity -- can someone point me to the ts wrapper issue in other threads here? I am curious because I create and play ts files through sage all the time. Wondering what the benefit of a wrapper is??

perfessor101
02-20-2006, 10:26 AM
Hello, I was just curious as to whether or not mapped network drives are supported by dirmon2 ?

Thanks for your time,

Bobby

Jere_Jones
02-20-2006, 10:56 AM
Hello, I was just curious as to whether or not mapped network drives are supported by dirmon2 ?
While I haven't tried it, I have no reason to suspect it won't. I have tested it thoroughly with UNC paths so I know it does fine over a network.

There is one catch: you have to have DirMon run as a user. Otherwise the drives won't be mapped. You also need to make sure that the user has the "Log on as a service" right. It is not automatically granted to even administrators so you need to make sure you add it. (Google for "Log on as a service" for specific instructions for your operating system)

I'm curious to know how it goes for you.

Jere

malbec
02-20-2006, 11:34 AM
Jere you are awesome, you should charge for this as well.

Now, for someone who knows just enough about PC to be dangerous, is this possible, and if so, can someone point me to it/layout what I need to do?

I am looking for a script/DirMon2 setup that will re-encode my recordings to dvix or xivd and then delete the Mpeg file when done all without any loss of features in Sage (recording information). Kind of a pieced together "showsqueeze"

evilpenguin
02-20-2006, 12:48 PM
Wow, Dirmon2 looks great, i'll have to play around with that this week. Thanks Jere :goodjob:

heffe2001
02-20-2006, 01:30 PM
Just out of curiosity -- can someone point me to the ts wrapper issue in other threads here? I am curious because I create and play ts files through sage all the time. Wondering what the benefit of a wrapper is??

What I ment by wrapper is, with the Firewire HD recorder, your files are dropped as a TS file, with a mpg extension. It's still just a TS file, just has a different extension. BUT it did play havoc with SA until TS detection was added a couple versions back. SA would hang when it hit a TS as MPG file, and you had to manually create a 0-byte .txt file to get it to go past it.

Since TS decoding is being worked on now, I can always just wait for it :). I'd say I get better detection of commercials on my SD content with SA than I do on my HD content with comskip anyway (last couple times I used it, comskip was completely wrong about commercials in the shows I ran it on).

I tried changing my graph on the firewire capture to one that converted the TS to a PS, but never had much luck with it (lots of crashes, and it's plugged into my server, so not the best place to be playing with something like that :) ).

Stuntman
02-20-2006, 01:35 PM
You may be asking how you control how many jobs run at the same time. On the "Global Settings" tab there is a setting for the total number of resources available. Each job has a setting for the number of resources required. They default to 100 each so that only 1 job will run at a time. However, if you change the number of resources required, then you change how many jobs will run at once. For example, a job requiring 50 resources can have 2 jobs running at once if there are 100 resources available. Make sense? If not, let me know and I'll elaborate.

Please elaborate..
:)


I can't seem to get anything out of the queue and actually run! To run 2 instances of ShowAnalyzer what would we need do? Create two identical jobs in the 'job management' screen and set the 'when' field to 50? The resources available in the global settings vs. the resources required.. what is the difference?

Resources available.. is that a % of free CPU that SA can use? So if I put it to 100% that means SA can use 100% of free CPU cycles?
Resources required.. is this a setting per job to dictate how much of the 'available' resources each job can use?

Currently I have two shows in the queue, but neither is starting..

Thanks!

Jere_Jones
02-20-2006, 02:29 PM
Please elaborate..
:)


I can't seem to get anything out of the queue and actually run! To run 2 instances of ShowAnalyzer what would we need do? Create two identical jobs in the 'job management' screen and set the 'when' field to 50? The resources available in the global settings vs. the resources required.. what is the difference?

Resources available.. is that a % of free CPU that SA can use? So if I put it to 100% that means SA can use 100% of free CPU cycles?
Resources required.. is this a setting per job to dictate how much of the 'available' resources each job can use?

Currently I have two shows in the queue, but neither is starting..

Thanks!
Step 1 in troubleshooting would be to hit the "Validate Job" button. It will look for anything fishy. What did it say?

Step 2 would be making sure that DM2 is running. On the Global Settings page what is the "Current Status"?

Step 3 would be.... um.... one of those two should point us in the right direction.

Regarding the resources questions: Resources available is just some arbitrary number. It could easily be 1000000 or 1 or 10. I choose 100 because it seemed to make sense. Resources required is how many of those resources need to be available before the job can run. DM2 just keeps count of how many "resources" are in use. It is just a number with no real meaning. When DM2 kickes of a job then the "count" goes up by the "Resources Required" setting. When a job finishes then the count is reduced. If a job requires the count to go above the "Resources Available" number, then DM2 waits until the "count" has dropped sufficently.

You don't need to create identical jobs. DM2 will (well... should) kick off as many instances as it can.

Jere

Stuntman
02-20-2006, 02:39 PM
Step 1 in troubleshooting would be to hit the "Validate Job" button. It will look for anything fishy. What did it say?

Step 2 would be making sure that DM2 is running. On the Global Settings page what is the "Current Status"?

Step 3 would be.... um.... one of those two should point us in the right direction.

Regarding the resources questions: Resources available is just some arbitrary number. It could easily be 1000000 or 1 or 10. I choose 100 because it seemed to make sense. Resources required is how many of those resources need to be available before the job can run. DM2 just keeps count of how many "resources" are in use. It is just a number with no real meaning. When DM2 kickes of a job then the "count" goes up by the "Resources Required" setting. When a job finishes then the count is reduced. If a job requires the count to go above the "Resources Available" number, then DM2 waits until the "count" has dropped sufficently.

You don't need to create identical jobs. DM2 will (well... should) kick off as many instances as it can.

Jere
Step one says: "No Problem Found"
Step two status is a green: "Started"
Step three... well.. see the above two..

I tried changing the run as from local system to admin.. and back.. didn't make any difference as Dirmon seems to start just fine.. the queue keeps getting bigger, as it seems to be finding things to run.. just doesn't seem to be running them.. I thought once, for just a second (not even that long) I saw a show pop into the 'active' area in the gui, but it vanished so fast that I can't be sure it was ever there...

jlabrue
02-20-2006, 02:47 PM
Please elaborate..
:)


I can't seem to get anything out of the queue and actually run! To run 2 instances of ShowAnalyzer what would we need do? Create two identical jobs in the 'job management' screen and set the 'when' field to 50? The resources available in the global settings vs. the resources required.. what is the difference?

Resources available.. is that a % of free CPU that SA can use? So if I put it to 100% that means SA can use 100% of free CPU cycles?
Resources required.. is this a setting per job to dictate how much of the 'available' resources each job can use?

Currently I have two shows in the queue, but neither is starting..

Thanks!

I will concur that it has a job in queue but nothing is happening. Validate checks out as well. Old DirMon worked fine. Here are some prints of my settings. (Don't laugh at the Desperate Housewives epsiode :-)

I like the new layout as well!

3235

3236

3237

Jere_Jones
02-20-2006, 03:03 PM
I've been able to duplicate this. It seems that SA is shutting down as soon as it is run. I'm investigating.

Jere

briands
02-20-2006, 03:03 PM
Count me among those who are building a queue but aren't processing. Validation checked out.

I started looking at the SA configuration and it lookes as if it reinstalled too. Is that part of the Dirmon installation?

stanger89
02-20-2006, 03:11 PM
Jere,

Looks good. Two questions:

1) Does Dirmon really need to put the user/pass in the ini file?
1a) If so, does it have to be plain text?

2) Doesn't seem to do anything :confused:
[Global]
Polling Time = 60
Available Resources = 100

[Service]
Start Automatically = 1
Run as Local System = 0
Run as User = 1
User Name = deleted to protect the guilty
User Password = :D

[Job Description 1]
Name = ShowAnalyzer
Processor = C:/Program Files/Dragon Global/ShowAnalyzer/ShowAnalyzer.exe
Command Line Options =
Must Exist 1 = mpg
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = txt
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = //thunderbird/SageTV
Processee Extension 1 = txt
Processee Extension 2 = log
Processee Extension 3 = ccyes
Processee Extension 4 = ccno
Processee Extension 5 = vprj
Processee Extension 6 = wme
Processee Extension 7 = vls
Resources Needed = 100
Timeout Enabled = 0
Timeout = -1
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 0
Wait Until File Is Finished = 0
Wait Until Drive Is Idle = 0
Hide Console = 1
Blackout Enabled = 0
Blackout Start Time = 0
Blackout End Time = 0

Jere_Jones
02-20-2006, 03:13 PM
Count me among those who are building a queue but aren't processing. Validation checked out.

I started looking at the SA configuration and it lookes as if it reinstalled too. Is that part of the Dirmon installation?
Thanks for the hint! Best I can figure, uninstalling DirMon deletes the Dragon Global registry branch. That means ShowAnalyzer can't find it's dll or registration information.

Reinstalling SA and reentering the registration data fixes it.

Jere

Jere_Jones
02-20-2006, 03:18 PM
1) Does Dirmon really need to put the user/pass in the ini file?
Yes
1a) If so, does it have to be plain text?
No. As a matter of fact, I have the means in place to encypt them. I'm just waiting on Intel to send me some stuff and then I'll be able to start encrypting it. I was only planning on encrypting the password, but I can easily encrypt the username if you think it is important.
2) Doesn't seem to do anything :confused:
See my previous post.

Jere

stanger89
02-20-2006, 03:28 PM
Yes

No. As a matter of fact, I have the means in place to encypt them. I'm just waiting on Intel to send me some stuff and then I'll be able to start encrypting it. I was only planning on encrypting the password, but I can easily encrypt the username if you think it is important.

Don't really care about the user.

See my previous post.

I'm not even getting a queue for some reason.

-edit

Nevermind I got it. Had the wrong stuff in target extensions.

Just curious, do you have to stop/start the service for changes to catch?

Oh, and I've got 4 instances of SA running now :D using about 10% of my Gig-E and half of both my cores :jump:

Jere_Jones
02-20-2006, 03:32 PM
Stanger,

Remove your showanalyzer job and recreate it according to the first post in this thread. Things have changed from the original DirMon.

Jere

sleonard
02-20-2006, 04:10 PM
I'm not even getting any jobs queued much less active and processing. Everything looks setup correctly.

Jere_Jones
02-20-2006, 04:15 PM
I'm not even getting any jobs queued much less active and processing. Everything looks setup correctly.
Care to post your dirmon2.ini?

Jere

sleonard
02-20-2006, 04:29 PM
I finally figured it out. Worked on it off an on unsuccessfully since last night and 3 minutes after posting for help I changed the where from D:/SageTV to //Sageserver/SageTV and got jobs queued. (The clue that was staring me in the face was the forward slashes. Apparently Dirmon 2 doesn't do local paths since it doesn't use backslashes?

Once I got jobs queued, I reinstalled/reregistered SA and the jobs started processing after about 2 more minutes.

Jere_Jones
02-20-2006, 04:36 PM
Apparently Dirmon 2 doesn't do local paths since it doesn't use backslashes?
Can you explain what you mean by local paths?

Jere

Wheemer
02-20-2006, 04:55 PM
How can I have SA's task tray icon show up?

Currently it seems to be working, although I get no SA interaction, it seems to be hidden.

jlabrue
02-20-2006, 05:04 PM
How can I have SA's task tray icon show up?

Currently it seems to be working, although I get no SA interaction, it seems to be hidden.

I wouldn't mind that as well. Nice to be able to check if possible. Don't you love all this "advice" right after you release an update :)

Also, reinstalling ShowAnalyzer corrected my problem with the queue not processing. It is working fine now

Jere_Jones
02-20-2006, 05:11 PM
How can I have SA's task tray icon show up?

Currently it seems to be working, although I get no SA interaction, it seems to be hidden.
To make this happen, DirMon has to run as LocalSystem. Then you need to go into the Service manager and check the "Allow service to interact with the desktop".

A "feature" of not allowing it to interact with the desktop is that it can never steal the focus like it used to. :)

Jere

Jere_Jones
02-20-2006, 05:45 PM
Just curious, do you have to stop/start the service for changes to catch?
Yes. You need to save them first since the service looks at whatever settings are saved to disk.
Oh, and I've got 4 instances of SA running now :D using about 10% of my Gig-E and half of both my cores :jump:
Is a good thing?

Jere

stanger89
02-20-2006, 05:55 PM
Yup :D

ajuhawk
02-20-2006, 05:59 PM
Just wanted to say thanks! Got it all set up and seems to be working great. Multiple processing is a big plus.

folly12345
02-20-2006, 06:10 PM
Jere -
FWIW on the building a queue and not processing- I did not uninstall the old dirmon, just stopped it. I then installed and config'd dirmon2, sa would not start. I re-installed sa and it is up and running fine after the re-install.

This is a nice update to dirmon, thanks. :thumb:

-Jeff

snipeman
02-20-2006, 06:10 PM
Thanks for updating this great program. I'll install it tonight!

Andy

AWS
02-20-2006, 06:31 PM
I was wondering if it would be possible to have DM2 look to process files at the top and bottom of every hour instead of every X seconds. Still keep the option to process files every X seconds OR automatically look for new files 31 minutes after the hour and 1:01 after the previous hour. For 99.9% of my shows, they are all in increments of 30 minutes. So why spend resources looking for new shows between 3 minutes after the hour to 28 minutes, then again between 33 and 57?

Know what I mean?

Great work on SA, DM and DM2!

AWS

Jere_Jones
02-20-2006, 06:40 PM
I was wondering if it would be possible to have DM2 look to process files at the top and bottom of every hour instead of every X seconds.
I'll keep it in mind, but I don't think so.

Jere

geogecko
02-20-2006, 10:48 PM
Thanks for the hint! Best I can figure, uninstalling DirMon deletes the Dragon Global registry branch. That means ShowAnalyzer can't find it's dll or registration information.

Reinstalling SA and reentering the registration data fixes it.

Jere

LOL, I think you have to reinstall DirMon2 as well, if you uninstalled DirMon after installing DirMon2. All of my settings in DM2 were wiped out after uninstalling DirMon. Could not get the service part to work, then I thought, I bet you have to reinstall DM2. Sure enough, that works...:bang:

BTW, Jere. Outstanding work on this. Love all the features. :clap:

sleonard
02-20-2006, 11:55 PM
Can you explain what you mean by local paths?

Jere

When I tried to choose D:\SageTV on the job management tab, Where section, by clicking the New button. In the Browse for Folder pop-up I expanded My Computer then D:\ and chose the SageTV folder. The entry that ended up in the Directories list was D:/SageTV not D:\SageTV and it could not find anything to process. As soon as I changed it to \\Sageserver\SageTV (displayed however as //Sageserver/SageTV,) Dirmon2 immediately found 26 jobs.

Also, in the What section, Program to Run also uses forward slashes instead of backslashes in C:\Program Files\Dragon Global\ShowAnalyzer\ShowAnalyzer.exe but it does find and run SA. Go figure?

I initially thought it was the incorrect use of backslashes but I now think that is another issue since they are still being used even though everything is working. What must have been keeping it from working was the local path, i.e. - D:\SageTV instead of the UNC path.

Humanzee
02-21-2006, 01:18 AM
I noticed that if you have the "." as part of your extentions listed in your triggers, nothing will show in the job status window, it just doesn't work. Make your triggers with out the period.

Also, Jere
Can you explain about the "How" section, Im curious about the "Timeout". I had a session of showanalyzer hang on a partial show segment that was only like 10 megabytes. It sat there for the whole weekend before I noticed it and deleted it manually. Does this mean that we can time out SA after say, X amount of time if it hangs?

Jere_Jones
02-21-2006, 03:48 AM
What must have been keeping it from working was the local path, i.e. - D:\SageTV instead of the UNC path.
I don't know. D:\SageTV and D:/SageTV should be the same. You can open up a command window and check it out.

Jere

Jere_Jones
02-21-2006, 03:49 AM
Also, Jere
Can you explain about the "How" section, Im curious about the "Timeout". I had a session of showanalyzer hang on a partial show segment that was only like 10 megabytes. It sat there for the whole weekend before I noticed it and deleted it manually. Does this mean that we can time out SA after say, X amount of time if it hangs?
That is correct. The timeout is in seconds. DM2 will try to terminate the process after the timeout period and move on to the next job.

Jere

cenwesi
02-21-2006, 05:32 AM
Ok can someone tell me why when my shows are done recording and DM2 starts, it just hangs there. All my .txt files are zero bytes?

Motofreak75
02-21-2006, 08:34 AM
I also noticed that if I select to scan the root of Drive E:\ only (or in this case E:/ ) and uncheck the search subdirectories. it still scans the entire the drive. ???? :(

sleonard
02-21-2006, 12:43 PM
I don't know. D:\SageTV and D:/SageTV should be the same. You can open up a command window and check it out.

Jere

I'm sorry, what I meant to convey was that I no longer thought it was the backslashes or forward slashes but the difference between D:/SageTV path style and the //Sageserver/SageTV UNC path style. Only the UNC path works on my system.

I guess it doesn't matter much now that I'm using //Sageserver/SageTV except that I've read that this will still use network resources even though the disc is physically a local drive.

Humanzee
02-21-2006, 12:46 PM
That is correct. The timeout is in seconds. DM2 will try to terminate the process after the timeout period and move on to the next job.

Jere
Why seconds? Presumably I could record a 4 hour baseball game or something and SA could be running that entire time. So should I put in 14,400 seconds? Or does the timeout get ignored if the program SA is analyzing is still being recorded?

geogecko
02-21-2006, 01:51 PM
Why seconds? Presumably I could record a 4 hour baseball game or something and SA could be running that entire time. So should I put in 14,400 seconds? Or does the timeout get ignored if the program SA is analyzing is still being recorded?

Hmm...that's an interesting question.

stanger89
02-21-2006, 04:15 PM
Alright Jere...

Probably something stupid on my part, but:

I can't get DM2 to detect things that occur after it's initial startup, if I start a recording after I start DM2, then it won't find it (even with a 1 sec polling time).

Second, the Current Status doesn't seem to like updating. If I hit refresh after starting (or restarting) DM2, then it will show the queue and active jobs. If I refresh again, it will not show anything in the active jobs, even though SA is running.

SA is getting run on those things that are queued though.

Jere_Jones
02-21-2006, 05:00 PM
Ok can someone tell me why when my shows are done recording and DM2 starts, it just hangs there. All my .txt files are zero bytes?
What just hangs? DM2? SA? If SA, does SA work for you normally? Are you running in free mode? If so, I'm not even sure it will run as LocalSystem. You may need to run it as a user.

Jere

Jere_Jones
02-21-2006, 05:08 PM
Why seconds?
Why not seconds? Did you have something else in mind?
Presumably I could record a 4 hour baseball game or something and SA could be running that entire time. So should I put in 14,400 seconds?
60*60*4 = 14400 so, yeah, 14400 seconds. Although you may want to increase that a few seconds to let SA finish up.
Or does the timeout get ignored if the program SA is analyzing is still being recorded?
DM2 has no idea if SA is doing what it's supposed to or is hung. It only starts a timer and if the job hasn't finished by the timeout then DM2 kills it.

Jere

Jere_Jones
02-21-2006, 05:09 PM
Stanger,

Try running DM2 from the command line with no command line options. Do you see JobFinder:GetOutstandingJobs?

Jere

Jere_Jones
02-21-2006, 05:10 PM
Out of curiosity, is anyone running DM2 on Windows2k? Does it work?

Jere

Jere_Jones
02-21-2006, 05:12 PM
Second, the Current Status doesn't seem to like updating. If I hit refresh after starting (or restarting) DM2, then it will show the queue and active jobs. If I refresh again, it will not show anything in the active jobs, even though SA is running.
The Active list and Queue list don't automatically update. You have to hit refresh to get them to update.

Did you make any changes to your configuration besides changing the target extensions?

Jere

stanger89
02-21-2006, 05:35 PM
Stanger,

Try running DM2 from the command line with no command line options. Do you see JobFinder:GetOutstandingJobs?

Jere
C:\Program Files\Dragon Global\DirMon2>DirMon2.exe
JobFinder::GetOutstandingJobs()
Priority Name Filename
--------NO JOBS--------
JobRunner loop
JobRunner queue updated.
Priority Name Filename
1 ShowAnalyzer //Thunderbird/sagetv/DharmaGreg-HausArrest-6748059-0.mpg

JobRunner kill requested.
That file has not an is not being scanned.

Further I started another 2 recordings just now, and Dirmon has not caught them.

I run Dirmon from the command line and they are now queued, but not processing.

I stop, and restart the service, and now 2 of the 3 shows in queue (which I had to run Dirmon from the command line to get queued) are processing.

And, a bit later now, and the last job has dissappeared from the Active Jobs list, but SA is still running on the last file, and the Queued Jobs still lists all the jobs, even the finished ones.

One last thing, run Dirmon from the command line, and now it shows no jobs, but SA is still running on the last one.

The Active list and Queue list don't automatically update. You have to hit refresh to get them to update.
Yup, caught that, and hitting refresh seems to do nothing after the first two times (I mentioned above).

Did you make any changes to your configuration besides changing the target extensions?
Not really sure, but here's the current config:
[Global]
Polling Time = 60
Available Resources = 100

[Service]
Start Automatically = 1
Run as Local System = 0
Run as User = 1
User Name = something
User Password = somethingelse

[Job Description 1]
Name = ShowAnalyzer
Processor = C:/Program Files/Dragon Global/ShowAnalyzer/ShowAnalyzer.exe
Command Line Options =
Must Exist 1 = mpg
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = txt
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = //Thunderbird/sagetv
Processee Extension 1 = mpg
Resources Needed = 50
Timeout Enabled = 0
Timeout = -1
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 0
Wait Until File Is Finished = 0
Wait Until Drive Is Idle = 0
Hide Console = 0
Blackout Enabled = 0
Blackout Start Time = 0
Blackout End Time = 0

[Cleanup Description 1]
Directory = //Thunderbird/sagetv
Process Subdirectories = 0
Target Extension 1 = txt
Target Extension 2 = log
Target Extension 3 = ccyes
Target Extension 4 = ccno
Target Extension 5 = vprj
Target Extension 6 = wme
Target Extension 7 = vls
Target Extension 8 = edl
Trigger Extension 1 = mpg

Jere_Jones
02-21-2006, 05:56 PM
Stanger,

This is a shot in the dark, but does the behavior improve if you take the mpg out of the must exist block?

Also, what OS are you running?

Jere

stanger89
02-21-2006, 06:00 PM
I've had mpg in and out of the must have with seemingly no effect.

I'm running XP Pro (Dirmon), and the files are stored on my server running 2003 Server. I'm running it as the same user I'm logged as, which has admin rights on both machines.

Jere_Jones
02-21-2006, 06:06 PM
Is the cleanup working?

Jere

Jere_Jones
02-21-2006, 06:18 PM
Stanger,
The JobRunner Kill requested: Was that you? Did you hit Ctrl-C? Or did that happen on its own?

Jere

Jere_Jones
02-21-2006, 06:41 PM
I also noticed that if I select to scan the root of Drive E:\ only (or in this case E:/ ) and uncheck the search subdirectories. it still scans the entire the drive. ???? :(
Fixed for the next version.

Jere

stanger89
02-21-2006, 06:56 PM
Stanger,
The JobRunner Kill requested: Was that you? Did you hit Ctrl-C? Or did that happen on its own?

Jere

Happened on it's own.

Jere_Jones
02-21-2006, 06:59 PM
Happened on it's own.
Then that would be the problem. I'll be releasing a new version shortly that has some improved logging. Gimme about 20 minutes.

Jere

Deadbolt
02-21-2006, 06:59 PM
Fixed for the next version.

Jere

Wow, I hope that next version comes out soon...all my drives have the video in the root dir...and have subdirectories with .txt files (that I don't want deleted if there is no cooresponding .mpg).

Jere_Jones
02-21-2006, 07:47 PM
Wow, I hope that next version comes out soon...
Is, umm, now soon enough? 0.5.1 is posted and available for download. Just install it over the old version.

0.5.1 - 21 Feb 2006
- Queued Jobs list now updates properly
- Added logging of when jobs start and end
- Process Subdirectories can now be turned off
- First line of Active Jobs list now displays the number of resources currently in use

Jere

Deadbolt
02-21-2006, 07:56 PM
Wow! Thanks!

dflachbart
02-21-2006, 09:11 PM
Hi Jere,

I just updated to 0.5.1, and I always get the following error when creating a new job, after selecting the video directory:

OS: Windows XP Home Edition, SP2
CPU: GenuineIntel, Intel Pentium 4, MMX @ 2933 MHz

Module name: E:\Video\DirMon2\DirMon2GUI.exe

Application data:
Application data:
VmVyc2lvbjogV2tWcmNFNXNhalpDVUU5Ykt5ZFRPQ1VwUHlZck9pQXN
QMUFpTGdJRlN5SS9Jekp3Wm5wNGNEVWtKemdtSVRoS2ZIVi9lMmgrUV
RBOVJscHNmbmhQVGdGbVRrMUJRa2g1Q3c9PQ0KSW1hZ2VCYXNlOiAwM
DQwMDAwMA0KRWlwOiAxMkUwNEFDDQpFYXg6IDZBMkE3NTNEDQpFY3g6
IDEyRTMwMDANCkVkeDogMA0KRWJ4OiBBRTA2NjgNCkVzaTogMTJFMDQ
0RA0KRWRpOiBCQg0KRWJwOiAxMkVGNzQNCkVzcDogMTJFRjIwDQpFcn
JvckNvZGU6IA0KOEIsOSwyNixFQiwyLENELDIwLDgxLEMwLDkwLDk1L
Dk1LDVELEYyLEV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ncc
3lzdGVtMzJcVVNFUkVOVi5kbGwNCj4gQzpcV0lORE9XU1xzeXN0ZW0z
MlxNUFIuZGxsDQo+IEM6XFdJTkRPV1NcU3lzdGVtMzJcZHJwcm92LmR
sbA0KPiBDOlxXSU5ET1dTXFN5c3RlbTMyXG50bGFubWFuLmRsbA0KPi
BDOlxXSU5ET1dTXFN5c3RlbTMyXE5FVFVJMC5kbGwNCj4gQzpcV0lOR
E9XU1xTeXN0ZW0zMlxORVRVSTEuZGxsDQo+IEM6XFdJTkRPV1NcU3lz
dGVtMzJcTkVUUkFQLmRsbA0KPiBDOlxXSU5ET1dTXFN5c3RlbTMyXFN
BTUxJQi5kbGwNCj4gQzpcV0lORE9XU1xTeXN0ZW0zMlxkYXZjbG50Lm
RsbA0KPiBDOlxXSU5ET1dTXHN5c3RlbTMyXE1TR0lOQS5kbGwNCj4gQ
zpcV0lORE9XU1xzeXN0ZW0zMlxXSU5TVEEuZGxsDQo+IEM6XFdJTkRP
V1Ncc3lzdGVtMzJcT0RCQzMyLmRsbA0KPiBDOlxXSU5ET1dTXHN5c3R
lbTMyXG9kYmNpbnQuZGxs


After hitting 'Ok' Dirmon exits...

0.5.0 was working. Any idea ?


Thanks,
Dirk

Enormous
02-21-2006, 10:59 PM
Hi Jere,

I just updated to 0.5.1, and I always get the following error when creating a new job, after selecting the video directory:

...

After hitting 'Ok' Dirmon exits...

0.5.0 was working. Any idea ?


Thanks,
Dirk

I am having the exact same error with the same error output.

Jere_Jones
02-22-2006, 04:35 AM
I just updated to 0.5.1, and I always get the following error when creating a new job, after selecting the video directory:

Does rebooting your computer make it work correctly?

Jere

dflachbart
02-22-2006, 05:41 AM
No, unfortunately not, that's the first thing I tried ...
I'll do a clean install when I get back from work, maybe it has to do with installing it over 0.5.0 ...

Dirk

jimmyb
02-22-2006, 08:07 AM
When I choose my video directory, this is the error I get:
OS: Windows XP Professional, SP2
CPU: GenuineIntel, Intel Pentium 4, MMX @ 2533 MHz

Module name: C:\Program Files\D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iBDOlxXSU5ET1dTX
FN5c3RlbTMyXE5FVFVJMS5kbGwNCj4gQzpcV0lORE9XU1xTeXN0ZW0z
MlxORVRSQVAuZGxsDQo+IEM6XFdJTkRPV1NcU3lzdGVtMzJcU0FNTEl
CLmRsbA0KPiBDOlxXSU5ET1dTXFN5c3RlbTMyXGRhdmNsbnQuZGxsDQ
o+IEM6XFdJTkRPV1Ncc3lzdGVtMzJcTVNHSU5BLmRsbA0KPiBDOlxXS
U5ET1dTXHN5c3RlbTMyXFdJTlNUQS5kbGwNCj4gQzpcV0lORE9XU1xz
eXN0ZW0zMlxPREJDMzIuZGxsDQo+IEM6XFdJTkRPV1Ncc3lzdGVtMzJ
cb2RiY2ludC5kbGwNCj4gQzpcV0lORE9XU1xzeXN0ZW0zMlx4cHNwMn
Jlcy5kbGwNCj4gQzpcV0lORE9XU1xTeXN0ZW0zMlxzdGkuZGxsDQo+I
EM6XFdJTkRPV1NcU3lzdGVtMzJcQ0ZHTUdSMzIuZGxs

rtengvad
02-22-2006, 11:34 AM
Hi Jere
I just downloaded and installed the latest version of this great piece of software and I too get an error when trying to add i directory.

remove - reboot - re-install - reboot didn't help

rtengvad

Humanzee
02-22-2006, 11:47 AM
Why not seconds? Did you have something else in mind?

Quantum Units, as time truely does not exist at all :p

Jere_Jones
02-22-2006, 02:18 PM
Those with errors: What type of directory are you selecting?

Jere

stanger89
02-22-2006, 02:26 PM
Is, umm, now soon enough? 0.5.1 is posted and available for download. Just install it over the old version.

0.5.1 - 21 Feb 2006
- Queued Jobs list now updates properly
- Added logging of when jobs start and end
- Process Subdirectories can now be turned off
- First line of Active Jobs list now displays the number of resources currently in use

Jere


Seems to be working :thumb: here.

dflachbart
02-22-2006, 03:00 PM
Those with errors: What type of directory are you selecting?

Jere

I have my recordings in D:\recordings which I share as \\host\recordings, so I first tried the UNC path. When this didn't work, I tried 'D:\recordings', with the same result. But I don't think it has anything to do with the directory type, because after that I also tried to select a completely different (empty and unshared) directory 'D:\tmp', and the same thing happened ...

Dirk

rtengvad
02-22-2006, 03:05 PM
Those with errors: What type of directory are you selecting?

Jere

My directory is D:\SageTV but I've tried other directory paths too - also on the same partition as DirMon. Same error. So the problem I think is not linked to the path name.

rtengvad

Jere_Jones
02-22-2006, 03:50 PM
A new version is up that fixes the "Add directory crash". That is really the only change.

Is anyone still having problems?

Jere

jimmyb
02-22-2006, 04:29 PM
Ty Jere. That directory fix works like a charm. Now if I can figure out how to get it to work LOL

Jere_Jones
02-22-2006, 04:38 PM
Now if I can figure out how to get it to work LOL
If you can be a little more specific, maybe I can help. :)

Jere

rtengvad
02-22-2006, 04:55 PM
Hi Jere
The new version fixed my directory choosing problem - thanks. Everything seems to be fine but when you hit start the service starts but nothing else happens. In the old version you could see the showanalyser icon in the tray when Dirmon started processing, but nothing happens now.

I tried to restart and let the machine idle for 5 min, but didn't help.

rtengvad

Jere_Jones
02-22-2006, 05:03 PM
Everything seems to be fine but when you hit start the service starts but nothing else happens.
Nothing happens? Does the current status change to "Started" or does it stay at "stopped"?
In the old version you could see the showanalyser icon in the tray when Dirmon started processing, but nothing happens now.
You'll have to open up window's Service Manager and put a checkmark in the "Allow Service to interact with desktop" block.

Jere

rtengvad
02-22-2006, 05:20 PM
Sorry. It IS actually working now. No analyzer icon in the tray but I can see in the task manager that Dirmon has called Showanalyzer to work.

Im pretty sure that it was not the case before but I have no idea what made the trick. Maybe the update I did to the newest ver. of ShowAnalyzer.

Tanks for your help.

rtengvad

Humanzee
02-22-2006, 07:28 PM
Ok, there is no file called SuperTroopers-1872511-1.mpg on my system anywhere.

On my X drive I have a "movies" subfolder and in it I have a file called "Super Troopers.avi" however that file has never been an mpg, named anything different or ever been in the "Y:\TVMedia" folder.

I hit refresh a bunch of time and it wouldn't go away, nor begin processing. As you can see from the attached image, there were no jobs running.

I removed the subdirectories option from DirMon2 Job Management "Where" options. Stopped the service, removed it, reinstalled it and started it again. Now the Current Status tab has removed the mpg from the Qued Jobs list.

Any Idea where this fantom mpg file came from or where it went? Weird.:rolleyes:

Jere_Jones
02-22-2006, 07:47 PM
Ok, there is no file called SuperTroopers-1872511-1.mpg on my system anywhere.

On my X drive I have a "movies" subfolder and in it I have a file called "Super Troopers.avi" however that file has never been an mpg, named anything different or ever been in the "Y:\TVMedia" folder.

I hit refresh a bunch of time and it wouldn't go away, nor begin processing. As you can see from the attached image, there were no jobs running.

I removed the subdirectories option from DirMon2 Job Management "Where" options. Stopped the service, removed it, reinstalled it and started it again. Now the Current Status tab has removed the mpg from the Qued Jobs list.

Any Idea where this fantom mpg file came from or where it went? Weird.:rolleyes:
I promise you that at one time that file existed. Really. :)

It could have been a LiveTV segment that got deleted before it could be processed. The latest version (0.5.2) improves the queue's updates. Previously it would only not update if the queue was empty. So it would appear that a file would stay in the queue forever.

Jere

cenwesi
02-23-2006, 01:09 PM
You might want to update the About information to reflect v0.5.2

dbdan
02-26-2006, 04:48 PM
I want to execute a batch file to close another application when a sage recording is done. In the 'Programs to run', I have "E:/DirMon2/test.bat"
The log shows
Starting: "StopTask" on "E:/SageTV/recordings/IfOnly-389854-0.mpg"

But the batch file does not get executed. Can this be done?

Thanks,
Dan

Jere_Jones
02-26-2006, 08:08 PM
I've had a report that "Wait until file is done" isn't working correctly. I'm investigating.

Jere

DFA
02-27-2006, 11:23 PM
This is off-topic since this is a "DirMon2" thread, but found something about SA as a result of playing with DirMon2.

I came to notice that when the check-box for SA "Stop scanning when playing" is ticked, it does not seem to work properly. When Sage is asleep and in the tray and recording (but not playing), SA will never-the-less pause. If already a known issue, please disregard.

EDIT: PS; I am using WebServer Plugin ver. 2.6 since this may have some bearing.

I stumbled into this thinking that SA was still screwed up after the uninstall of DirMon1 which kills an SA reg key.

I too was investigating why no tray icon and no apparent processing by SA: two different reasons (allow service to interact with desktop and the pause issue for SA's "Stop scanning when playing").

DFA

mike_15
03-02-2006, 04:58 PM
I always have "number of resources currently in use" showing in the current listings. The que does list several files to be processed.

I added one job using UNC and anther using the mapped location just in case.

[Global]
Polling Time = 600
Available Resources = 100

[Service]
Start Automatically = 1
Run as Local System = 1
Run as User = 0
User Name = sage
User Password =

[Job Description 1]
Name = Sage
Processor = C:/Program Files/Dragon Global/ShowAnalyzer/ShowAnalyzer.exe
Command Line Options =
Must Exist 1 =
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = txt
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = //Dvr1/dvds/more shows
Directory 2 = //Dvr1/shows
Processee Extension 1 = mpg
Resources Needed = 0
Timeout Enabled = 0
Timeout = -1
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 1
Wait Until File Is Finished = 0
Wait Until Drive Is Idle = 0
Hide Console = 1
Blackout Enabled = 0
Blackout Start Time = 0
Blackout End Time = 0

[Job Description 2]
Name = sage2
Processor = C:/Program Files/Dragon Global/ShowAnalyzer/ShowAnalyzer.exe
Command Line Options =
Must Exist 1 =
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = txt
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = Y:/more shows
Directory 2 = Z:/
Processee Extension 1 = mpg
Resources Needed = 100
Timeout Enabled = 0
Timeout = -1
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 1
Wait Until File Is Finished = 0
Wait Until Drive Is Idle = 0
Hide Console = 1
Blackout Enabled = 0
Blackout Start Time = 0
Blackout End Time = 0

[Cleanup Description 1]
Directory = //Dvr1/dvds/more shows
Process Subdirectories = 1
Target Extension 1 = txt
Trigger Extension 1 = mpg
Trigger Extension 2 = mpeg
[Cleanup Description 2]
Directory = //Dvr1/shows
Process Subdirectories = 1
Target Extension 1 = txt
Trigger Extension 1 = mpg
Trigger Extension 2 = mpeg

Jere_Jones
03-02-2006, 05:38 PM
I always have "number of resources currently in use" showing in the current listings. The que does list several files to be processed.

I added one job using UNC and anther using the mapped location just in case.
Is there a question or a problem? I'm sorry I don't understand.

I do see an issue with the first job. It has "Resources required" set to 0. Basically that means it will try to run every file at once.

Jere

mike_15
03-02-2006, 05:47 PM
sorry, there is a problem with it.
SA never runs. I can run SA manually but Dirmon2 doesn't seem to load it.

I was playing with resources required, I have it back at 100.

Jere_Jones
03-02-2006, 06:12 PM
This may seem like a silly question, but are you sure SA isn't running? If you are looking for a tray icon then it won't be there unless you have gone into window's service manager and enabled "Allow service to interact with desktop".

Jere

mike_15
03-02-2006, 06:33 PM
I hit CTRL+ALT+DEL and looked under processes.

I can find a listing for DirMon2 in the computer management> services. but no listing for SA
I assume I am to "Allow service to interact with desktop" for DirMon

Jere_Jones
03-03-2006, 03:56 AM
I hit CTRL+ALT+DEL and looked under processes.
That'd do it. A very accurate way to tell, that is. :)

I can find a listing for DirMon2 in the computer management> services. but no listing for SA
I assume I am to "Allow service to interact with desktop" for DirMon
Absolutely correct.

Is the DirMon service started?

Do this:
1) Stop the dirmon service.
2) Delete active.csv and queue.csv from the install directory.
3) Go to a command line window and run DirMon.exe (with no command line options).

What happens?

Jere

ekiwi
03-03-2006, 01:23 PM
Interact with desktop has another very important side effect on my pc.

I have some scripts to compress data using ffmpeg and menconder if i run them as a user or system with out intereact they can take a very long time to complete (8 hours as apposed to half an hour). Turning on interact with desktop speeds things up to the same speed as running them manually.

Not sure why (havent had time to test as i want to free up space) but i have a theory about powermanagment kicking in and possible turning off the hard drives or something like that.

So a heads up if things are going slow enable interact with the desktop.

jerry maybe you could include it as an option in the next release.

PS love the parameter passing tnx:goodjob:

mike_15
03-03-2006, 02:32 PM
Is the DirMon service started?
It was started.

Do this:
1) Stop the dirmon service.
2) Delete active.csv and queue.csv from the install directory.
3) Go to a command line window and run DirMon.exe (with no command line options).

What happens?

Immediately after running dirmon2 from cmd prompt a queue list was created.:)
A moment later two SA cmd window popups showed up. :D
in the dirmon folder new active.csv and queue.csv and another log was created.

to see if the GUI would work, I stopped them all, deleted the CSV's, started service in the GUI, no queue or processing started the same as before.
I then stopped the service and repeated your instructions and it worked again in the cmd prompt.

Mike

Jere_Jones
03-03-2006, 03:29 PM
mike,

I have two possibilities:
1) I have only verified DirMon2 works on WinXP. Are you using a different OS?
2) There is a permissions problem. Try running the service as the same user you used to run the command line.

Jere

blade
03-03-2006, 04:43 PM
Well I've had no luck getting recordings to show up in the que. My settings are just like the examples in the first post.

The service is setup to run as localsystem. I'm using mapped drives, but have also tried UNC paths with no luck. I assume it's a permission problem, but I don't know jack about all that stuff.

Jere_Jones
03-03-2006, 07:09 PM
Have you tried setting it up to run as a user? Preferably the one that you use to record/watch the shows.

Jere

mike_15
03-03-2006, 10:15 PM
mike,

I have two possibilities:
1) I have only verified DirMon2 works on WinXP. Are you using a different OS?
2) There is a permissions problem. Try running the service as the same user you used to run the command line.

Jere

I am using XP pro sp2

I have since tried running the service as both users on the machine. the currently logged in one, and the one that is not logged in. neither helped.

Should the GUI show a queue as quickly as the cmd? or does it take several minutes?

Jere_Jones
03-04-2006, 02:18 AM
Should the GUI show a queue as quickly as the cmd? or does it take several minutes?
The queue will be available almost as soon as the cmd. However, it won't show up until you hit the "Refresh" button.

I'm at a complete loss as to why it isn't working for you. I'll take another look at the code and see if anything jumps out at me.

Jere

blade
03-04-2006, 03:21 AM
Have you tried setting it up to run as a user? Preferably the one that you use to record/watch the shows.

Jere

I tried to run as a user but the service will not even launch. The Current Status shows Stopped. The only way I can get it to start is when it's running as localsystem.

mike_15
03-04-2006, 08:22 AM
I intstalled both SA and Dirmon2 on another computer, and had the same results. Dirmon runs but doens't find any shows to run. I know there are shows to run because I deleted the .txt files from several shows before installing.
Everything does work if I use the cmd prompt.

I also downloaded a fresh copy of dirmon2 and reinstalled on my normal computer in case I had a bad install. It had no effect.

Jere_Jones
03-04-2006, 09:27 PM
I tried to run as a user but the service will not even launch. The Current Status shows Stopped. The only way I can get it to start is when it's running as localsystem.
This generally indicates there is a problem with the username or password. Try putting a .\ in front of the username.

Jere

Jere_Jones
03-04-2006, 09:29 PM
I intstalled both SA and Dirmon2 on another computer, and had the same results. Dirmon runs but doens't find any shows to run. I know there are shows to run because I deleted the .txt files from several shows before installing.
Everything does work if I use the cmd prompt.

I also downloaded a fresh copy of dirmon2 and reinstalled on my normal computer in case I had a bad install. It had no effect.
The only difference between the command prompt and the service is permissions (that I know of). I'm going to add some extra logging to the job search. That may point us in the right direction.

Jere

Endymion
03-05-2006, 01:18 AM
I tried to run as a user but the service will not even launch. The Current Status shows Stopped. The only way I can get it to start is when it's running as localsystem.


I have found on several occasions that if you have never had a service run as a user, you have to go to Services in Administrative Tools and setup the user there under the 'Log On' tab for the service. When you select the user and set it all up, you'll notice that a popup will come up that says something like "The account .\Whatever has been granted Log On As A Service right." That might be your problem, because if the user you are trying to make DirMon2 log in as does not have that right, the service won't start.

Jere_Jones
03-05-2006, 08:43 PM
0.5.3 - 5 Mar 2006
- Fixed typo in GUI
- Added "Allow interaction with desktop" setting
- Made changes to job search. Hopefully it will be more reliable.
- Passwords are now encrypted when they are saved in the ini file.

As always, you can download the latest version here (http://www.dragonglobal.org/dirmon.htm).

Enjoy,
Jere

Jere_Jones
03-08-2006, 05:54 PM
0.5.4 - 8 Mar 2006
- Fixed bug that would occasionally cause 100% cpu usage.

Enjoy,
Jere

geogecko
03-08-2006, 10:41 PM
Thanks for the update, Jere. Just wish it wouldn't lose all the previous settings...when updating versions. :(

Jere_Jones
03-09-2006, 03:49 AM
Thanks for the update, Jere. Just wish it wouldn't lose all the previous settings...when updating versions. :(
Hmmm... good point. I'll look into it.

Jere

geogecko
03-09-2006, 05:58 AM
Hmmm... good point. I'll look into it.

Jere

Actually, it's not that hard to setup, once you've done it before...

mike_15
03-12-2006, 10:59 PM
I have finally gotten Dirmon2 to work, I updated to 0.5.4 because I was having trouble with it running at 100%. (using cmd to run).
I think my problem may have been a combinations of Mapped and UNC not playing nice with User and LocalSytem. I have it working with UNC and user. I know I have tried that combination before. But it is late and I am just happy that it is working now!

cslatt
03-25-2006, 09:52 AM
On the off chance anyone else is having trouble pulling up Jere's site like I am, this IP seems to work nicely:

http://66.49.242.164/

Jere_Jones
03-25-2006, 09:57 AM
Yep. I'm trying to fix some DNS issues... :(

Hopefully, it shouldn't be long...

Jere

blade
03-28-2006, 05:09 PM
I guess I'll have to learn how services work before I can get Dirmon2 to work and unfortunately I don't have the time to fool with it at the moment. :(

If I try to run dirmon2 under localsystem I get the following error when trying to use mapped drives:

2006-Mar-28 18:00:21 - boost::filesystem::directory_iterator constructor: "D:\Video": The system cannot find the path specified.
2006-Mar-28 18:00:21 - boost::filesystem::directory_iterator constructor: "E:\Video": The system cannot find the path specified.

If I set it up to use UNC paths I get:

2006-Mar-28 17:40:33 - boost::filesystem::directory_iterator constructor: "\\Mediaserver\sagetv (d)\Video": Access is denied.
2006-Mar-28 17:40:33 - boost::filesystem::directory_iterator constructor: "\\Mediaserver\sagetv (e)\Video": Access is denied.

If I try an logon as a user (the only user setup on the PC) I get an error saying the service didn't start due to a logon failure. I'm reallying wanting to be able to run multiple instances of SA, but I wish there was a simplier way to set the thing up.

BobPhoenix
03-28-2006, 08:34 PM
If I try an logon as a user (the only user setup on the PC) I get an error saying the service didn't start due to a logon failure. I'm reallying wanting to be able to run multiple instances of SA, but I wish there was a simplier way to set the thing up.
The User will probably need a password and "logon as a service" rights if you haven't already set those up. I had to do this to run SageTV as a Service and access network drives with UNC paths anyway.

BobP.

geogecko
03-28-2006, 08:37 PM
The User will probably need a password and "logon as a service" rights if you haven't already set those up. I had to do this to run SageTV as a Service and access network drives with UNC paths anyway.

BobP.

Same here. I spent about 30 minutes trying to figure out how I did that, so I could post here, but was unable to do so.

I think the settings were under Control Panel, Perf & Maint., Administrative Options or something...

And yes, you do need a password for it to work. The service password must match the user password.

blade
03-29-2006, 03:28 AM
Thanks for the help guys. It's working with UNC paths now. Still not working with mapped drives, but I can live with that. :)

I had installed Dirmon to an account that didn't have a password. I had since added a password to the account and Dirmon wouldn't let me install the service since the password was added. I uninstalled Dirmon and reinstalled and everything went smoothly. I don't know if this is normal behavior or not when dealing with services.

stanger89
03-29-2006, 05:38 PM
Jere,

DM2 Gui is crashing when adding a source folder since I re-installed my PC. I gmailed you details (if you haven't checked your gmail lately).

cslatt
03-29-2006, 06:26 PM
DirMon2 is totally rocking my world Jere! Three cheers for multi-processing! I can finally live-showanalyze shows for both my tuners.

Jere_Jones
03-30-2006, 07:52 PM
All,

I know that setting up a service and the requisite permissions can be a pain. It is especially irritating when if you run DirMon2.exe from the command line it works perfectly. That's good and all, but it does create this console window that can be annoying. So, the next version of DirMon2 will include a DirMon2Invisible.exe that will run under the same permission set as the original DirMon did. That way, those of you that want it to run as a service can and those that don't care can simplify their life by using DirMon2Invisible.exe.

Stanger,

I haven't seen it. I know there was one version release that did that. Are you using the latest version?

Jere

stanger89
03-30-2006, 09:07 PM
Stanger,

I haven't seen it. I know there was one version release that did that. Are you using the latest version?

Jere

No, you snuck a couple versions out on me ;) I'll give the latest one a try.

blade
04-01-2006, 05:59 AM
I'm not sure if this should be a Dirmon2 or a SA question. Everything is working great except that sometimes SA hangs. The file is completely processed but SA keeps running for some reason. Is there a way to make the SA process time out after a certain amount of time so that it's killed if it's hung up?

geogecko
04-01-2006, 07:42 AM
I'm not sure if this should be a Dirmon2 or a SA question. Everything is working great except that sometimes SA hangs. The file is completely processed but SA keeps running for some reason. Is there a way to make the SA process time out after a certain amount of time so that it's killed if it's hung up?

I think you're in the right place, and while I'm not positive of this, I will take a stab.

http://www.thebentzhome.com/pics/sageforum/blade.jpg

I believe what you want is the Timeout.

Be careful how you use this though, because the Timeout works either if SA is locked up, or if it's working correctly. In other words, if you set the timeout to 1 hour (in seconds), and you are recording a 2 hour show, SA gets killed while working on the 2 hour show. Get what I mean? So you'll want to setup the timeout to be greater than the length of shows you normally record.

blade
04-01-2006, 02:25 PM
I believe what you want is the Timeout.

Be careful how you use this though, because the Timeout works either if SA is locked up, or if it's working correctly. In other words, if you set the timeout to 1 hour (in seconds), and you are recording a 2 hour show, SA gets killed while working on the 2 hour show. Get what I mean? So you'll want to setup the timeout to be greater than the length of shows you normally record.

That makes sense, I'll give it a try and see how it goes.

antplugger
04-01-2006, 02:43 PM
Hi Guys,

Does anyone know how the black section works ? Its is 24 hour clock ?

I set it to start at 0500 and end at 2359 - Hoping that it would only run between midnight and 5am but it seems to be running within the black out

Thanks

geogecko
04-01-2006, 05:12 PM
Hi Guys,

Does anyone know how the black section works ? Its is 24 hour clock ?

I set it to start at 0500 and end at 2359 - Hoping that it would only run between midnight and 5am but it seems to be running within the black out

Thanks

Might be a bug that no one has found. Blackout to me, means a start time to NOT be processing, and a stop time to RESUME processing...

Soulive
04-02-2006, 07:45 PM
I seem to have a problem with dirmon2 and comskip_024 (varient). Dirmon2 starts the process correctly but it seems that comskip ends execution prematurely. So I will have many 0 length .txt files or .txt files with just 1 commerical found. The activitly log will show comskip starting and finishing in roughly 2 minutes.

If I delete the offending .txt file, stop and start the comskip service from dirmon2 GUI it works, finding commericals fine. The activitly log will show comskip starting and finishing in roughly 7 minutes.

Any ideas?

Jere_Jones
04-02-2006, 10:42 PM
antplugger, Soulive,
can you share your ini?

Jere

Soulive
04-03-2006, 01:40 PM
I've included my dirmon2.ini file renamed as dirmon2.txt for attachement restrictions.

antplugger
04-03-2006, 03:14 PM
Here is mine

Thanks

[Global]
Polling Time = 600
Available Resources = 100

[Service]
Start Automatically = 1
Run as Local System = 1
Allow Interaction With Desktop = 0
Run as User = 0
User Name =
User Password =

[Job Description 1]
Name = ComSkip
Processor = C:/Program Files/SageTV/COMSKIP/comskip.exe
Command Line Options = --videoredo
Must Exist 1 =
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = txt
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = //MediaServer/Recording
Processee Extension 1 = mpg
Resources Needed = 100
Timeout Enabled = 1
Timeout = 14400
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 1
Wait Until File Is Finished = 1
Wait Until Drive Is Idle = 0
Hide Console = 0
Blackout Enabled = 1
Blackout Start Time = 500
Blackout End Time = 2359

Humanzee
04-12-2006, 07:11 PM
Jere,
Can you add some items to the Current Status tab so we can get a better idea of what our detectors are doing?
I was thinking of stuff like

1) The Qued Jobs File Attributes I.e. Modification Date, maybe file size so that we can se at a glance when the file was recorded and possibly how long it might take to run.

2) Date/Time Job added to Queue. I have run into scenario's where jobs will not queue or not start or just process really slowly if I am playing a video game or something. Curious to know when they were detected.

3) Date/Time Active Job Started, Similar to above, curious to know how long a job has been running, ocationally I find that SA has hung up on one program for who knows how long.

4) Active Job Duration so far. Similar to above.

5) An option to auto refresh the Active Jobs list every 'X' seconds, or every 'X' seconds while the DirMon2 window is active.

6) More Status Clue's I.e. "Waiting for SA to finish." etc.

I was also speculating about some other features like, changing the "Resources Required" dependant on the time of day, or the status/size of other files in the queue, or if the target file/drive is being written to.

That way you could set up some criteria for when/how/if jobs get processed concurently

Just some thoughts

AHX
04-15-2006, 06:52 AM
I seem to be having an issue getting this to work with comskip. If i choose detect comercials from inside sagetv it creates teh .txt and .log file which in turn works fine. if i use dirmon it does not create the log file. after this i can not start the detect form sage unless deleting the .txt file that dirmon creates. I am sure i did not set soemthign right . please help and thanks.

geogecko
04-15-2006, 07:37 AM
I seem to be having an issue getting this to work with comskip. If i choose detect comercials from inside sagetv it creates teh .txt and .log file which in turn works fine. if i use dirmon it does not create the log file. after this i can not start the detect form sage unless deleting the .txt file that dirmon creates. I am sure i did not set soemthign right . please help and thanks.

DirMon seems to be working correctly, it's ShowAnalyzer that does not appear to be working correctly, although you do say you get the txt file. Why do you need the log file?

If using DM and SA, you do not use the detection inside of SageTV, those settings should be left turned off. The only setting that works with DM and SA is the "Auto ComSkip Enable/Disable."

There appears to be no .log file setting inside of SA anymore, so I'm not sure it's needed.

AHX
04-15-2006, 07:43 AM
i am not using SA I am using Comskip.exe. i jsut noticed that the ones that work have .txt adn .log and the rboken ones have .txt only.

geogecko
04-15-2006, 08:04 AM
i am not using SA I am using Comskip.exe. i jsut noticed that the ones that work have .txt adn .log and the rboken ones have .txt only.

So you are getting the .txt file, created by using DM with ComSkip?

If ComSkip is the one generating the files, I wouldn't see why it would make a difference if Sage or DM was telling ComSkip to run...

It could be that your setup isn't quite right. If you still had ComSkip turned on inside of SageTV, then you went to delete the txt and log files, Sage would, or should, start comskip again for that show where you just deleted the txt file for...then if you turned comskip off inside of sage, while it was trying to generate that txt file again, it may stop processing it, creating a bad file, then, DM never starts comskip, because it sees that a txt file is there...Not sure.

Try turning all your ComSkip setting to OFF inside of SageTV. Make sure DM is setup so that it does NOT try to run ComSkip (CS). Now, go in and delete your log and txt files for a show. Refresh the folder several times, to make sure that something isn't trying to regenerate those files. Once you are satisfied that nothing is going to generate those files, go into DM, and set it up to run CS. You should immediatly see it generate the txt (and log) files. Does that work?

AHX
04-15-2006, 09:32 AM
no matter what I do only manual starts will create the files. I even tried showanalyzer adn it works manual but not with dirmon. is there a guid on setting up eitehr of these for sage. i can not find proper documentaion on sagetv setup.

geogecko
04-15-2006, 02:50 PM
no matter what I do only manual starts will create the files. I even tried showanalyzer adn it works manual but not with dirmon. is there a guid on setting up eitehr of these for sage. i can not find proper documentaion on sagetv setup.

My post #127 contains my setting for DirMon. The HTPC is in use right now, otherwise, I could post some more screenshots.

It sounds like you do not have DirMon setup correctly.

Is this you?

http://www.dragonglobal.org/forums/showthread.php?t=346

I assume you set it up as in this thread?

http://www.dragonglobal.org/forums/showthread.php?t=312

That's a good place to start, if you haven't already seen it.

Are you running DM as a service? I'd try running it NOT as a service, at least, until you get this figured out. A lot of things have to be working for the service mode to work right.

AHX
04-18-2006, 07:36 AM
I copied your setting. the only difference between yours and mine was my resources were 100 so i changed them to match yours. Over the last few days SA is now crashing when it runs. again, if i go and delete teh txt files for the shows it crashe don and restart dirmon it runs fine. when i then leave it alone to do it's thing it crash's.

Jere_Jones
04-20-2006, 03:23 PM
0.5.5 - 20 Apr 2006
- Added setting to adjust delay on drive idle check and file finished check.
- Fixed bug preventing custom command lines from working.
- Added DirMon2Hidden.exe for those of you that want to use DirMon2 in the same way as the original DirMon (i.e. NOT as a service)

This release address the two largest complaints that I have seen:
1) Wait until the drive and or file aren't being used wasn't working.
Thanks to a very astute user that noticed write caching was probably causing this. If the wait check marks aren't working for you, try increasing the wait times. It has been reported that times of up to 5 minutes may be required depending on your specific write caching.

2) Figuring out the permissions and service login's is too friggin' complicated! Why can't it work like DirMon1?
Now it can. Simply run DirMon2Hidden.exe and it will start DirMon2 as a hidden program. You will need to use the task manager to kill it though.

Jere

grooves12
04-20-2006, 04:41 PM
Sweet, jerejones, you rock...any chance we should see an updated SA that has a similar variable on wait time beforeclosing in-progress files...

The wait until complete is a good workaround for now, but being able to fully process in-progress files would be really sweet.

Jere_Jones
04-20-2006, 05:02 PM
Sweet, jerejones, you rock...any chance we should see an updated SA that has a similar variable on wait time beforeclosing in-progress files...
The next version of SA will include a similar setting.

Jere

bobrap
04-23-2006, 07:50 AM
This is probably a dumb question (I know...), If I put both comskip and SA in dirmon2, will it run both programs or what will happen? I'm just looking for a good way to switch between them to see which I want to use.:confused:

geogecko
04-23-2006, 08:20 AM
This is probably a dumb question (I know...), If I put both comskip and SA in dirmon2, will it run both programs or what will happen? I'm just looking for a good way to switch between them to see which I want to use.:confused:

Sure, just clear out all the "Triggers" in the one that you DO NOT want to use.

For example, I have mine setup to Trigger on Does Not Exist "txt." If you wanted to disable that one, just clear the "txt" part. Make sure and save your changes.

Keep in mind, you couldn't have both setup to run, otherwise, you wouldn't know which one is getting run, unless you looked at the current jobs being processed, since both would have the same trigger.

In fact, I might try the same thing, just to experiment on some HDTV files. Although, it would appear that Jere is working on a new version of SA...hopefully!?

bobrap
04-23-2006, 08:42 AM
Thanks, that's just what I needed. I use the paid version of SA and sometimes I can't get it to do as good a job as comskip. Then again, the opposite is sometimes true.:D

blade
04-23-2006, 11:58 AM
This is probably a dumb question (I know...), If I put both comskip and SA in dirmon2, will it run both programs or what will happen? I'm just looking for a good way to switch between them to see which I want to use.:confused:

Under what program to run just point it to comskip instead of SA. You won't have to bother adding and deleting the triggers.

bobrap
04-23-2006, 12:12 PM
You mean in Dirmon2 GUI just highlight the program I want to run?

blade
04-23-2006, 03:11 PM
You mean in Dirmon2 GUI just highlight the program I want to run?

What you were talking about is creating 2 different jobs. One for comskip and one for SA. As already mentioned, this will require you to edit the triggers of both jobs each time you want to switch between the programs.

What I'm suggesting is using the job you already have setup for SA. In the Dirmon2 GUI go to the "job management" tab and select "show analyzer" or whatever you named the SA job. Then under "program to run" select comskip instead of SA.

SA and comskip require the same triggers so all you have to do is change the program dirmon2 launches. You can setup 2 seperate jobs like you were planning and modify the triggers each time, but it seems kind of pointless since only one will be running at a time anyway.

geogecko
04-24-2006, 10:59 AM
What blade said is true, however, if your SA and ComSkip are not in the same directory, then browsing to each of those places would take longer than deleting txt from one process, and typing txt in another...

Just my $0.02.

ToxMox
04-24-2006, 04:41 PM
0.5.3 - 5 Mar 2006
- Added "Allow interaction with desktop" setting
I'm feeling a little dumb. Why can't I find this setting?

geogecko
04-24-2006, 06:47 PM
I'm feeling a little dumb. Why can't I find this setting?

Probably because I don't think it exists...ha. I looked around, and couldn't find it either.

Jere_Jones
04-24-2006, 08:03 PM
The "Allow interaction with desktop" setting is on the global page. It has to do with the service settings.

Jere

ToxMox
04-24-2006, 08:48 PM
The "Allow interaction with desktop" setting is on the global page. It has to do with the service settings.

JereI'm sorry I just don't see it. Here is a screen cap.

Enormous
04-24-2006, 09:00 PM
I was having trouble finding it as well, but it's right under the option to run as LocalSystem (it's grayed out in your cap).

ToxMox
04-24-2006, 09:14 PM
Ah hah! Mystery solved. Thanks Eric :)

geogecko
04-25-2006, 08:31 AM
LOL, like playing hide and seek...

bgorrell
04-25-2006, 08:00 PM
I am trying to run DirMon2 with triggers set to "must not exist" txt OR vprj. The logic seems to be broken. If I omit the vprj extension, behavior is as expected, only files that don't have txt counterparts are processed. However, when I add vprj, DirMon2 processes all files, including ones with txt files.

Any thoughts? Thanks.

Jere_Jones
04-25-2006, 08:10 PM
I am trying to run DirMon2 with triggers set to "must not exist" txt OR vprj. The logic seems to be broken. If I omit the vprj extension, behavior is as expected, only files that don't have txt counterparts are processed. However, when I add vprj, DirMon2 processes all files, including ones with txt files.

Any thoughts? Thanks.
Do the files with txt files AND vprj files get processed?

Must not exist "txt" OR "vprj" means that if either doesn't exist then the job will run. Think of it like this: Must not exist "txt" OR must not exist "vprj".

Did that help?

Jere

rmellor
04-30-2006, 11:09 AM
I just installed Dirmon2 and ShowAnalyzer and followed the instructions to set them up. Seems to work well; it processed all my shows over the past 2 days. Anyhow, I do have the Run as localsystem/'interact with desktop' checked, so when SA runs, I see the system tray SA icon.. and can click on it to bring up the SA status. However, what I am noticing is that it seems that when SA finishes, it does not remove itself from the system tray automatically. So, for example, I leave Dirmon2 up & running... I leave, come back to my computer 5 hours later. I see maybe 7 or 10 SA system tray icons down in my system tray. However, when I then mouse over any of those, they all disappear immediately, and only the 'active' one remains. So it seems like the system tray is not 'getting refreshed' when an SA instances is terminated, until I actually try to mouse over the icon, at which time the icon disappears from the system tray...

Note, if i remove the 'interact with desktop' checkbox, then i dont have this problem, because then the SA icon never appears in the system tray. I could leave it set to this to correct my problem, but I would like to see the SA in the system tray when its actually processing...

Has anyone else seen this behavior? Is this is a bug? I pretty much installed and used all the same settings from the screenshots in the beginning of the thread.

Also, I just set my Blackout to be enabled, starting at 900, ending at 130. It is 1:03pm though, and I see SA is running against one of my recording right now? Why is this? Shouldnt it be blacked out & set to not run right now? Do I need to Save/restart dirmon2 or uninstall/reinstall service after changing the blackout setting? ( I did a File-Save and it saves my blackout settings if i close/reopen Dirmon2).

Here are my settings for SA too in case this is helpful:
Invisible Mode: not checked
Show status window: not checked
show system tray icon: checked
status window stays on top: checked
close when finished: checked
max cpu usage: 100
How much to slow down: 1
Start time: 0
end time: 0
all other settings also defaulted to default choices

geogecko
04-30-2006, 12:15 PM
The terminated system tray problem I believe is a Windows problem, not SA. I get that on other programs too.

As for your blackout. If you want 9AM to 1:30PM, it needs to start at 900 and end at 1330, I think. It's military time, or 24 hour time. What you have it set for, is to blackout from 9AM to 1:30AM. Not sure why it was running at 1:03PM though, even with that setting.

rmellor
04-30-2006, 01:43 PM
As for your blackout. If you want 9AM to 1:30PM, it needs to start at 900 and end at 1330, I think. It's military time, or 24 hour time. What you have it set for, is to blackout from 9AM to 1:30AM. Not sure why it was running at 1:03PM though, even with that setting.

Actually, I was meaning for the blackout to be 9am to 1:30am - meaning it would only actually run from 1:31am up until 8:59am overnight... I believe I copied the settings from a post by jere:

http://www.dragonglobal.org/forums/archive/index.php?t-349.html

I may have not the leading zeros; not sure if that matters.. (He had 0900 to 0130 - I had 900 to 130). I will keep an eye on it. It does not seem to be processing now, which is good (although it may be because there are no files to process at this point).

geogecko
04-30-2006, 07:47 PM
Could be, or it could be that the settings weren't applied or something, maybe.

You could check it by deleting one txt file, and see if it starts to process it.

rmellor
05-01-2006, 03:01 PM
The terminated system tray problem I believe is a Windows problem, not SA. I get that on other programs too.

I just googled around and found a few things relating to the systray problem. Seems like it may be a windows issue or a order of operations problem. I think though there are some things applications can do to help get around the problem. Check out the following links; maybe Dirmon2 needs to do something along the lines of the following: (Jere, I'm not sure what Dirmon2 is written in, but I posted a few items below; maybe one of them would prove to be useful?) Sorry to be a 'back seat' coder.... just trying to help improve the overall user experience w/ dirmon2. Would implementing any of the following perhaps solve the problem?

1 - Finding windows handle to systray; force an invalidate()
http://www.thescripts.com/forum/thread353551.html
If you are talking about the System Tray Icon not disposing ie. The icon
still stays after the app is gone,
Thats a problem with windows. (I hope I understood your Q correctly though).

Take any app with a systray icon, end-task it, the icon stays .... until you
take your mouse over it.
Usually what I do is, I capture the handle to the systray, (FindWindow), and
then I invalidaterect it ... that gets rid of the icon on exit .. rest
assured, the resources by then are released (even though the tray didn't
repaint itself).

2 - Order of operations/Proper shutdown (End Task-WM_CLOSE, WM_DESTROY as opposed to Kill Process)
http://www.codeproject.com/shell/trayicons.asp?df=100&forumid=1402&exp=0&select=1146404#xx1146404xx

And about the task manager, if the user is killing your app with "End task" if will call WM_CLOSE and WM_DESTROY, but if the user choose "End Process" it will Kill the process of your apps without sending anything to it.

3 - application actually performing a mouse-over to force systray refresh
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/Systray~Icon~Questions+Systray~Icon~Questions.txt

Getting Systray Icon to Go Away after Killing Systray App
Question:
I discovered something that is very interesting. I am writing a program that will close down the Scheduling application associated with McAfee (avconsol.exe).While this application is running it is present on the System Tray. When you close it, using IntControl(56,"~McAfee",0,0,0) it still appears to be running because it is still present on the System Tray. But...if you move your cursor over the System Tray it disappears. If you just sit there without doing anything it takes a while for it to disappear. Any suggestions as to why this happens and how to make it disappear instantly????
Answer:
It really is gone. It is just that the system tray application has not bothered to update the tray display. You could try MouseMove and move the mouse over the system tray. Problem is that the MouseMove method generally only works for one computer but a user reported that the following works pretty well at various displays:


;Tried this at 640x480 800x600 and 1024x768
;Seems to work pretty good.

CurrLocn = MouseInfo(2)
Locn1 = ItemExtract(1, CurrLocn, " ")
Locn2 = ItemExtract(2, CurrLocn, " ")
For X = 800 to 1000
MouseMove(X , 970, "", "")
Next
MouseMove(Locn1, Locn2, "", "")

Jere_Jones
05-01-2006, 06:40 PM
Do I need to Save/restart dirmon2 or uninstall/reinstall service after changing the blackout setting?
To get any changes to take affect, you neet to stop/restart the service. To get any service related settings to take affect, you need to uninstall/reinstall the service.

Jere

Jere_Jones
05-01-2006, 06:45 PM
For those curious, the orphaned system tray icons are caused by SA crashing. I've gotten it to crash as silently as possible, but if it never reaches the clean up phase, then the icon is never erased.

When the user runs the mouse over it, windows looks for the event handler for that icon. Since SA has closed, there is no event handler and windows erases the icon.

The ideal solution is to fix SA. :) I believe the next version goes a long way towards that goal.

Jere

andrewhy
05-13-2006, 06:15 AM
Can someone tell me exactly what I have to do to get this to work with Comskip? I've read all the forum threads and still it's not working. Here's the relevant part of my ini file:


Name = Comskip
Processor = C:/Program Files/SageTV/SageTV/comskip.exe
Command Line Options = --ini=C:/Program Files/SageTV/SageTV/comskip.ini [[%FULLFILESPEC%]]
Must Exist 1 =
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = txt
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = E:/
Processee Extension 1 = mpg
Resources Needed = 100
Timeout Enabled = 0
Timeout = 1800
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 0
Wait Until File Is Finished = 1
Wait Until Drive Is Idle = 0
Wait Until File Is Finished Time = 1
Wait Until Drive Is Idle Time = 2
Hide Console = 1
Blackout Enabled = 0
Blackout Start Time = 0
Blackout End Time = 0


When I run Dirmon2 on the command line, all it does is loop endlessly without producing any output. So who has gotten this to work?

Oh, and why does Dirmon use forward slashes instead of Windows backslashes in file paths?

geogecko
05-13-2006, 08:21 AM
Only thing I can think of, is did you stop/start the service again, if running that way?

Jere_Jones
05-13-2006, 08:29 AM
When I run Dirmon2 on the command line, all it does is loop endlessly without producing any output. So who has gotten this to work?
Which loop is looping?
Oh, and why does Dirmon use forward slashes instead of Windows backslashes in file paths?
Standardization and ease (on me :)).

Jere

ToonGal
05-13-2006, 09:17 AM
Here's the relevant part of my ini file:

Command Line Options = --ini=C:/Program Files/SageTV/SageTV/comskip.ini [[%FULLFILESPEC%]]
When I run Dirmon2 on the command line, all it does is loop endlessly without producing any output. So who has gotten this to work?I have and love it. :)

My best guess. You use Jere's slashes here for the comskip program. Just because Jere standardizes, doesn't mean others do. ;) Also, my command line options, I have quotes (") around the active part in the ini specification. You have spaces in your command, so I think the quotes are necessary. I also don't use the fullfilespec in mine, but that shouldn't be the issue.

Command Line Options = --ini="C:\Program Files\Frey Technologies\SageTV\comskip\comskip.ini"
Hope that helps.

andrewhy
05-15-2006, 03:12 AM
Ok, putting the quotes in the --ini= path fixed it. Thanks!

Jere_Jones
06-21-2006, 03:26 PM
I just put up another release of DirMon2. This one mainly addresses issues with the "Wait until file is done" not working. Release notes follow:

0.5.6 - 20 Jun 2006
- Changed method used to determine if a file is being used or written to. Added "Wait until file is idle" option to reflect new methods.
- *NOTE* "Wait until file is finished" attempts to secure write access to the file in question. It will not write to or change the file in any way. Failure indicates the file is already being written to. Although this can also be caused by a program improperly setting access modes. (Windows Media Player is known to do this)
- *NOTE* "Wait until file is idle" attempts to secure delete access to the file in question. It will not delete the file. Failure indicates another program has the file open, either for reading or writing. Access restrictions to the directory can also cause this test to always flag.
- *NOTE* "Wait until drive is idle" checks the free space on the drive, waits for the number of seconds specified in the "Wait time" block, and then checks again. If the free space has decreased, then the drive is determined to be "In use".
- Added Process ID to the Active List.

Jere

evilpenguin
06-21-2006, 03:36 PM
Thanks for the update Jere! :goodjob:

Jere_Jones
06-26-2006, 05:01 PM
So, I was testing the latest DirMon2 last night by erasing all my txt files and watching DM2 run SA. While looking at the queue, I noticed that none of the X-Files showed up. Not one. Closer inspection revealed that every show that started with a letter after P didn't show up in the queue. Huh? How's that for a wierd bug. I'm suprised no one reported it. You would see this bug if you have DM2 monitoring a root directory with a pagefile or a recycle bin. Anyway, it's fixed and here is a release to fix that really wierd bug. http://www.dragonglobal.org/forums/images/smilies/smile.gif

0.5.7 - 26 Jun 2006
- An entry in the Activity Log will now be made when deleting a file.
- Fixed bug causing some files to never be found.
- Changed forward slashes to back slashes. (Happy?)

Enjoy,
Jere

nigfink
06-27-2006, 10:23 AM
- Changed forward slashes to back slashes. (Happy?)


I'm defiantely happy, the VideoRedo project files work great again. Thanks!

ToonGal
06-28-2006, 01:09 AM
I'm suprised no one reported it.Well, just saw the thread today, and installing v5.7 over v5.5. I haven't been able to get it to work at all yet, and noticed some changes in the .ini format. Changed the new .ini format parameters on things not the same, and will report if I have problems still in the next day or so.

However, a quick bug to report. The "Wait until the target file is idle" check box never seems to save to the .ini file, since it is always unchecked after restarting the GUI. No other things really tested, but figured I'd mention this.

geogecko
06-28-2006, 05:30 AM
However, a quick bug to report. The "Wait until the target file is idle" check box never seems to save to the .ini file, since it is always unchecked after restarting the GUI. No other things really tested, but figured I'd mention this.

I just noticed this in 5.6, last night, but didn't know it was still there. I haven't gotten back into the GUI yet to see if it stuck though...

Jere_Jones
06-29-2006, 03:51 AM
The "Wait until file is idle" is getting saved correctly. It just isn't loaded correctly. I have fixed the problem, but I'm holding off before I release another version. :)

Jere

jlabrue
06-29-2006, 10:12 PM
Well, just saw the thread today, and installing v5.7 over v5.5. I haven't been able to get it to work at all yet, and noticed some changes in the .ini format. Changed the new .ini format parameters on things not the same, and will report if I have problems still in the next day or so.

However, a quick bug to report. The "Wait until the target file is idle" check box never seems to save to the .ini file, since it is always unchecked after restarting the GUI. No other things really tested, but figured I'd mention this.

I had the same issue with an install over 0.5.6. I had to uninstall and reinstall to get it to work. This forced me to uninstall the service as well. That leads me to....


Jere, after reinstalling, I tried to reinstall the service and told it to use a user account instead of System to start up. It would not let me install the service this way. I could install the service if I left the default of starting under the System account. This forced me to go into the Services applet and change the startup account to the network account I wanted (I have a remote Sage directory)

Thanks!
John

rsagetv99
06-29-2006, 11:01 PM
How does the priority setting work in DirMon? I want to have one job process a file before another one starts so I was going to try do control it with this feature, but I am not sure if it is working...

Jere_Jones
06-30-2006, 04:52 AM
Jere, after reinstalling, I tried to reinstall the service and told it to use a user account instead of System to start up. It would not let me install the service this way. I could install the service if I left the default of starting under the System account. This forced me to go into the Services applet and change the startup account to the network account I wanted (I have a remote Sage directory)
The account you want to use must have the "Log on as a service" right. I haven't found a way to add that right programmatically yet (if anyone knows, let me know :) ) so going to the services management seems to be the easiest way to add that right. Or is your issue different?

Jere

Jere_Jones
06-30-2006, 04:56 AM
How does the priority setting work in DirMon? I want to have one job process a file before another one starts so I was going to try do control it with this feature, but I am not sure if it is working...
Every job starts with a priority of 0. Then the priority "boosts" get added after all the outstanding jobs have been found. Higher priorities get run first.

To figure out if it is working, than you can just look at the queue and see if the jobs are being run in the order you want.

Alternatively, you can explain what you are looking for, post your ini and I'll offer suggestions. :)

Jere

jlabrue
06-30-2006, 09:52 AM
The account you want to use must have the "Log on as a service" right. I haven't found a way to add that right programmatically yet (if anyone knows, let me know :) ) so going to the services management seems to be the easiest way to add that right. Or is your issue different?

Jere

Jere,

I had already added that account to have that right since I use it for Sage service access to the remote storage. I checked to verify. It will work fine if I use the Windows applet to modify it just want let me use the DirMon2 interface to install the service with alternate user credentials. After I set it in Windows I can use the DirMon GUI to stop and start the service but it still shows the LocalSystem logon in the Run As box. Not a big deal for me since I know how to fix it but could cause some frustration for someone else.

Thanks for the great tool! :goodjob:

P.S. I attached a screen print of the Service settings on DirMon from mine. It allowed me to install the service with this setting but if I stopped the service , then uninstalled it, and then changed the Run As to use a network user account it would not let me Install the service again. I would click and nothing would happen. I changed it back to LocalSystem and it went right through.

John

Jere_Jones
06-30-2006, 11:14 AM
P.S. I attached a screen print of the Service settings on DirMon from mine. It allowed me to install the service with this setting but if I stopped the service , then uninstalled it, and then changed the Run As to use a network user account it would not let me Install the service again. I would click and nothing would happen. I changed it back to LocalSystem and it went right through.
How are you entering the network user name?

Jere

jlabrue
06-30-2006, 11:45 AM
How are you entering the network user name?

Jere

The same way I entered it into the service settings in the Windows Services applet. I used the format "user@domain.com". I did NOT use the NetBIOS format (domain\user). Could that be the issue? I can remote in and try later.

Jere_Jones
06-30-2006, 07:51 PM
I think that would be the problem since if no domain is specified, I add ".\" to the username.

Jere

jlabrue
06-30-2006, 09:48 PM
I think that would be the problem since if no domain is specified, I add ".\" to the username.

Jere

Very good, that should be easy enough to remember. I have a habit of doing authentication by using AD UPN names (name@domain.com) for everything I do. Thanks for the help

Jere_Jones
07-16-2006, 04:53 PM
0.5.8 - 16 Jul 2006
- "Wait until file is idle" will now load correctly.
- Added entry in activity log for when the overseer starts and ends.
- Corrected error trapping in cleanup execution.
- Overseer shouldn't just stop anymore.

Jere

cavalli
07-17-2006, 12:16 AM
0.5.8 - 16 Jul 2006
- "Wait until file is idle" will now load correctly.
- Added entry in activity log for when the overseer starts and ends.
- Overseer shouldn't just stop anymore.Idle file works great. Overseer hasn't auto-stopped as of yet. Life is good. :)

Any chance of adding a configurable directory element for the log files? My program files directory is on my boot drive, and I generally keep my logs on the data drive. (Once had a log spiral out of control, and affected my program data files, SageTV included.)

Thanks!

ToonGal
07-17-2006, 08:18 AM
0.5.8 - 16 Jul 2006
- "Wait until file is idle" will now load correctly.

Idle file works great.I didn't have the same results. The idle option loaded correctly, yes. It just didn't "work great". Same as last version, starting to comskip during the recording. Did the algorithm change? Or did the option load/save merely get fixed? Interested in the logic behind the idle file processing if it is working on your end.

I also like the configurable log directory.

Thanks Jere!

Jere_Jones
07-17-2006, 09:38 AM
Interested in the logic behind the idle file processing
If the option to wait until the file is finished is checked, then DirMon2 tries to get write access to the file. (DM2 does NOT try to write to the file) If someone else is writing to the file then this should fail. Sometimes this fails if another file is reading it, depending on the type of access the program reading the file has.

If the option to wait until the file is idle is checked, then DirMon2 tries to get delete access to the file. (DM2 does NOT try to delete the file) If someone else is reading the file then this should fail.

These worked fine across my network, but your milage may vary depending on your individual setup.

If anyone has another way to determine if the file is finished, let me know and I'll look into incorporating it.

Jere

geogecko
07-17-2006, 11:22 AM
If anyone has another way to determine if the file is finished, let me know and I'll look into incorporating it.

Jere

Is there a way to monitor file size over a period of time? If the file size could be monitored over a period of a minute or two, you could determine the file was finished by the size not changing.

Or, perhaps, the time the file was last modified. If the modified time keeps changing over a period of time, the file is not done.

Does that help at all?

Jere_Jones
07-17-2006, 11:31 AM
Is there a way to monitor file size over a period of time? If the file size could be monitored over a period of a minute or two, you could determine the file was finished by the size not changing.
That was the original plan, but it was so unreliable that I had to find another method.

Or, perhaps, the time the file was last modified. If the modified time keeps changing over a period of time, the file is not done.
The modified times are typically only changed upon opening or closing of a file.

Jere

Jere_Jones
07-17-2006, 12:47 PM
0.5.9 - 17 Jul 2006
- Jobs that are already running won't be added to the queue anymore.

Jere

nyplayer
07-17-2006, 03:41 PM
The wait until target is idle doesn't seem to be working. I have a batch job that encodes mpg's to avi...but it kicks off even if the file is recording. I am on XP Pro.


I also tried wait until target file is finished and that also didn't work.

geogecko
07-17-2006, 04:10 PM
:bang:

nyplayer
07-17-2006, 04:25 PM
I added some source to my script to check the file size. After it gets triggered by Dirmon. I check the filesize wait 3 seconds check again then compare.



secondstowait=3
filesize1chk=objfile.size
Wscript.Sleep (secondstowait * 1000) '
filesize2chk=objfile.size

if filesize1chk=filesize2chk then
'do whatever I want
esle
'do nothing
end if

Jere_Jones
08-05-2006, 05:46 AM
0.6.0 - 4 Aug 2006
- Added another method to determine if the file is finished before running a job.

For what it's worth, I'm pretty sure I have the "Wait until..." issues sorted out. It was a silly thing really but it should work now. There are a variety of methods for determining if the file is done. Experiment and find which one works for you. And, if you get the time, let me know your results. :)

Jere

silkshadow
08-06-2006, 12:59 AM
First, I really like Dirmon2. Just switched from Dirmon 1 and its a nice update, thank you! I do have some questions, please forgive me if there is a manual for this app somewhere that I just couldn't find. Please ignore this post if so and just point me to the manual. :) Ok here goes:

In Job Manager:

What exactly does queue priority boost do? What does older targets and alphabetical mean? When you say wait until the target is finished/idle what does that actually mean? What is a drive test delay time? What is the ignore box for and how is it used? How does blackout work? What is the format it accepts for time (is it military time, AM/PM, is the format 01:00 or will 01 work, etc)?

In global settings:

What does total resources avalible mean? In clean up, what format does the extenstons have to be in? Will txt,xml,edl,wme work? Does there have to be spaces after the commas?

Thank you!

Jere_Jones
08-06-2006, 07:34 PM
In Job Manager:

What exactly does queue priority boost do?
http://www.dragonglobal.org/forums/showthread.php?t=383
What does older targets and alphabetical mean?
http://www.dragonglobal.org/forums/showthread.php?t=383
When you say wait until the target is finished/idle what does that actually mean?
Finished means that the show is over and no longer being recorded. Idle means that no one is reading from or writing to it. (In theory :))
What is a drive test delay time?
The time between free space checks to determine if anyone is writing to the disk.
What is the ignore box for and how is it used?
It allows file name matching to exlude certain files from processing. My traditional example is Nova. Nova doesn't have commercials. Adding an ignore of "Nova" without the quotes prevents anything with Nova in the name from being processed.
How does blackout work?
http://www.dragonglobal.org/forums/showthread.php?t=349
What is the format it accepts for time (is it military time, AM/PM, is the format 01:00 or will 01 work, etc)?
http://www.dragonglobal.org/forums/showthread.php?t=349
In global settings:

What does total resources avalible mean?
http://www.dragonglobal.org/forums/showthread.php?t=383
In clean up, what format does the extenstons have to be in? Will txt,xml,edl,wme work?
Yes.
Does there have to be spaces after the commas?
No.

nyplayer
08-09-2006, 07:27 AM
Jere_Jones ,

When I check to wait for file or wait untill file is idle... DIRMON gets stuck on a file and will not go past it. If I uncheck all the checks and do my own checking everything works fine.


2006-Aug-08 10:05:14 - Finished: "CreateMPG2MP4" on "E:/sageb/TheOuterLimits-ASpecialEdition-48966-0.mpg"
2006-Aug-08 10:05:24 - Starting: "MPG2MP4" on "D:/sagea/Charmed-MyThreeWitches-39638-0.mpg"
2006-Aug-08 10:10:29 - Attempting to delete: D:\sagea\StarTrekTheNextGeneration-AMatterofTime-40621-0.MPG2MP4

No Files where being watched during this time period. The only plugin I am runnng is the Web Server and the sagexml plugin. Nothing else. BTW one more thing the file above that it got stuck on is a FAV with no autodelete.

Jere_Jones
08-09-2006, 08:05 AM
When I check to wait for file or wait untill file is idle... DIRMON gets stuck on a file and will not go past it. If I uncheck all the checks and do my own checking everything works fine.
The "Wait for file to be idle" and the "Wait for file to be finished" get stuck? Do you know what (if anything) had the file open? Grab a copy of Unlocker (http://ccollomb.free.fr/unlocker/) and it will show you what, if any, programs are locking that file.

Does the "Wait until file isn't growing" option work for you?

Jere

nyplayer
08-09-2006, 08:34 AM
I downloaded unlocker. I will use the wait till file is not growing and I will let you know how it goes.

Thanks

nyplayer
08-09-2006, 12:01 PM
One more thing. Is there any reason why you pass a back slash instead of a forward slash in the files. I cannot process certain commands in my batch file because of it.

see below


C:\Program Files\SageTV\SageTV>del C:/sagea/AngelasEyes-EyesoftheFather-18287-0.
mpg
Parameter format not correct - "sagea".

never mind my fault it works if I use quotes around it. Thanks

jbanera
08-09-2006, 02:19 PM
Jere, I just installed SA 7.9 and now I continually get Avast AV warning whenever Showanalyzer.exe is running. I know this was a problem with an earlier version and I had to specify an exception in Avast, but this time it doesn't seem to work.. Any help is greatly appreciated, I can't live without my SA!!!

nyplayer
08-09-2006, 03:26 PM
Jere,

I tried everyone of the file detection methods each failed the same way. When the file is being created It Creates a job with a PID of 0 and just sits there even after the file completes. Nothing else runs. I waited an hr after the file completed and nothing ran.

PS I used unlocker and the files were not locked

2006-Aug-09 14:04:23 - Starting overseer
2006-Aug-09 14:04:33 - Starting: "mpg2avi" on "F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg"

Jere_Jones
08-09-2006, 05:38 PM
nyplayer,

I think we may be talking about different things. The "wait until file..." are for the target file. For example, when you are recording Nova (my favorite example), SageTV is continually writting to Nova.mpg (or some variant). If you want DM2 to wait until the file is finished recording, then the "Wait until file..." options are for that. There are three options because no one method works on all setups.

Judging by your last post, it sounds like DM2 can't tell when a job ends. Is DM2 running the job you want? It looks like you want to run a conversion. Does the file get converted? If so, then it looks like DM2 doesn't notice the job ending. If not, it looks like a failure to get it started and then since it didn't start, it will never end.

Can you share your dirmon.ini?

Jere

Jere_Jones
08-09-2006, 05:54 PM
jbanera,

I responded to your question in the ShowAnalyzer thread here: http://forums.sagetv.com/forums/showthread.php?p=170082&postcount=850

Thanks,
Jere

silkshadow
08-10-2006, 12:08 AM
Thanks for those answers, Jere!

Jere_Jones
08-10-2006, 05:00 AM
Thanks for those answers, Jere!
No problem. :) Did all that make sense?

Jere

nyplayer
08-10-2006, 07:49 AM
Jere,

This is what I did this morning.

1. I started Dirmon2 with INI below (more info after INI scroll down)

[Global]
Polling Time = 600
Available Resources = 100

[Service]
Start Automatically = 0
Run as Local System = 1
Allow Interaction With Desktop = 1
Run as User = 0
User Name =
User Password =

[Job Description 1]
Name = mpg2avi
Processor = C:/encode.bat
Targets Are Paths = 0
Targets Are Extensions = 1
Command Line Options =
Must Exist 1 = MPG2AVI
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = avi
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = F:/sageb
Target 1 = mpg
Resources Needed = 100
Timeout Enabled = 0
Timeout = -1
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 1
Wait Until File Is Finished = 0
Wait Until File Is Idle = 1
Wait Until File Is Not Growing = 0
Wait Until File Is Not Growing Time = 1
Wait Until Drive Is Idle = 0
Wait Until Drive Is Idle Time = 2
Hide Console = 1
Blackout Enabled = 0
Blackout Start Time = 0
Blackout End Time = 0

2. I have a file F:\sageb\AngelasEyes-EyesoftheFather-18287-0.mpg

3. I started Playing the file in powerdvd. This way file is not Idle..

4. I create a trigger F:\sageb\AngelasEyes-EyesoftheFather-18287-0.MPG2AVI

5. After a while I looked at Activity log while file is playin and active cvs
2006-Aug-10 06:02:22 - Starting overseer
2006-Aug-10 06:12:24 - Starting: "mpg2avi" on "F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg"

100,<--,Number of resources currently in use
0,mpg2avi,F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg

6.file is still playing. No Job is running.

7. I stop playing file. Check unlocker no handles.

8. Wait Wait Wait... Nothing happens

9. Look at activity log and avtive cvs
2006-Aug-10 06:02:22 - Starting overseer
2006-Aug-10 06:12:24 - Starting: "mpg2avi" on "F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg"

100,<--,Number of resources currently in use
0,mpg2avi,F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg

10. I finally stop and start Dirmon2 and my batch file takes off.

2006-Aug-10 06:02:22 - Starting overseer
2006-Aug-10 06:12:24 - Starting: "mpg2avi" on "F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg"
2006-Aug-10 06:44:51 - Starting overseer
2006-Aug-10 06:44:51 - Starting: "mpg2avi" on "F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg"

100,<--,Number of resources currently in use
2236,mpg2avi,F:/sageb/AngelasEyes-EyesoftheFather-18287-0.mpg

silkshadow
08-10-2006, 10:19 PM
No problem. :) Did all that make sense?

Jere

Yup, exactly what I as looking for, thanks!

ekiwi
08-11-2006, 01:34 AM
until this week

every time i try to start it i get the error displayed in the attached file

i uninstalled it installed an older version mucked around alot and suddenly it started to work again.

re inputed the jobs and it worked well for 2 days now it is back again

i have virus/spy/malware checked and it is all ok

i notice i got some updates from ms this week

does dirmon depend on anything else that i could reload

UPDATE

the error goes away when i kill explorer and restart. The dirmon gui will then open and run without issue but the problem reappears some period shorter than 4 hours later. when it wont run nothing else seems to fail.

Anyone have any ideas short of reinstalling my pc

bcjenkins
09-06-2006, 08:30 PM
Dirmon is hanging on to shows that SA has finished scanning. Mostly noticed with partial viewings, the PID is always 0. I have set it to kill after 6 hours, I think, but that doesn't seem to help. Is anyone else seeing this?

geogecko
09-06-2006, 08:42 PM
Dirmon is hanging on to shows that SA has finished scanning. Mostly noticed with partial viewings, the PID is always 0. I have set it to kill after 6 hours, I think, but that doesn't seem to help. Is anyone else seeing this?

Nope, it must be something that keeps triggering DM to restart SA.

I've sometimes found that I have to stop the service, uninstall, save, get out, come back in, install the service, start, save, and then close out. Sometimes this will fix issues I've had in the past.

Otherwise, you might need to check your trigger settings, or automatic file cleanup, to make sure it's not triggering when it's not supposed to, or that it's not cleaning up a file it's not supposed to.

bcjenkins
09-06-2006, 08:49 PM
Nope, it must be something that keeps triggering DM to restart SA.

I've sometimes found that I have to stop the service, uninstall, save, get out, come back in, install the service, start, save, and then close out. Sometimes this will fix issues I've had in the past.

Otherwise, you might need to check your trigger settings, or automatic file cleanup, to make sure it's not triggering when it's not supposed to, or that it's not cleaning up a file it's not supposed to.
Thanks for the reply. Triggered events seem to be handled appropriately. It looks/smells more like DM isn't noticing the termination of SA and loses track of the process exiting. Since it can no longer find the original PID, it assigns it to PID 0, which is the System Idle Process. This only seems to be happening on shows where I was flipping channels and the "temporary" recordings are set to delete.

B

Wirenut
09-08-2006, 03:48 PM
I've had the same thing happen with Comskip. When flipping through channels, a show must not get deleted by Sage fast enough on exit, and Dirmon2 triggers Comskip.... then.... I think.... Sage deletes the file that comskip is operating on and the current job "hangs." Then I see a PID of 0 and maybe a couple of other jobs in the queue waiting on the "hung" job.

Wirenut

dflachbart
09-08-2006, 04:08 PM
I've had the same thing happen with Comskip. When flipping through channels, a show must not get deleted by Sage fast enough on exit, and Dirmon2 triggers Comskip.... then.... I think.... Sage deletes the file that comskip is operating on and the current job "hangs." Then I see a PID of 0 and maybe a couple of other jobs in the queue waiting on the "hung" job.

Wirenut
Same here ... A fix for this would be great

Dirk

Stuntman
09-08-2006, 04:20 PM
Same here ... A fix for this would be great

Dirk
I see this too.. I have to stop and start dirmon to clear it..

waynedunham
09-09-2006, 06:41 PM
I've had the same thing happen with Comskip. When flipping through channels, a show must not get deleted by Sage fast enough on exit, and Dirmon2 triggers Comskip.... then.... I think.... Sage deletes the file that comskip is operating on and the current job "hangs." Then I see a PID of 0 and maybe a couple of other jobs in the queue waiting on the "hung" job.

Wirenut

Sounds like what may have happened to me yesterday also. Found that everything recorded last night hadn't been processed. Fired up Dirmon gui and found a job with a PID of 0 and all the recordings sitting in the queue. Problem was there was no mpg for the file being "processed" so it just hung there.

Wirenut
09-12-2006, 03:39 PM
Anybody got a fix or work-around to this?

I tried changing the intervals for checking on if a file has stopped growing, and a few others... and have had no luck. I also have adjusted the time for "timeout" and have had no luck.

Still have DirMon hung on a job with a PID of 0 and no mpg file in place... I'm thinking about setting the black out time again, so I can flip channels after work.

But I really would like the show to be processed like five minutes or so after the recording has finished.

Wirenut

bcjenkins
09-12-2006, 05:27 PM
Hope everything is alright with him.

B

Jere_Jones
09-12-2006, 07:46 PM
I'm here. :)

The new baby takes up a lot of time and I've been hard at work on the SchoolHouse.

There is good news for the above gripes. I won't promise anything, but I'd recommend a visit over to the SA thread. :)

Jere

Wirenut
09-13-2006, 08:01 AM
Well... I guess I'll have to pony up some money and get SA. I was kinda thinkin' this problem might be better solved in the target program.

Suppose I'll start naggin' over at the comskip board to see if anything could be resolved there. ... or maybe there's a parameter I need to look at in the ini file.

Wirenut

Jere_Jones
09-13-2006, 08:05 AM
Don't forget that you can always get a couple weeks of trial time to make sure it does work for you. The place to get a trial key is here: http://www.dragonglobal.org/trialrequest.htm

Jere

ID10Tbox
09-13-2006, 04:52 PM
Greetings. I am new to Sage and to Dirmon. (this is my first post! :D)
I'll try not to come across as being thick...

Here is my situation:
I have two jobs set up in Dirmon2. The first is to run comskip from a batch file. The batch file uses start /low comskip.exe %1 to give the process a low priority. The second job is another batch file called comclean which will run mencoder on the files to remove the commercials previously detected by comskip. mencoder is started with a start /low as well. As far as the triggers go, they seem to be working fine - I have mpg as target "must not exist" edl for comskip and mpg as target and "must exist" edl set up for comclean. I set up my polling for 300s (5min). The priority boost on comskip is set to 99 and for comclean to 0 to make sure comskip will always run on the files first. Both jobs are set to work the older files first. Resources required is set to 100 for each of the jobs (with global set to 100) because I don't want comskip and comclean running at the same time - on each file I want to run one and then the other.

Now, if I start the service the first job starts as expected, running comskip on the oldest file in the dir. But what invariably ends up happening is that when comskip finishes (file has been processed and cmd window disappears) it remains in the Active jobs list with a PID of 0. At that point there are jobs in the queue, but they never move to active since they are waiting for the resources supposedly in use. I get this result with the service enabled so I decided to try the Dirmon2 hidden instead. I seem to get the same result - it starts the comskip job on a file, that finishes and closes, then nothing. I look in task list and Dirmon2 (hidden) is still running, but nothing is happening. I thought it might be the polling time, but I waited 5 minutes... 6,7,...still nothing happened so I launched the GUI version and found the finished job still sitting in the Active list. Now, if I am running the service, and I stop then start the service, Dirmon2 will process the next job in the queue. Similarly, if I am running the Dirmon2 hidden, if I kill the task and launch it again, the queue starts to process again.

Last night I left the machine on and it was running comskip on an episode of SouthPark that had just finished recording. Overnight Sage recorded an episode of FamilyGuy and in the morning the mpg was sitting in the folder, but no processes had been run on the new mpg file. There were no .edl or .txt or anything besides the mpg. I thought about setting a timeout but since I am running these at low priority (so I can continue to watch live TV) and recording length may vary anywhere from 15 minutes to 2 hrs I am worried that the processing time will not be very predictable

Another thing I have seen a couple of times - and I do not know if it is related - is a file that has been deleted getting into the queue and then popping into the active list and staying there for good, preventing items in the queue from ever making it to the active list. Again if I stop/start the service or kill/start Dirmon2 hidden it goes away and the queue processes.

And one more I cannot explain, occasionally Dirmon2 will just start processing several jobs at once (comskip on 2 or 3 files, comclean on another) even though I have each job set to require 100 resources available and global is set to 100.

I am on Windows XP Pro SP2. I would love to have this work and I appreciate any input. I can post screen shots, ini files, logs, whatever you need. I have only been playing with it for about a day now but it would be great to get this working - I'd like to have it manage archiving/compressing new files as well.

Thanks Jere and anyone else who responds.

Humanzee
09-13-2006, 05:08 PM
Jere said something about that 0 PID problem in the showanalyzer thread. The new SA .8xx should address it. So it may not be a dirmon2 issue. I dont know about comskip though.

dflachbart
09-13-2006, 05:31 PM
Jere said something about that 0 PID problem in the showanalyzer thread. The new SA .8xx should address it. So it may not be a dirmon2 issue. I dont know about comskip though.

I think it might be a good idea to not only fix it in SA, but also in Dirmon2. It doesn't help those who use comskip, and it also really seems to be a Dirmon problem. Once Dirmon2 is getting stuck at this 0 PID process, there is actually no scheduled process running any more. This could happen with any process which gets kicked off by Dirmon, and it should be able to detect this situation and reset itself. Of course I have no idea if this easy or possible at all, Jere will know better.

Currently I can't really use Dirmon2 any more because it gets stuck almost every day, and I might have to try an earlier version again

Dirk

blade
09-13-2006, 06:47 PM
Currently I can't really use Dirmon2 any more because it gets stuck almost every day, and I might have to try an earlier version again

I don't know what version introduced the problem, but I'm using v0.5.5 with the latest version of comskip without any problems.

Jere_Jones
09-14-2006, 05:32 AM
I think it might be a good idea to not only fix it in SA, but also in Dirmon2.
Short version: DirMon waits on any given job to signal its completion. This signal is something Windows does when a process ends. A process that crashes doesn't get that signal emitted. Hence, DirMon never knows when the job ends.

Long version: Umm... too long to type.

Result: I've added yet another method to determine if the job is still running and will upload it shortly.

Jere

dflachbart
09-14-2006, 05:49 AM
Short version: DirMon waits on any given job to signal its completion. This signal is something Windows does when a process ends. A process that crashes doesn't get that signal emitted. Hence, DirMon never knows when the job ends.

Long version: Umm... too long to type.


Understand... It's just strange that I never had this problem with earlier versions of Dirmon



Result: I've added yet another method to determine if the job is still running and will upload it shortly.
Jere
Awesome, thank you so much ... :thumb:

Dirk

Jere_Jones
09-14-2006, 06:21 AM
Understand... It's just strange that I never had this problem with earlier versions of Dirmon
I think the problem is actually caused by Sage. I think Jeff found a way to delete files even if other programs have open handles to them. (If I'm wrong, I apologize :))

Try it. Run SA on a show and try to delete it. You shouldn't be able to. I know I can't. The only way I've been able to duplicate it is by sharing a local drive and then mapping it to another drive letter. Then while SA is running, I disconnect the mapping. And even then I get a stout warning from windows that I may be doing something bad. :)

Jere

Jere_Jones
09-14-2006, 06:26 AM
Ok. A new version of DirMon is up. As always, you can find the link in the first post of this thread.

0.6.1 - 14 September 2006
- Added another method to determine if the job is finished. This should prevent jobs that crash from holding up the queue.

Enjoy,
Jere

geogecko
09-14-2006, 07:25 AM
I think the problem is actually caused by Sage. I think Jeff found a way to delete files even if other programs have open handles to them. (If I'm wrong, I apologize :))

Try it. Run SA on a show and try to delete it. You shouldn't be able to. I know I can't. The only way I've been able to duplicate it is by sharing a local drive and then mapping it to another drive letter. Then while SA is running, I disconnect the mapping. And even then I get a stout warning from windows that I may be doing something bad. :)

Jere

Ah, ha! I wondered why sometimes I couldn't delete a file. Sage would let me delete it, but it would still show up. Only later, would it actually delete when I tried it. Must have been because of this. Interesting.

ID10Tbox
09-14-2006, 12:00 PM
I don't know if what I was seeing is a Sage problem per se, as several times I tried it when Sage was not running and it did the same thing (not recognizing that a job had finished and getting stuck active jobs list). I don't mean I had it sleeping or anything, I had exited STV completely and was trying to get Dirmon working with the mpg files I had in the folder from earlier. So it was not working on any files that were being written to or should have had access locks from anything else.

Could it have something to do with the fact that I am using Dirmon to call batch files and not an exe? Are others using them successfully? Or could it have to do with the fact that I am using the start command to set the priority? Right now I have both comskip.exe and mencoder.exe set to run with start /low /wait in the batch file. They both run fine if I run the batch file by itself.

I will check out the new version when I get home though, hopefully the new detection method will resolve this.

Thanks everyone and Jere especially! :D

ID10Tbox
09-14-2006, 10:06 PM
Jere,

That certainly seemed to take care of my problem with completed jobs remaining in the active jobs list and holding up the queue! Very much appreciated, indeed!
:clap: :goodjob: :clap:

The only odd thing that I have noticed still happening which I mentioned before is a file going into the queue then being deleted (in this case by Sage) yet remaining in the queue. When the active job finishes, Dirmon still tries to process the job for the already deleted file in the queue. Are the target conditions (must exist mpg) checked again before a job is moved from the queue into the active jobs list, or does the program just assume the file is still there? Because the deleted files do not automatically drop out of the queue... I have my polling set to five minutes so I thought maybe after that period of time it would check again and the ones that were no longer there would drop out of the list. But I waited and the deleted file that was in the queue moved up to the active jobs list, and the deleted file(s) that were in the queue remained there. All of the deleted files that showed up in the queue were the result of changing channels while watching liveTV in Sage. Otherwise, it is working great!... I don't know what you did to fix the "completed job" issue, but it worked a charm! Thanks again and I won't be too upset if you don't come out with a new version right away! :D Maybe it is just my settings and I should adjust my polling time or something? ...but it sure was nice to see it work like intended when I tried the new version tonight!

chadwolcott
09-15-2006, 04:05 PM
well I had high hopes that this was going to fix my problem as well, but alas it has not. Every day sage records 2 soaps for my wife and dirmon simply hangs there with one job "running" but never actually doing anything and the other in the queue. Same PID of 0 as the other people, but the latest versions of SA/Dirmon2 simply won't start the job. Stopping and restarting the service will start the processing just fine.

Wirenut
09-16-2006, 12:08 PM
Yeah... 0.6.1 still hangs for me when used with comskip [latests release].

i might try an older version of dirmon2 and see what happens then.

peace,

Wirenut

ps. where can i find the old releases of dirmon? I've been all around the Dragon Global Forums and site.

Jere_Jones
09-16-2006, 12:27 PM
If you are still experiencing hangs, did you shut down the service before installing the new version? Can you verify the version of the DirMon2.exe file?

Jere

geogecko
09-16-2006, 12:32 PM
Yeah... 0.6.1 still hangs for me when used with comskip [latests release].

i might try an older version of dirmon2 and see what happens then.

peace,

Wirenut

ps. where can i find the old releases of dirmon? I've been all around the Dragon Global Forums and site.

Go to the Global Dragon site, and to Dirmon, then on the link that says "Download," right click on this, and select "Copy Link Location."

Paste the link to the location bar address on your browser, and modify the version to the one you want to download.

Jere, is there anyway you can share the http://www.dragonglobal.org/download/ directory so that one could download older versions easier?

Not that most people would need to do this, but it would make it easier...

Wirenut
09-16-2006, 03:07 PM
I'm running 0.6.1.40, according to the Dirmon2.exe attributes.

Here's my .ini file...

[Global]
Polling Time = 600
Available Resources = 100

[Service]
Start Automatically = 1
Run as Local System = 1
Allow Interaction With Desktop = 1
Run as User = 0
User Name = Scott Strang
User Password = *¯Ý™2‚d

[Job Description 1]
Name = Scott
Processor = C:/Program Files/SageTV/SageTV/comskip/comskip.exe
Targets Are Paths = 0
Targets Are Extensions = 1
Command Line Options = --ini="C:\Program Files\SageTV\SageTV\comskip\comskip.ini"
Must Exist 1 = mpg
Must Exist Logic = OR
Must Exist 2 =
Must And Or Must Not Exist Logic = AND
Must Not Exist 1 = txt
Must Not Exist Logic = OR
Must Not Exist 2 =
Directory 1 = D:/DVRTEMP
Target 1 = mpg
Resources Needed = 100
Timeout Enabled = 1
Timeout = 1200
Priority Boost Due To Job Description = 0
Priority Boost Due To Age = 1
Priority Boost Due To Name = 0
Process Subdirectories = 1
Wait Until File Is Finished = 0
Wait Until File Is Idle = 0
Wait Until File Is Not Growing = 1
Wait Until File Is Not Growing Time = 60
Wait Until Drive Is Idle = 0
Wait Until Drive Is Idle Time = 2
Hide Console = 1
Blackout Enabled = 0
Blackout Start Time = 1700
Blackout End Time = 2359

[Cleanup Description 1]
Directory = D:/DVRTEMP
Process Subdirectories = 1
Target Extension 1 = txt
Trigger Extension 1 = mpg
[Cleanup Description 2]
Directory = D:/DVRTEMP
Process Subdirectories = 1
Target Extension 1 = log
Trigger Extension 1 = mpg



Wirenut

Wirenut
09-16-2006, 03:11 PM
Jere,

Here's Today's Activity log if it helps.

2006-Sep-16 00:00:45 - Starting overseer
2006-Sep-16 00:00:55 - Starting: "Scott" on "D:/DVRTEMP/WeirdWeapons-TheAllies-117024-0.mpg"
2006-Sep-16 00:02:19 - Processor done due to event.
2006-Sep-16 00:02:19 - Finished: "Scott" on "D:/DVRTEMP/WeirdWeapons-TheAllies-117024-0.mpg"
2006-Sep-16 00:10:45 - Attempting to delete: D:\DVRTEMP\WeirdWeapons-TheAllies-117024-0.txt
2006-Sep-16 00:10:45 - Attempting to delete: D:\DVRTEMP\WeirdWeapons-TheAllies-117024-0.log
2006-Sep-16 00:10:45 - Starting: "Scott" on "D:/DVRTEMP/GlennBeck-112506-0.mpg"
2006-Sep-16 02:40:45 - Attempting to delete: D:\DVRTEMP\TomGoestotheMayor-Undercover-89650-0.txt
2006-Sep-16 02:40:45 - Attempting to delete: D:\DVRTEMP\TomGoestotheMayor-Undercover-89650-0.log
2006-Sep-16 13:20:48 - Starting overseer
2006-Sep-16 13:20:58 - Starting: "Scott" on "D:/DVRTEMP/Soundstage-Train-115366-0.mpg"
2006-Sep-16 13:22:29 - Overseer terminated
2006-Sep-16 13:27:56 - Starting overseer
2006-Sep-16 13:28:06 - Starting: "Scott" on "D:/DVRTEMP/Soundstage-Train-115366-0.mpg"
2006-Sep-16 13:37:56 - Attempting to delete: D:\DVRTEMP\Soundstage-Train-115366-0.logo.txt
2006-Sep-16 13:41:09 - Processor done due to event.
2006-Sep-16 13:41:09 - Finished: "Scott" on "D:/DVRTEMP/Soundstage-Train-115366-0.mpg"
2006-Sep-16 13:41:16 - Starting: "Scott" on "D:/DVRTEMP/GeorgeCarlinOnCampus-129105-0.mpg"
2006-Sep-16 13:47:56 - Attempting to delete: D:\DVRTEMP\GeorgeCarlinOnCampus-129105-0.logo.txt
2006-Sep-16 13:54:25 - Processor done due to event.
2006-Sep-16 13:54:25 - Finished: "Scott" on "D:/DVRTEMP/GeorgeCarlinOnCampus-129105-0.mpg"
2006-Sep-16 13:54:26 - Starting: "Scott" on "D:/DVRTEMP/ThreesCompany-HelensRendezvous-117856-0.mpg"
2006-Sep-16 13:56:53 - Processor done due to event.
2006-Sep-16 13:56:53 - Finished: "Scott" on "D:/DVRTEMP/ThreesCompany-HelensRendezvous-117856-0.mpg"
2006-Sep-16 13:56:56 - Starting: "Scott" on "D:/DVRTEMP/Frequency-114671-0.mpg"
2006-Sep-16 13:57:56 - Attempting to delete: D:\DVRTEMP\ThreesCompany-HelensRendezvous-117856-0.logo.txt
2006-Sep-16 13:58:41 - Processor done due to event.
2006-Sep-16 13:58:41 - Finished: "Scott" on "D:/DVRTEMP/Frequency-114671-0.mpg"
2006-Sep-16 13:58:46 - Starting: "Scott" on "D:/DVRTEMP/Frequency-114671-1.mpg"
2006-Sep-16 14:00:26 - Processor done due to event.
2006-Sep-16 14:00:26 - Finished: "Scott" on "D:/DVRTEMP/Frequency-114671-1.mpg"
2006-Sep-16 14:07:56 - Attempting to delete: D:\DVRTEMP\Frequency-114671-0.logo.txt
2006-Sep-16 14:07:56 - Attempting to delete: D:\DVRTEMP\Frequency-114671-1.logo.txt
2006-Sep-16 14:07:56 - Attempting to delete: D:\DVRTEMP\ThreesCompany-HelensRendezvous-117856-0.txt
2006-Sep-16 14:07:56 - Attempting to delete: D:\DVRTEMP\ThreesCompany-HelensRendezvous-117856-0.log
2006-Sep-16 14:37:56 - Attempting to delete: D:\DVRTEMP\Frequency-114671-0.txt
2006-Sep-16 14:37:56 - Attempting to delete: D:\DVRTEMP\Frequency-114671-1.txt
2006-Sep-16 14:37:56 - Attempting to delete: D:\DVRTEMP\Frequency-114671-0.log
2006-Sep-16 14:37:56 - Attempting to delete: D:\DVRTEMP\Frequency-114671-1.log
2006-Sep-16 16:08:06 - Starting: "Scott" on "D:/DVRTEMP/MotorcycleRacing-AMAMotorcrossLites-117607-0.mpg"
2006-Sep-16 16:36:59 - Starting overseer
2006-Sep-16 16:37:09 - Starting: "Scott" on "D:/DVRTEMP/MotorcycleRacing-AMAMotorcrossLites-117607-0.mpg"
2006-Sep-16 16:43:33 - Processor done due to event.
2006-Sep-16 16:43:33 - Finished: "Scott" on "D:/DVRTEMP/MotorcycleRacing-AMAMotorcrossLites-117607-0.mpg"
2006-Sep-16 16:46:59 - Attempting to delete: D:\DVRTEMP\MotorcycleRacing-AMAMotorcrossLites-117607-0.logo.txt
2006-Sep-16 16:46:59 - Attempting to delete: D:\DVRTEMP\MotorcycleRacing-AMAMotorcrossLites-117607-0.txt
2006-Sep-16 16:46:59 - Attempting to delete: D:\DVRTEMP\MotorcycleRacing-AMAMotorcrossLites-117607-0.log


Peace,

Wirenut

chadwolcott
09-18-2006, 10:18 AM
almost identical here, checked version and activity file. Still requires a stop/start to begin SA process

snoopy
09-18-2006, 05:24 PM
DirMon and Show Analyzer are separate from SageTV correct?

I uninstalled and re-installed SageTV from scratch and now Show Analyzer has stopped working yet again. What's the fastest way to get it back. Do I have to re-configure everything?

geogecko
09-18-2006, 06:17 PM
DirMon and Show Analyzer are separate from SageTV correct?

I uninstalled and re-installed SageTV from scratch and now Show Analyzer has stopped working yet again. What's the fastest way to get it back. Do I have to re-configure everything?

They are separate programs. Uninstalling Sage should not affect SA or DM.

sleonard
09-18-2006, 06:28 PM
You still must install and configure the comskip STVi or it would appear that SA is not working. Other than that they are completely seperate and will not affect one another.

Scott

dflachbart
09-18-2006, 06:49 PM
almost identical here, checked version and activity file. Still requires a stop/start to begin SA process
Yeah, sorry to say but I am also still experiencing the PID 0 hangs. Will go back to 0.5.5 for now ...

Dirk

snoopy
09-18-2006, 10:00 PM
You still must install and configure the comskip STVi or it would appear that SA is not working. Other than that they are completely seperate and will not affect one another.

ScottI use Flachbar's latest SageMC 6.11a. Is there an additional comskip.stvi that I need for that? If so where?