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) v
« Previous 1 … 86 87 88 89 90 … 125 Next »
comclean2 call cuttermaran?

 
  • 0 Vote(s) - 0 Average
comclean2 call cuttermaran?
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#1
2006-01-06, 11:20 AM
Dear Forum,

For some reason comclean2 won't rename the _clean file when I use the standard comclean2.bat. I'm not sure why but I have a feeling that the way comclean calls cuttermaran makes it detach cuttermaran and then finish the comclean2.bat before cuttermaran has created the _clean file, thus not finding _clean for rename.

I'm wondering if inserting a call into comclean2.bat like below will fix this:

call "<path to>\cuttermaran.exe" "%~dpn1.cpf"

Has anyone had the same phenomena or is there a simpler solution?

/Humperdinck
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#2
2006-01-06, 05:20 PM
Humperdinck Wrote:Dear Forum,

For some reason comclean2 won't rename the _clean file when I use the standard comclean2.bat. I'm not sure why but I have a feeling that the way comclean calls cuttermaran makes it detach cuttermaran and then finish the comclean2.bat before cuttermaran has created the _clean file, thus not finding _clean for rename.

I'm wondering if inserting a call into comclean2.bat like below will fix this:

call "<path to>\cuttermaran.exe" "%~dpn1.cpf"

Has anyone had the same phenomena or is there a simpler solution?

/Humperdinck

There are a couple of threads covering this elsewhere, but my experience is that cuttermaran hangs in the background or exits without processing the file. Since it is not producing the _clean files, the rest of the batch file fails.

This may have to do with cuttermaran's requirement to interact with the desktop. It seems that cuttermaran's GUI is a requirement for it to process the file. If the GUI can't come up, cuttermaran fails.

If you run the GBPVR server using the Local System account with the "Interact with Desktop" check box, it may run. I think that if you were to (re)start GBPVR from your logged in desktop it will have the most chance of working correctly.

My GBPVR system doesn't have a keyboard or monitor and I only log in remotely to do software updates. I have the GBPVR starting with an account with network access (instead Local System). I have not been able to get cuttermaran to launch and process successfully yet.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#3
2006-01-06, 05:53 PM
Nono, it's working just fine. It's only the renaming part that doesn't work. I also think there's an issue with the move command, I have changed my comclean2.bat as follows:

Rem demux the mpeg file
bbdmux "%~dpn1.mpg" 0xe0 "%~dpn1.m2v"
bbdmux "%~dpn1.mpg" 0xc0 "%~dpn1.mp2"
Remove the commercials
call "d:\grafik\gbpvr\cuttermaran\cuttermaran.exe" "%~dpn1.cpf"
del "%~dpn1.m2v"
del "%~dpn1.mp2"
copy "%~dpn1.mpg" "%~dpn1_original.mpg"
Rem Mulxiplex again to a regular mpeg file
mplex1 "%~dpn1_clean.m2v" "%~dpn1_clean.mp2" "%~dpn1.mpg"
del "%~dpn1_clean.m2v"
del "%~dpn1_clean.mp2"
del "%~dpn1*.info"
Rem RENAME the old .mpg file and rename the new one to the old name
Rem if EXIST "%~dpn1_clean.mpg" move "%~dpn1.mpg" "%~dpn1_original.mpg"
Rem if EXIST "%~dpn1_clean.mpg" move "%~dpn1_clean.mpg" "%~dpn1.mpg"

As you can see I changed the command move to the command copy to see if it keeps the original file.

Yes, Cuttermaran runs under windows and displays the gui while it runs, that's probably why it won't launch on your setup.

Thanks for your input!

/Humperdinck
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#4
2006-01-06, 06:12 PM
My mplex1 command looks like this:

mplex1 "%~dpn1_clean.m2v" "%~dpn1_clean.mp2" "%~dpn1_clean.mpg"

So it would produce the required _clean.mpg file.

Also, while it has been a long time since I wrote extensive batch files, it seems to me that the "call" command is used to start batch files that return processing to the initiating batch file. It is not meant for use on executables. The following line may work, but I do not think it is correct coding:

call "d:\grafik\gbpvr\cuttermaran\cuttermaran.exe" "%~dpn1.cpf"
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#5
2006-01-06, 06:17 PM
Here is the code for my latest attempt to get cuttermaran to process. I use psexec to start a batch file under the local system account so that it interacts with the desktop.

Rem demux the mpeg file
bbdmux "%~dpn1.mpg" 0xe0 "%~dpn1.m2v"
bbdmux "%~dpn1.mpg" 0xc0 "%~dpn1.mp2"

Remove the commercials
echo "c:\program files\cuttermaran\cuttermaran.exe" "%~dpn1.cpf" > "c:\cuttermaran.bat"
psexec -s -i "c:\cuttermaran.bat"

del "%~dpn1.m2v"
del "%~dpn1.mp2"

Rem Mulxiplex again to a regular mpeg file
mplex1 "%~dpn1_clean.m2v" "%~dpn1_clean.mp2" "%~dpn1_clean.mpg"
del "%~dpn1_clean.m2v"
del "%~dpn1_clean.mp2"
del "%~dpn1*.info"

Rem RENAME the old .mpg file and rename the new one to the old name
if EXIST "%~dpn1_clean.mpg" move "%~dpn1.mpg" "%~dpn1_original.mpg"
if EXIST "%~dpn1_clean.mpg" move "%~dpn1_clean.mpg" "%~dpn1.mpg"
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#6
2006-01-07, 05:00 PM
Hello David,

The copying seems to work fine, I now get the _original file fine. However I noticed that mplex also detaches so I changed yet again to the following (haven't tried it yet though) and I also disabled the autoencoding from GBPVR since I think the autoencoding starts right away after the file is recorded. I start the encoding from the comclean2 bat-file instead.

Rem demux the mpeg file
bbdmux "%~dpn1.mpg" 0xe0 "%~dpn1.m2v"
bbdmux "%~dpn1.mpg" 0xc0 "%~dpn1.mp2"
Remove the commercials
call "d:\grafik\gbpvr\cuttermaran\cuttermaran.exe" "%~dpn1.cpf"
del "%~dpn1.m2v"
del "%~dpn1.mp2"
copy "%~dpn1.mpg" "%~dpn1_original.mpg"
Rem Mulxiplex again to a regular mpeg file
call mplex1 "%~dpn1_clean.m2v" "%~dpn1_clean.mp2" "%~dpn1.mpg"
del "%~dpn1_clean.m2v"
del "%~dpn1_clean.mp2"
del "%~dpn1*.info"
Rem RENAME the old .mpg file and rename the new one to the old name
Rem if EXIST "%~dpn1_clean.mpg" move "%~dpn1.mpg" "%~dpn1_original.mpg"
Rem if EXIST "%~dpn1_clean.mpg" move "%~dpn1_clean.mpg" "%~dpn1.mpg"

call "d:\grafik\gbpvr\ffmpeg.exe" -y -i "%~dpn1.mpg" -vcodec xvid -qcomp 0.7 -qblur 0.3 -mbd 2 -qmin 3 -qscale 4 -qmax 31 -qdiff 2 -bt 8000 -bf 3 -aic -umv -b_qoffset 75 -i_qfactor 250 -me full -g 300 -ac 2 -ab 224 -acodec mp3 -deinterlace -ec 2 -b_qoffset 1 ""%~dpn1.avi"

Did psexec work for you?

/Humperdinck
David
Offline

Senior Member

Posts: 435
Threads: 18
Joined: Oct 2005
#7
2006-01-07, 06:17 PM
Well, other than using "call" before all your executables, your file looks good to me.

psexec does execute under the local System account, but does not always seem to find the active desktop to interact with. It seemed to work less than 50% of the time when I watch it. And I expect that it would never work when nobody is logged in, as is usually the case.

I really like the results of cuttermaran. I've debated seeing if the author could turn off the GUI via a command line switch. All forums are in German, so I am not sure how well I can get my point across.

Oh, as I understand it, autoconversion kicks off late at night.
David

PVR PC: Win2K3, Athlon x2 64 4600+, 1280MB Ram, 40+400 GB HD's, Gigabyte Network
PVR-250, ATSC-110 digital x2, GBPVR v1.3.7 w/SQLite DB
Extras: Addepisode 41, Comskip 79.46, EWA 76, Zaptools

DSM-520 (D-Link Media Lounge) FW 1.04 using TVersity Media Server 0.9.11.4
DSM-320 (D-Link Media Lounge) FW 1.09
MediaMVP

More specs
Humperdinck
Offline

Junior Member

Posts: 18
Threads: 3
Joined: Sep 2005
#8
2006-01-08, 04:36 PM
Yes, mine works fine now except for an extra " just before the avi filename when calling ffmpeg. You can set autoencoding with config.exe, either at a given time or right after recording is done.

Hope you get yours running as well!

/Humperdinck
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  COMCLEAN2 issues with Cuttermaran 1.67 phaderus 6 4,108 2006-06-12, 08:13 PM
Last Post: phaderus
  Comclean2 0.0.0 issue mian 31 9,516 2006-02-15, 02:01 AM
Last Post: TobyO
  Comskip, comclean2, and other processing. reboot 7 3,380 2005-12-01, 10:59 PM
Last Post: reboot

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

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

Linear Mode
Threaded Mode