NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 228 229 230 231 232 … 1231 Next »
contig

 
  • 0 Vote(s) - 0 Average
contig
Bluethunder
Offline

Member

Posts: 130
Threads: 32
Joined: Jan 2006
#11
2008-04-05, 04:51 PM
thanks for the tips. I'll try them this morning
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#12
2008-04-07, 08:22 AM
when you do a cd command on another drive it does the cd action, but does not change to that drive letter Wink
if you need to do this, you will have to change the drive too (i.e. in your case try to add a line "d:" in your batch). quicker & better alternative: instead of your "cd D:\GB-PVR" just use "pushd D:\GB-PVR". pushd changes the dir AND the drive at the same time Big Grin
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
Bluethunder
Offline

Member

Posts: 130
Threads: 32
Joined: Jan 2006
#13
2008-04-07, 05:11 PM
I changed my postprocessing.bat to

[INDENT]echo 1 >>pp.log
c:
echo 2 >>pp.log
cd \program files\devnz\gbpvr >>pp.log
echo 3 >>pp.log
contig -v%1 >>pp.log
echo 4 >>pp.log[/INDENT]

and this is what it shows:
[INDENT]1
2
3
[/INDENT]

so it is definetly hanging on the contig command. I have a hung cmd.exe and contig.exe in my task manager.

What I knoticed, there is no command window that pops up when it trys to run this. I'm not sure where it is running this, but it is hidden.

If I add other commands to postprocessing.bat, they hang as well, so its not just contig thats having a fit.

If I dbl click on postprocessing.bat, it opens, and runs fine.

Is there any way to control how pvrx2 opens postprocessing.bat?
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#14
2008-04-07, 06:28 PM
I thought there must be a space between -v and %1 so

contig -v %1 >>pp.log
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
Bluethunder
Offline

Member

Posts: 130
Threads: 32
Joined: Jan 2006
#15
2008-04-07, 11:18 PM
I just gave up on trying to get contig to run. I found an alternate called defragme.

Works fine.

DefragMentor Lite CL 5.0 for Windows NT/2000
FREE command line utility for defragmenting files on FAT/FAT32 and NTFS volumes
Copyright © 1999-2001 Michael Gromov
Web-site: http://www.defragmentor.com E-mail: mailbox@defragmentor.com

FILE: C:\gbpvr\recordings\Just for Laughs Gags\Just for Laughs Gags_20080407_17001730-2.mpg
COMPLETED: Defragmented from 73 to 1 fragment(s)

thanks everyone.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#16
2008-04-08, 09:05 AM (This post was last modified: 2008-04-08, 09:32 AM by bgowland.)
Bluethunder

I'd never tried contig but I gave it a try with the details of your last PostProcessing.bat. It did the same for me, i.e., seemed to hang.

I noticed the first time I ran contig from the command prompt, it popped up a licence agreement and I had to click 'Accept' for it to proceed.

This is where the problem lies.

When you accept the EULA, it creates a registry entry for the current user.

The problem is that the GB-PVR Recording Service (by default) runs as LocalSystem. As a result, there isn't a EulaAccepted registry value for contig for that pseudo 'user' and the hidden PostProcessing.bat window is waiting with a hidden EULA popup dialog.

I just tried changing the logon account for my GB-PVR Recording Service to my normal user account and contig ran fine in PostProcessing.bat...
Quote:1
2
3

Contig v1.54 - Makes files contiguous
Copyright © 1998-2007 Mark Russinovich
Sysinternals - http://www.sysinternals.com

------------------------
Processing D:\GB-PVR\The Cramp Twins\The Cramp Twins_20080408_09250940.mpg:
Scanning file...
Scanning disk...
File is 72522 physical clusters in length.
File is in 619 fragments.

Found a free disk block at 21173876 of length 76384 for entire file.
Moving 72522 clusters at file offset cluster 0 to disk cluster 21173876
File size: 297048000 bytes
Fragments before: 619
Fragments after : 1
------------------------
Summary:
Number of files processed : 1
Number of files defragmented: 1
Average fragmentation before: 619 frags/file
Average fragmentation after : 1 frags/file

4

In short - if you run the rec. service as LocalSystem, NEVER put anything into the PostProcessing.bat which has a popup EULA or similar unless it has a command-line argument along the lines of...

-d Don't show popups

EDIT: Fix for LocalSystem - use Regedit (normal disclaimer applies). HKEY_USERS\S-1-5-18\Software\SysInternals\C add a DWORD value named 'EulaAccepted' as 0x1. Contig should now run in PostProcessing.bat when the rec. service is running as LocalSystem.

Cheers,
Brian
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#17
2008-04-08, 09:54 AM
bgowland Wrote:In short - if you run the rec. service as LocalSystem, NEVER put anything into the PostProcessing.bat which has a popup EULA or similar unless it has a command-line argument along the lines of...

-d Don't show popups

doh, should have thought about that. sysinternals are notoriuos for their changes regarding EULA (since the takeover from m$), they do have a command line option -accepteula... guess what: it's a bug in contig, this switch is not supported :-(
that's not so nice... does anybody know hot to add that key to the local systems current user part? i would not like to run the recordingservice under a local user, don't like to see the ugly dos boxes...
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
Bluethunder
Offline

Member

Posts: 130
Threads: 32
Joined: Jan 2006
#18
2008-04-08, 03:49 PM
bgowland Wrote:Bluethunder

I'd never tried contig but I gave it a try with the details of your last PostProcessing.bat. It did the same for me, i.e., seemed to hang.

I noticed the first time I ran contig from the command prompt, it popped up a licence agreement and I had to click 'Accept' for it to proceed.

This is where the problem lies.

When you accept the EULA, it creates a registry entry for the current user.

The problem is that the GB-PVR Recording Service (by default) runs as LocalSystem. As a result, there isn't a EulaAccepted registry value for contig for that pseudo 'user' and the hidden PostProcessing.bat window is waiting with a hidden EULA popup dialog.

I just tried changing the logon account for my GB-PVR Recording Service to my normal user account and contig ran fine in PostProcessing.bat...

In short - if you run the rec. service as LocalSystem, NEVER put anything into the PostProcessing.bat which has a popup EULA or similar unless it has a command-line argument along the lines of...

-d Don't show popups

EDIT: Fix for LocalSystem - use Regedit (normal disclaimer applies). HKEY_USERS\S-1-5-18\Software\SysInternals\C add a DWORD value named 'EulaAccepted' as 0x1. Contig should now run in PostProcessing.bat when the rec. service is running as LocalSystem.

Cheers,
Brian


Your a magician. I thought cause I had accepted the eula before, it would be fine, and never gave it a thought.. Might try it again.

Don't know if contiq made it into the wiki, but this info NEEDS to be added, cause its frustrating as hell.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#19
2008-04-08, 07:06 PM
K.S. Wrote:does anybody know hot to add that key to the local systems current user part? i would not like to run the recordingservice under a local user, don't like to see the ugly dos boxes...
See the edit to my post...
Quote:EDIT: Fix for LocalSystem - use Regedit (normal disclaimer applies). HKEY_USERS\S-1-5-18\Software\SysInternals\C add a DWORD value named 'EulaAccepted' as 0x1. Contig should now run in PostProcessing.bat when the rec. service is running as LocalSystem.
That seemed to work for me.

Cheers,
Brian
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,595
Threads: 387
Joined: Dec 2004
#20
2008-04-08, 07:31 PM
Bluethunder Wrote:I thought cause I had accepted the eula before, it would be fine, and never gave it a thought.
Yeah - it confused me for a while then I discovered the EulaAccepted registry entry and put 2 and 2 together.

Quote:Don't know if contiq made it into the wiki, but this info NEEDS to be added, cause its frustrating as hell.
I think it would be worth putting something in the 'Batch Files' section which warned about this sort of behaviour. zehd put together the batch files section on the wiki - I'll PM him in case he isn't following this thread.

Cheers,
Brian
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  help with postprocessing batch file and contig.exe fluffykeith 8 3,125 2008-12-04, 01:29 PM
Last Post: mmatheny

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode