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 … 657 658 659 660 661 … 1231 Next »
Post Processing bat file question

 
  • 0 Vote(s) - 0 Average
Post Processing bat file question
nightwalker
Offline

Senior Member

Posts: 733
Threads: 54
Joined: May 2005
#1
2006-12-03, 10:57 PM
I don't think this is a GBpvr problem, at least i don't think so but i'm not sure where the problem is, Maybe someone here has a clue.

I use comskip, comclean and retime all from the post processing bat after recording a show. This has worked flawlessly for almost a year. In the past few weeks or a month i've noticed that there are times that the bat file does not complete. It produces jerky recording files and doesn't clean up after itself. The last commands are, to delete files created by the process. My clue that things are amis has been those files at times being left instead of deleted.

Is there a way to tell where the bat file chokes and why? I can't seem to pin it down as sometimes it works perfectly as it should, other times not and leaves files that should have been deleted and very jerky video, like i would expect since it hasn't really finished.

I'm not sure if this is a clue or not but the process of comskip/comclean/retime used to take about 34 minutes to complete a 1 hour recording, now sometimes it's up to over an hour to complete and somtimes it doesn't complete at all. Nothing in the bat file has changed nor have i updated any of the comskip/comclean/retime files. They are the same as has worked for a very long time now.

I hope this makes sense.
-Oz-
Offline

Posting Freak

Posts: 803
Threads: 33
Joined: Aug 2006
#2
2006-12-04, 12:36 AM
i can't help you with your problems exactly but here are some tests:
-copy all the contents to another bat file in the gbpvr folder. Now take a test video.
-Remove everything but comksip, run the test (drag the video onto the bat file)
-If that works remove everything but comskip and the next program in line, run the test

Continue that until it doesn't work. This should clue you in to exactly whats the problem.
Dan Blomberg
[SIZE="1"]HTPC 1: MSI K8NGM2-FID, AMD 64 3000+, WD 200gb HDD, 1gb ram, NSK2400, PVR-500, Harmony 659
HTPC 2: ASUS M2NPV-VM, AMD 64 3200+, WD 250gb HDD, 1gb ram, nVidia DualTV MCE, NSK2400, Harmony 720
HTPC 3: GIGABYTE GA-E7AUM-DS2H GeForce 9400, Intel E5200 Wolfdale, WD 640gb HDD, 4gb ram, Antec Fusion 2, HVR-1600, hdhomerun, Harmony 880, PCH A-110
GBPVR 1.4.7 Additions: Weather2, UltraXMLTV, Comskip
Project: Setup Logitech Harmony Remote[/SIZE]
nightwalker
Offline

Senior Member

Posts: 733
Threads: 54
Joined: May 2005
#3
2006-12-04, 12:49 AM
I can't say i've tried that but i will. Only problem is sometimes like about 75% of the time it works as it's supposed to. That's the part i don't understand, why it works most of the time. Sure would be nice if there was a log file of the bat running Smile
tunanugget
Offline

Senior Member

Posts: 262
Threads: 99
Joined: Nov 2006
#4
2006-12-04, 01:32 AM
nightwalker Wrote:I don't think this is a GBpvr problem, at least i don't think so but i'm not sure where the problem is, Maybe someone here has a clue.

I use comskip, comclean and retime all from the post processing bat after recording a show. This has worked flawlessly for almost a year. In the past few weeks or a month i've noticed that there are times that the bat file does not complete. It produces jerky recording files and doesn't clean up after itself. The last commands are, to delete files created by the process. My clue that things are amis has been those files at times being left instead of deleted.

Is there a way to tell where the bat file chokes and why? I can't seem to pin it down as sometimes it works perfectly as it should, other times not and leaves files that should have been deleted and very jerky video, like i would expect since it hasn't really finished.

I'm not sure if this is a clue or not but the process of comskip/comclean/retime used to take about 34 minutes to complete a 1 hour recording, now sometimes it's up to over an hour to complete and somtimes it doesn't complete at all. Nothing in the bat file has changed nor have i updated any of the comskip/comclean/retime files. They are the same as has worked for a very long time now.

I hope this makes sense.

can u post the bat file? curious what u're doing w/ the three programs. thanks.
nightwalker
Offline

Senior Member

Posts: 733
Threads: 54
Joined: May 2005
#5
2006-12-04, 01:49 AM
sure, looks like this

@echo off

echo Comskip running on %1 recorded from channel %2 >>channel.log

Rem list of channels to not run comskip on
if "%2" == "5" goto eof:
if "%2" == "71" goto eof:
if "%2" == "12" goto eof:
if "%2" == "19" goto eof:
goto generic:

:generic
comskip %1

:continue
call comclean %1
call retime %1
del "%~dpn1_original.mpg"
del "%~dpn1_clean.mpg"
move "%~dpn1_original.mpg" E:\holding
move "%~dpn1_clean.mpg" E:\holding
del "%~dpn1.log"
del "%~dpn1.txt"
del "%~dpn1.VPrj"
:eof
-Oz-
Offline

Posting Freak

Posts: 803
Threads: 33
Joined: Aug 2006
#6
2006-12-04, 06:06 AM
I can't tell exactly whats wrong offhand. A few things though:

Code:
@echo off

echo Comskip running on %1 recorded from channel %2 >>channel.log

Rem list of channels to not run comskip on
if "%2" == "5" goto eof:
if "%2" == "71" goto eof:
if "%2" == "12" goto eof:
if "%2" == "19" goto eof:

comskip %1

call comclean %1
call retime %1
del "%~dpn1_original.mpg"
del "%~dpn1_clean.mpg"
move "%~dpn1_original.mpg" E:\holding
move "%~dpn1_clean.mpg" E:\holding
del "%~dpn1.log"
del "%~dpn1.txt"
del "%~dpn1.VPrj"
:eof

I deleted the extra labels as they aren't need. It shouldn't cause a problem but its a possibility. Also, do you really not want comskip to run on channels 5, 71, 12, and 19 because it definitely is skipping things for those.

One more thing, how is it moving the files to E:\holding if you've already deleted them in the two lines before.
Dan Blomberg
[SIZE="1"]HTPC 1: MSI K8NGM2-FID, AMD 64 3000+, WD 200gb HDD, 1gb ram, NSK2400, PVR-500, Harmony 659
HTPC 2: ASUS M2NPV-VM, AMD 64 3200+, WD 250gb HDD, 1gb ram, nVidia DualTV MCE, NSK2400, Harmony 720
HTPC 3: GIGABYTE GA-E7AUM-DS2H GeForce 9400, Intel E5200 Wolfdale, WD 640gb HDD, 4gb ram, Antec Fusion 2, HVR-1600, hdhomerun, Harmony 880, PCH A-110
GBPVR 1.4.7 Additions: Weather2, UltraXMLTV, Comskip
Project: Setup Logitech Harmony Remote[/SIZE]
nightwalker
Offline

Senior Member

Posts: 733
Threads: 54
Joined: May 2005
#7
2006-12-04, 12:15 PM
opps, you're right about the move/delete. I also removed some labels to keep it simple. Those would have either the move command or the delete command rem'ed out but not both going. Since I've been having troubles I've changed the delete to move in case something goes wrong during the process, i still have the original file.

as far as the channels I'm not running comskip on, those channels are commercial free so there is no need to comskip them.

Maybe someone can answer this question. It's something I've wondered about ever since it's been taking so long to process the files.

What happens when the post processing bat is still running on one file and another one on a back to back recording is ready to go?

Does the postprocessing bat just do another instance of itself, or does it wait till one finishes before starting another?
-Oz-
Offline

Posting Freak

Posts: 803
Threads: 33
Joined: Aug 2006
#8
2006-12-04, 02:42 PM
i think it waits. I only kinda know because I use videoredo on my files and it pops up a small window and I know one was processing when another finished and the window didn't pop up so it must have waited. I'm not 100% sure though. Sounds like a thing for Sub.
Dan Blomberg
[SIZE="1"]HTPC 1: MSI K8NGM2-FID, AMD 64 3000+, WD 200gb HDD, 1gb ram, NSK2400, PVR-500, Harmony 659
HTPC 2: ASUS M2NPV-VM, AMD 64 3200+, WD 250gb HDD, 1gb ram, nVidia DualTV MCE, NSK2400, Harmony 720
HTPC 3: GIGABYTE GA-E7AUM-DS2H GeForce 9400, Intel E5200 Wolfdale, WD 640gb HDD, 4gb ram, Antec Fusion 2, HVR-1600, hdhomerun, Harmony 880, PCH A-110
GBPVR 1.4.7 Additions: Weather2, UltraXMLTV, Comskip
Project: Setup Logitech Harmony Remote[/SIZE]
nightwalker
Offline

Senior Member

Posts: 733
Threads: 54
Joined: May 2005
#9
2006-12-04, 03:06 PM
-Oz- Wrote:i think it waits. I only kinda know because I use videoredo on my files and it pops up a small window and I know one was processing when another finished and the window didn't pop up so it must have waited. I'm not 100% sure though. Sounds like a thing for Sub.

I think it waits as well, but i'm not positive either, maybe sub has read some of this and can chime in.
wtg
Offline

Posting Freak

Posts: 1,402
Threads: 120
Joined: Mar 2005
#10
2006-12-04, 03:23 PM
How's your disk space? If the disk is getting close to full and badly fragmented, the process can take considerably longer and the video will be jerky on playback, though the jerkiness will go away if you defragged it.

As far as diagnosing the aborts goes, try redirecting output from comclean and retime to a log file, and perhaps add a couple redirected echos to a log file to let you know where you are in the process. That way you'll have something to look at when it fails and perhaps give you a clue about what's happenning.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Conversion Processing paul1 1 2,880 2012-10-01, 10:07 AM
Last Post: Graham
  file types of recorded TV paul1 3 3,763 2012-09-30, 05:20 PM
Last Post: sub
  GBPVR Database question - Recording Schedule David B 1 1,672 2010-11-08, 09:21 PM
Last Post: sub
  Descriptive Audio Service Question mikeh49 3 3,185 2010-10-21, 10:49 PM
Last Post: sub
  No Data In the Recorded File zb1 5 2,358 2010-08-24, 01:08 AM
Last Post: zb1
  Italian channels post and a question about compatibility with Seven 64 bit pinopallino 2 1,702 2010-08-18, 09:14 AM
Last Post: pinopallino
  Path to file being recorded. brianj 5 2,428 2010-08-08, 10:58 PM
Last Post: brianj
  error: failure playing back file yonu 4 2,122 2010-07-12, 12:52 AM
Last Post: yonu
  UK Freesat Scan.cache File jeffers 3 2,134 2010-05-25, 10:34 PM
Last Post: jeffers
  Newbie Question rthefish 4 2,146 2010-05-25, 08:06 PM
Last Post: pBS

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

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

Linear Mode
Threaded Mode