NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 406 407 408 409 410 … 433 Next »
comskip is skipping comskipping

comskip is skipping comskipping
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#21
2010-09-25, 07:17 AM (This post was last modified: 2010-09-25, 08:28 AM by jksmurf.)
johnsonx42 Wrote:how do you know it isn't working? By that I mean the log seems to make it clear that your PostProcessing.bat is being called. Do you have any logging in your PostProcessing.bat to see what's actually going on? In the NextPVR sticky thread I gave an example PostProcessing.bat that does a good amount of logging to "processing.log" in the same directory with comskip. This helped me quite a bit in debugging my .bat file.

Yes I know it's being called, but I know it's not working (like the OP) because nothing happens i.e. no .edl, logo.txt or .txt files are produced like in my GBPVR setup. I will try your logging tip to see what happens, but given both directories in my example are discontinuous named folders, I thought it fair to ask if the issue with such files had been fixed up. If it has not, then it could be a culprit. If not, I need to investigate some more.

[UPDATE!]
This seems to work (thank you) but for some reason when two shows have the same end time it only did one.

Code:
C:\
cd C:\Users\Public\NPVR\Scripts\
comskip.exe %1 >processing.log

processing.log
Code:
The commandline used was:
comskip.exe D:\GBPVRVids\Pingu\Pingu_20100925_16001615.ts

Opening D:\GBPVRVids\Pingu\Pingu_20100925_16001615.ts
Using comskip.ini for initiation values.
Commercials were not found.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#22
2010-09-25, 09:53 AM
Did you copy your comskip.ini file from gbpvr directory?

"I'd rather have a bottle in front of me than a frontal lobotomy"
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#23
2010-09-25, 12:38 PM
Reddwarf Wrote:Did you copy your comskip.ini file from gbpvr directory?

yep!
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
speising
Offline

Member

Posts: 57
Threads: 9
Joined: Nov 2008
#24
2010-09-25, 02:50 PM
Code:
C:\
cd C:\Users\Public\NPVR\Scripts\
comskip.exe %1 >processing.log

i'd like to point out that that code (">" instead of ">>") will overwrite the processing.log on each call, so only the last will be visible.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#25
2010-09-25, 04:10 PM
jksmurf Wrote:This seems to work (thank you) but for some reason when two shows have the same end time it only did one.

Code:
C:\
cd C:\Users\Public\NPVR\Scripts\
comskip.exe %1 >processing.log

processing.log
Code:
The commandline used was:
comskip.exe D:\GBPVRVids\Pingu\Pingu_20100925_16001615.ts

Opening D:\GBPVRVids\Pingu\Pingu_20100925_16001615.ts
Using comskip.ini for initiation values.
Commercials were not found.

Running the std-out of comskip directly to a log file will cause a file lock condition so that any additional calls will fail. i.e. the first call opens the processing.log for writing; if you try to run comskip again with the same call, the processing.log is already opened and locked.

As speising points out you could use >> instead, which *might* allow simultaneous writing, but if that works it will just result in a gibberish log file with the output of two comskips intermingled.

Threre's really no reason to do any of that though - comskip already logs it's output to %1.log.

See my example PostProcessing.bat in the sticky thread for better ways to do logging.
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
HarryH3
Offline

Posting Freak

U.S.A
Posts: 925
Threads: 56
Joined: Mar 2006
#26
2010-09-25, 05:37 PM
Just to help you find it, IIRC, johnsonx42's example file was reply number 52 in that thread. Wink
i3-3570k, 8GB RAM, Win10 Pro, Nvidia GT710, HDHomeRun (OTA), NPVR 6.x
On a clear disk, you can seek forever...
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#27
2010-09-25, 05:47 PM
oh, sure, just take all the mystery and challenge out of life why don't you Rolleyes Wink
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#28
2010-09-26, 02:02 AM
johnsonx42 Wrote:Running the std-out of comskip directly to a log file will cause a file lock condition so that any additional calls will fail. i.e. the first call opens the processing.log for writing; if you try to run comskip again with the same call, the processing.log is already opened and locked.

As speising points out you could use >> instead, which *might* allow simultaneous writing, but if that works it will just result in a gibberish log file with the output of two comskips intermingled.

Threre's really no reason to do any of that though - comskip already logs it's output to %1.log.

See my example PostProcessing.bat in the sticky thread for better ways to do logging.

Not sure what std-out means please? :confused:
At the risk of sounding churlish and I'm sure your .bat is great, but if I ever need to modify it, it's just a wee bit too complicated for my needs. The >>processing.log was great, simple for dummies like me.

I only really needed the log to see if it was working at all, which it is. Not sure what happens when I have two shows ending simultaneously yet though, still testing. If comskip already logs it's output to %1.log, I presume I invoke that with verbose=0 in comskip.ini?

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#29
2010-09-26, 05:11 AM (This post was last modified: 2010-09-26, 05:27 AM by johnsonx42.)
I'm sorry for the confusion, std-out is a bit of a programmer term. It's short for Standard Output. Most command-line utilities that output text to the screen really write their text to a place called std-out. Normally, unless you specify something else, std-out is the screen (and likewise, std-in is the keyboard). However, if you'd like the output of a program to go somewhere else, like to a file, you redirect std-out using the '>' symbol. This way the program itself doesn't know or care about writing to the screen, files, or printers, or anything else you might think of to redirect it's output to; the OS handles all of that.

The single-form '>' means "redirect std-out of the preceeding command to the following file, which will be created if it doesn't exist or overwritten if it does".
The double-form '>>' means "redirect std-out of the preceeding command to the following file, which will be created if it doesn't exist or appended to if it does".
A very useful companion to those two is the pipe "|" which means "redirect std-out of the preceding command to std-in of the next command".

The reason "comskip %1 > logfile" breaks if you try to run it twice is that the first time you run it you're telling the OS to "create the file 'logfile' and and redirect the std-out of 'comskip.exe' to that file, holding it open the entire time comskip is running". The second time you run it, the first comskip is still running and still holding the 'logfile' open for it's std-out; therefore the redirection fails and the command is not run. As I said it might work with '>>' instead of '>', I'm not sure exactly how it does the file lock in that case, but if it did the result would be gibberish as the two comskips would write to the same 'logfile' at the same time.

I don't mean to suggest that you should use my entire .bat file, great though it is Wink, merely that it shows a better way to do logging from a .bat file that won't create the problem you're having. You could do something as simple as this:
Code:
C:\
cd C:\Users\Public\NPVR\Scripts\
echo %date%,%time% - invoking comskip on %1 >>processing.log
comskip %1
echo %date%,%time% - comskip finished with %1 >>processing.log

edit: to be very complete, in the explanation I gave for ">" and ">>", when I say "file" it could also be a device, like COM1:, LPT1: or other devices; it's not relevant to this discussion, but I wanted to save someone else from feeling the need to point it out.

edit 2: and also, somewhere along the way I got in the habit of calling it "std-out", when it is actually more correctly or commonly written "stdout".
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#30
2010-09-26, 07:27 AM
Excellent. Thanks for the easier code!
... and in a more geeky way, for the explanation of stdout :-)

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  Comskip Playback Odd Behavior kirschey 3 1,750 2021-09-27, 06:16 PM
Last Post: sub
  tsreader4 skipping issues dlindyds 63 14,744 2021-09-05, 03:23 AM
Last Post: rizarefaldi
  Fast-forward and comskip issues manic_biker 11 3,942 2021-07-12, 02:17 AM
Last Post: Robazz
  Comskip edl files ignored dbguru 3 2,273 2019-10-24, 06:11 PM
Last Post: mvallevand
  Issue with Beast IPTV recording - Skipping + Doesn't record full show abrupt ending russmehta01 3 3,065 2019-02-26, 09:20 PM
Last Post: sub
  VideoReDo vs Comskip drmargarit 2 1,578 2019-02-07, 12:08 AM
Last Post: drmargarit
  Npvr not skipping comskip break points glb1945 3 1,437 2018-11-18, 01:51 AM
Last Post: ga_mueller
  Installed NPVR on New PC, Comskip Now Not Working GWCowling323 12 4,256 2018-10-11, 04:44 PM
Last Post: mvallevand
  Blocky, skipping recordings on some channels at some times of day - OK rest of time martinu 2 1,480 2018-06-29, 04:51 PM
Last Post: martinu
  Video lag on comskipping and live tv unpause (4.1.1) GuruSR 11 3,449 2018-05-14, 01:12 AM
Last Post: NND

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

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

Linear Mode
Threaded Mode