![]() |
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
Quote:
btw: after I made that fix to my postprocess.xml I still had commercials , so I'll go comment out the QSF and see what happens then. Thanks for helping me with this. Trevor 2007 |
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
Try just using the comskip.bat file (without the delay or QSF or anything.)
See if you can drag and drop an MPG file onto the BAT file and see if that works.
__________________
Step by Step: Video Fixing, Commercial Detection, and Removal |
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
Here is the contents of my bat file:
Code:
::ComSkip
@ECHO OFF
::
::
:: Comskip script to commercial detection on Videos, using Comskip
:: (Last Edited 03-22-07)
::
::
SET COMSKIPFOLDER=C:\Comskip
::
::
IF EXIST "%~pdn1*log*" DEL "%~pdn1*log*"
IF EXIST "%~pdn1*txt" DEL "%~pdn1*txt"
IF EXIST "%~pdn1*index.dat" DEL "%~pdn1*index.dat"
IF EXIST "%~pdnx1.chapters.xml" DEL "%~pdnx1.chapters.xml"
IF EXIST "%~pdn1.chp" DEL "%~pdn1.chp"
IF EXIST "%~pdn1.vprj" DEL "%~pdn1.vprj"
ECHO .
ECHO Running Commercial Detection, using Comskip
ECHO .
"%COMSKIPFOLDER%\comskip.exe" "%~pdnx1"
::
:: clean up log and txt files
IF EXIST "%~pdn1*log*" DEL "%~pdn1*log*"
IF EXIST "%~pdn1*txt" DEL "%~pdn1*txt"
IF EXIST "%~pdn1*index.dat" DEL "%~pdn1*index.dat"
::
::
::Cut Comms
@ECHO OFF
::
::
:: Cut commercials script using the VPRJ file from Comskip and running it through VideoRedo.
:: (Last Edited 03-22-07)
::
::
IF %~x1==.tp SET EXT=/t4
IF %~x1==.mpg SET EXT=/t1
::
IF EXIST "%~pdn1.VPRJ" GOTO CHECKMATCHING
GOTO ENDCUT
::
:CHECKMATCHING
COPY "%~pdn1.VPRJ" %~d1\
::
::
::
::
IF EXIST "%~d1\*Modern*Marvels*.VPRJ" GOTO CUTNOW
IF EXIST "%~d1\*MythBusters*.VPRJ" GOTO CUTNOW
IF EXIST "%~d1\*Monk*.VPRJ" GOTO CUTNOW
IF EXIST "%~d1\*How*It*Made*.VPRJ" GOTO CUTNOW
IF EXIST "%~d1\*Star*Trek*Voyager*.VPRJ" GOTO CUTNOW
IF EXIST "%~d1\*Weird*U*S*.VPRJ" GOTO CUTNOW
IF EXIST "%~d1\*Scrubs*.VPRJ" GOTO CUTNOW
IF EXIST "%~d1\*Psych-(*.VPRJ" GOTO CUTNOW
::
::
::
::
:: If no matching files are found, we delete the temp VPRJ file and exit
DEL "%~d1\%~n1.VPRJ"
GOTO ENDCUT
::
:CUTNOW
::
:CHECKFORQSFMPG2
IF EXIST "%~d1\*.MPG" GOTO WAITTOQSFMPG2
GOTO ENDCHECKFORQSFMPG2
:WAITTOQSFMPG2
ECHO Another Quickstream Fix job is running (MPG file exists in "%~d1\")
ECHO Waiting 60 seconds...
SLEEP 60
GOTO CUTNOW
:ENDCHECKFORQSFMPG2
::
:CHECKFORQSFTP2
IF EXIST "%~d1\*.TP" GOTO WAITTOQSFTP2
GOTO ENDCHECKFORQSFTP2
:WAITTOQSFTP2
ECHO Another Quickstream Fix job is running (TP file exists in "%~d1\")
ECHO Waiting 60 seconds...
SLEEP 60
GOTO CUTNOW
:ENDCHECKFORQSFTP2
::
:CHECKFORCUT2
DEL "%~d1\%~n1.VPRJ"
IF EXIST "%~d1\*.VPRJ" GOTO WAITTOCUT2
GOTO ENDCHECKFORCUT2
:WAITTOCUT2
ECHO Another cutting job is running (VPRJ file exists in "%~d1\")
ECHO Waiting 60 seconds...
SLEEP 60
GOTO CUTNOW
:ENDCHECKFORCUT2
::
COPY "%~pdn1.VPRJ" %~d1\
ECHO .
ECHO Cutting file, using VideoRedo
ECHO .
cscript //nologo "C:\Program Files\VideoReDoPlus\vp.vbs" "%~pdn1.VPRJ" "%~d1\%~nx1" %EXT% /d
ECHO .
SLEEP 1
DEL "%~d1\%~n1.VPRJ"
IF EXIST "%~pdn1.VPRJ" DEL /F "%~pdn1.VPRJ"
::
:TRYTOMOVE2
IF EXIST "%~pdnx1" ATTRIB -R "%~pdnx1"
MOVE /Y "%~d1\%~nx1" "%~pdnx1"
IF EXIST "%~d1\%~nx1" GOTO CANNOTMOVE2
GOTO MOVED2
:CANNOTMOVE2
ECHO Cannot overwrite "%~pdnx1", so waiting for 10 minutes to try again...
SLEEP 600
GOTO TRYTOMOVE2
:MOVED2
IF EXIST "%~pdnx1.chapters.xml" ATTRIB -R "%~pdnx1.chapters.xml"
IF EXIST "%~pdnx1.chapters.xml" DEL /F "%~pdnx1.chapters.xml"
ECHO .
::
:ENDCUT
IF EXIST "%~pdn1.chp" DEL /F "%~pdn1.chp"
::
::
|
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
Do you own VideoRedo?
Is it installed in the default location? *EDIT* Do you have Comskip configured with my comskip.ini settings in the first post? In particular, do you have "output_btv=1" in your comskip.ini?
__________________
Step by Step: Video Fixing, Commercial Detection, and Removal Last edited by cmcquistion; 05-18-2008 at 04:54 PM. |
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
Try trimming your BAT file down to JUST the comskip portion:
Quote:
__________________
Step by Step: Video Fixing, Commercial Detection, and Removal |
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
Here is my Comskip.Ini:
[Code: detect_method=111 validate_silence=1 validate_uniform=1 validate_scenechange=1 verbose=0 max_brightness=60 test_brightness=40 max_avg_brightness=25 max_commercialbreak=600 min_commercialbreak=25 max_commercial_size=125 min_commercial_size=4 min_show_segment_length=125 non_uniformity=500 max_volume=500 min_silence=12 ticker_tape=0 logo_at_bottom=0 punish=0 punish_threshold=1.3 punish_modifier=2 intelligent_brightness=0 logo_percentile=0.92 logo_threshold=0.75 punish_no_logo=1 aggressive_logo_rejection=0 connect_blocks_with_logo=1 logo_filter=0 cut_on_ar_change=1 delete_show_after_last_commercial=0 delete_show_before_or_after_current=0 delete_block_after_commercial=0 remove_before=0 remove_after=0 shrink_logo=5 after_logo=0 padding=0 ms_audio_delay=5 volume_slip=20 skip_b_frames=1 max_repair_size=200 disable_heuristics=4 delete_logo_file=0 output_framearray=0 output_videoredo=1 output_womble=0 output_mls=0 output_cuttermaran=0 output_mpeg2schnitt=0 output_mpgtx=0 output_dvrcut=0 output_zoomplayer_chapter=0 output_zoomplayer_cutlist=0 output_edl=0 output_edlx=0 output_vcf=0 output_bsplayer=0 output_btv=1 output_projectx=0 output_avisynth=0 output_vdr=0 output_demux=0 sage_framenumber_bug=0 sage_minute_bug=0 live_tv=0 live_tv_retries=4 dvrms_live_tv_retries=300 standoff=0 cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\"" mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25 /Z %2 %1" avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n" dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" " windowtitle="Comskip - %s" [/Code] Contents of the trimmed bat file: Code:
@ECHO OFF :: :: :: Comskip script to commercial detection on Videos, using Comskip :: (Last Edited 03-22-07) :: :: SET COMSKIPFOLDER=C:\Comskip :: :: IF EXIST "%~pdn1*log*" DEL "%~pdn1*log*" IF EXIST "%~pdn1*txt" DEL "%~pdn1*txt" IF EXIST "%~pdn1*index.dat" DEL "%~pdn1*index.dat" IF EXIST "%~pdnx1.chapters.xml" DEL "%~pdnx1.chapters.xml" IF EXIST "%~pdn1.chp" DEL "%~pdn1.chp" IF EXIST "%~pdn1.vprj" DEL "%~pdn1.vprj" ECHO . ECHO Running Commercial Detection, using Comskip ECHO . "%COMSKIPFOLDER%\comskip.exe" "%~pdnx1" :: :: clean up log and txt files IF EXIST "%~pdn1*log*" DEL "%~pdn1*log*" IF EXIST "%~pdn1*txt" DEL "%~pdn1*txt" IF EXIST "%~pdn1*index.dat" DEL "%~pdn1*index.dat" :: [Contents] <cutlist> <Region><start comment="0:00:00.03">333667</start><end comment="0:01:00.72">607273333</end></Region> <Region><start comment="0:09:24.06">5640635000</start><end comment="0:13:38.38">8183842333</end></Region> <Region><start comment="0:20:15.38">12153808333</start><end comment="0:22:50.86">13708695000</end></Region> <Region><start comment="0:29:34.33">17743392333</start><end comment="0:33:50.36">20303616667</end></Region> <Region><start comment="0:40:38.86">24388697667</start><end comment="0:43:00.51">25805112667</end></Region> <Region><start comment="0:48:53.16">29331635667</start><end comment="0:53:09.58">31895864000</end></Region> <Region><start comment="0:59:55.52">35955252667</start><end comment="1:00:08.67">36086717333</end></Region> <Region><start comment="1:01:56.41">37164127000</start><end comment="1:01:56.44">37164460667</end></Region> </cutlist> [End contents] |
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
If that file is the mpg.chapters.xml associated with the mpg file, then you should be able to skip commercials from within BTV.
Is that the case? Do you see the commercial markings on that show when you play it back in BTV?
__________________
Step by Step: Video Fixing, Commercial Detection, and Removal |
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
the bar that shows the status or position of where you are in the show is a solid dark blue, if there where commecials those should show up a lighter blue but don't and I still have commercials. I believe that file I gave the contents of that was an xml document is the chapter.mpeg
|
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
I was able to skip commerials before, I'll have to get back to that point, which I can currently do with another show I recorded but then how do I auto delete the commercials
|
|
|||
|
Re: Step by Step: Video fixing, Commercial Detection, and Removal.
Comskip performs the function of creating an mpg.chapters.xml file (for commercial skipping within BTV) and a VPRJ file which is later used for cutting commercials.
It is a good idea, first, to determine if Comskip is operating properly (by creating an mpg.chapters.xml file and a VPRJ file). If it is operating correctly, then start adding other parts to the script, like the CUT.BAT portion, which uses variable matching (*showname*.vprj) to determine what shows should get the commercials cut out. If you don't understand, go back and read the first post.
__________________
Step by Step: Video Fixing, Commercial Detection, and Removal |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fixing DVD Burning plugin step 6 of 9 failure | ky90025 | Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum | 1 | 11-07-2007 09:21 AM |
| Fixing DVD Burning plugin step 6 of 9 failure | ky90025 | Beyond TV and Beyond TV Link | 0 | 10-29-2007 03:10 PM |
| Step by Step understanding | jviola | Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum | 3 | 03-06-2006 12:12 PM |
| Software - step by step | cgrey | Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum | 4 | 10-09-2003 01:46 PM |
| Please...step-by-step to play video on networked PC | wsalopek | Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum | 7 | 10-09-2002 07:54 PM |