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 … 1016 1017 1018 1019 1020 … 1231 Next »
Help with ComSkip

 
  • 0 Vote(s) - 0 Average
Help with ComSkip
dmclone
Offline

Junior Member

Posts: 10
Threads: 2
Joined: Jun 2005
#11
2005-07-02, 12:53 AM
I've also tried to run it manualy by doing this:
comclean g:\dvd\SportsCenter\test.mpg


After I ran this command, the file got renamed to test_original.mpg but the commercials were still there. What am I doing wrong?
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#12
2005-07-02, 06:30 PM
Your .bat is a bit messed up.
Here's what it should look like:
Quote:@echo off
Rem comclean.bat Version 0.0.1
Rem Adapt to your framerate times 100 (PAL=2500/NTSC=2997)
set framerate=2997
Rem Adapt to where mpgtx.exe can be found
set mpgtx="c:\Program Files\devnz\gbpvr\mpgtx.exe"

rem Initialize the variables
set start=0
set duration=0

rem Set the command line start
set cmdline=%mpgtx% -j -f -o "%~dpn1_clean.mpg" "%~dpn1.mpg"
set cutpoints=

rem Process all the lines from the Comskip output file
for /F "usebackq tokens=1,2,3*" %%i in ("%~dpn1.txt") do call :processline %%i %%j
rem Output last clip
call :totime %start%
set cmdline=%cmdline% [%tim%-]
echo Resulting cutpoints: %cutpoints%
rem echo %cmdline% >"%~dpn1.bat"
rem echo exit >>"%~dpn1.bat"
rem start /wait /low call "%~dpn1.bat"
@echo on
%cmdline%
@echo off
echo Resulting cutpoints: %cutpoints%
Rem RENAME the old .mpg file and rename the new one to the old name
delete /Q "%~dpn1.mpg"
move "%~dpn1_clean.mpg" "%~dpn1.mpg"
exit
goto :eof

:processline
rem Skip useless lines
if "%1"=="FILE" goto :eof
if "%1"=="-------------------" goto :eof
rem Output the clip information for the show part
set /a length=%1-%start%
set /a duration=%duration%+%length%
call :totime %length%
set cutpoints=%cutpoints% %tim%

if "%1"=="0" goto :nostartshow
call :totime %start%
set cmdline=%cmdline% [%tim%
call :totime %1
set cmdline=%cmdline%-%tim%]
:nostartshow
rem Remember start of next clip
set start=%2
goto :eof

:totime
set tim=
if "%1"=="0" goto :eof
set /A position=%1 *100 / %framerate%
set /A hours=%position% / 60 /60
set /A hrest = %position% - %hours%*60*60
set /A minutes=%hrest% /60
set /A seconds = %hrest% - %minutes%*60
set tim=%hours%:%minutes%:%seconds%
goto eof
:eof EXIT

Change the framerate at the top to PAL if you need to.
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
dmclone
Offline

Junior Member

Posts: 10
Threads: 2
Joined: Jun 2005
#13
2005-07-02, 11:04 PM
That fixed me. Thanks a ton.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Comskip pcostanza 3 2,388 2010-06-02, 01:46 AM
Last Post: pBS
  Running comskip at a scheduled time? gonzo90017 4 2,131 2010-05-19, 06:09 AM
Last Post: pBS
  Anyone using comskip in New Zealand - TVNZ, TV3 etc ? wodger 3 1,808 2010-04-22, 11:07 PM
Last Post: Lindsay
  Help do not know how to configure comskip to work with records or live. HYBRiD.BLiNG 1 1,527 2010-04-16, 12:43 AM
Last Post: Graham
  comskip problem dspdrew 3 1,870 2010-04-13, 03:55 AM
Last Post: Daldana
  ATSC LiveTV and comskip on same server/client system? linene 2 1,552 2010-03-07, 09:31 PM
Last Post: linene
  Comskip ts NZ Lindsay 2 1,950 2010-02-27, 11:56 PM
Last Post: lyntonb
  New play pause toggle and comskip soccerdad 3 2,050 2010-02-03, 12:59 AM
Last Post: AOSandman
  Comskip Comclean HELP! Darko1912 2 1,819 2010-01-28, 03:10 AM
Last Post: Darko1912
  Comskip files remain after deleting recordings 1oddfellow 10 4,627 2010-01-19, 06:17 AM
Last Post: spotty

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

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

Linear Mode
Threaded Mode