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
soccerdad
Offline

Posting Freak

Posts: 1,198
Threads: 137
Joined: Feb 2005
#1
2010-06-18, 09:29 PM
Or better titled, "I don't know how to write a batch file to do this"

OK, I put comskip.exe and associated files in the C:Users\Public\NPVR folder. I know it works because I dropped a file on it and it starts. I wrote the following batch file and have it saved a PostProcessing.bat and put it in the same folder as comskip.exe:
c:
cd "c:Users\Public\NPVR\comskip.exe %1"

At the end of the recording nothing happens. I see in the log:

2010-06-18 17:02:01.755 [DEBUG][6] Starting: C:\Users\Public\NPVR\PostProcessing.bat D:\Recordings D\Maury\Maury_20100618_16001700.ts 7

I assume the .bat is incorrect, but I don't know what is wrong. Ideas for a poor comskipless soul?...
[SIZE="1"] Server= Asus M3A78-EM, 4 gigs ram, AMD A64 5200+, Windows 7 home premium 32, 1 HVR-1800, 1 PCH A-100, Test Rig, Biostar 880g+, AMD X2 260, 4 gb ram, Windows, 7 Home Premium 32, 1 DCR-2650 cablecard tuner [/SIZE]
[SIZE="1"][/SIZE]
Ton
Offline

Member

Posts: 233
Threads: 16
Joined: Aug 2005
#2
2010-06-18, 09:32 PM
Hi,

Not sure if it's you're posting, but the batch-file should read something like:
Quote:c:
cd \Users\Public\NPVR\
comskip.exe "%1"
//Ton
soccerdad
Offline

Posting Freak

Posts: 1,198
Threads: 137
Joined: Feb 2005
#3
2010-06-18, 10:27 PM
Thanks, it still did not work so I launched the string copied from the logs to the command line (after putting a pause in the .bat file) and it looks like it starts comskip but is complaining it is not an mpeg. Very odd. Then I copied the same recording and dropped it on comskip.exe and it started processing right away.
[ATTACHMENT NOT FOUND]

The only odd thing I see on the string I copied is the very end is .ts 7 I am not sure what the 7 is for?
[SIZE="1"] Server= Asus M3A78-EM, 4 gigs ram, AMD A64 5200+, Windows 7 home premium 32, 1 HVR-1800, 1 PCH A-100, Test Rig, Biostar 880g+, AMD X2 260, 4 gb ram, Windows, 7 Home Premium 32, 1 DCR-2650 cablecard tuner [/SIZE]
[SIZE="1"][/SIZE]
speising
Offline

Member

Posts: 57
Threads: 9
Joined: Nov 2008
#4
2010-06-18, 10:37 PM
obviously, the argument to postprocessing .bat isn't enclosed in quotes.
hm.
try

Quote:SET FILE=%*
SET FILE=%FILE:~0,-2%
comskip.exe "%FILE%"
soccerdad
Offline

Posting Freak

Posts: 1,198
Threads: 137
Joined: Feb 2005
#5
2010-06-18, 10:55 PM
speising Wrote:obviously, the argument to postprocessing .bat isn't enclosed in quotes.
hm.
try

It might be obvious to you....Rolleyes I have no idea what the % and "" are for, but I can copy anything!

Your try seemed to work when I did it from a c prompt. I will set another one up to record and see what happens.

Thanks
[SIZE="1"] Server= Asus M3A78-EM, 4 gigs ram, AMD A64 5200+, Windows 7 home premium 32, 1 HVR-1800, 1 PCH A-100, Test Rig, Biostar 880g+, AMD X2 260, 4 gb ram, Windows, 7 Home Premium 32, 1 DCR-2650 cablecard tuner [/SIZE]
[SIZE="1"][/SIZE]
speising
Offline

Member

Posts: 57
Threads: 9
Joined: Nov 2008
#6
2010-06-18, 11:08 PM
arguments are separated by whitespace, if not enclosed in quotes.
so, in your screenshot, comskip gets as filename only "D:\recordings", the first part of the filepath.
%* is just all arguments together, the rest is a little batch trickery, cutting away the last two characters, ie " 7", or the channel number. might not work though with channels > 9, come to think of it, because of the last space.

Quote:SET FILE=%*
SET FILE=%FILE:~0,-2%
if "%FILE:~-1%"==" " set FILE=%FILE:~0,-1%
comskip.exe "%FILE%"
soccerdad
Offline

Posting Freak

Posts: 1,198
Threads: 137
Joined: Feb 2005
#7
2010-06-18, 11:56 PM
Well it WORKED! Thanks for the help. Now off to find the post to disable autoskip... I will then post back with a short how to for others like me that are users and semi hackers.
[SIZE="1"] Server= Asus M3A78-EM, 4 gigs ram, AMD A64 5200+, Windows 7 home premium 32, 1 HVR-1800, 1 PCH A-100, Test Rig, Biostar 880g+, AMD X2 260, 4 gb ram, Windows, 7 Home Premium 32, 1 DCR-2650 cablecard tuner [/SIZE]
[SIZE="1"][/SIZE]
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 514
Threads: 51
Joined: Apr 2006
#8
2010-06-19, 02:50 AM
I think you'll find the version with this line:
comskip "%1"
will work when called by NPVR. When you called it from the command line, it wasn't able to keep the file name parameter separate from the channel parameter. When it is called by NPVR, it will be able to keep them apart. One reason the channel is passed in is that you might want to use a different command line or version of the comskip.ini for handling the output fom different channels. Especially for those of us still using GBPVR, since comskip can be instructed to handle .ts files from digital channels differently than .mpg from analog channels. In NPVR, of course, everything is .ts.
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#9
2010-06-19, 05:09 AM
nope, with comskip "%1", if the incoming filename already has quotes, you'll get 2 sets and end up quoting nothing...Smile eg: ""filename.ext""

use this: comskip "%~1"
which removes any existing quotes and adds a pair, so you always have only one pair of quotes..
the ~ removes quotes on the param if there are any...
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
soccerdad
Offline

Posting Freak

Posts: 1,198
Threads: 137
Joined: Feb 2005
#10
2010-06-19, 11:55 AM
Sorry to be such a pain, but the more I read, the more confused I get. But at least I am comforted by seeing not everyone thinks about this differently! Anyway, I still have the problem if the added channel number at the end is anything different than 1 digit.

I am not sure why sub sends the channel number in the string, or if there is way to keep it from doing that. I will have 1-4 digit channel numbers.
[SIZE="1"] Server= Asus M3A78-EM, 4 gigs ram, AMD A64 5200+, Windows 7 home premium 32, 1 HVR-1800, 1 PCH A-100, Test Rig, Biostar 880g+, AMD X2 260, 4 gb ram, Windows, 7 Home Premium 32, 1 DCR-2650 cablecard tuner [/SIZE]
[SIZE="1"][/SIZE]
« 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
  Comskip Playback Odd Behavior kirschey 3 1,751 2021-09-27, 06:16 PM
Last Post: sub
  tsreader4 skipping issues dlindyds 63 14,768 2021-09-05, 03:23 AM
Last Post: rizarefaldi
  Fast-forward and comskip issues manic_biker 11 3,944 2021-07-12, 02:17 AM
Last Post: Robazz
  Comskip edl files ignored dbguru 3 2,275 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,066 2019-02-26, 09:20 PM
Last Post: sub
  VideoReDo vs Comskip drmargarit 2 1,581 2019-02-07, 12:08 AM
Last Post: drmargarit
  Npvr not skipping comskip break points glb1945 3 1,438 2018-11-18, 01:51 AM
Last Post: ga_mueller
  Installed NPVR on New PC, Comskip Now Not Working GWCowling323 12 4,257 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,481 2018-06-29, 04:51 PM
Last Post: martinu
  Video lag on comskipping and live tv unpause (4.1.1) GuruSR 11 3,465 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