SnapStream Forums

Go Back   SnapStream Forums > SnapStream Product Discussions > Beyond TV and Beyond TV Link
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #151 (permalink)  
Old 05-18-2008, 02:23 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
Re: Step by Step: Video fixing, Commercial Detection, and Removal.

Quote:
Originally Posted by Deuce911 View Post
You do know you need to buy VideoRedo to use the QuickStreamFix feature in the bat file?

Mike
I need to go back to school I guess... When I read the OP I thaugh videoredo was part of comskip.. well I might need to comment that section out and see if that solves my problem(I've written bats before that will just exit on error. I can't figure out what exactly does the QSF do to the file, I couldn't figure out what it does by reading the code?
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
Reply With Quote
  #152 (permalink)  
Old 05-18-2008, 02:59 PM
Registered User
 
Join Date: Feb 2004
Posts: 1,330
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.
Reply With Quote
  #153 (permalink)  
Old 05-18-2008, 04:18 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
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"
::
::
when I drage and drop mpeg to the file, it goes though the mothions but when i play back the file I still have commercials
Reply With Quote
  #154 (permalink)  
Old 05-18-2008, 04:46 PM
Registered User
 
Join Date: Feb 2004
Posts: 1,330
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?

Last edited by cmcquistion; 05-18-2008 at 04:54 PM.
Reply With Quote
  #155 (permalink)  
Old 05-18-2008, 04:51 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
Re: Step by Step: Video fixing, Commercial Detection, and Removal.

yes own , and yes default location install
Reply With Quote
  #156 (permalink)  
Old 05-18-2008, 05:06 PM
Registered User
 
Join Date: Feb 2004
Posts: 1,330
Re: Step by Step: Video fixing, Commercial Detection, and Removal.

Try trimming your BAT file down to JUST the comskip portion:

Quote:
@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"
::
::
Now drag and drop an MPG file on that BAT file and see if it creates an accompanying .mpg.chapters.xml file. If you have "output_btv=1" in your comskip.ini, then it should output an mpg.chapters.xml file.
Reply With Quote
  #157 (permalink)  
Old 05-18-2008, 05:19 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
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 of "Haunting(the wheatsheafshouse05-14-2008.Mpeg" xml document
[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]
Reply With Quote
  #158 (permalink)  
Old 05-18-2008, 05:34 PM
Registered User
 
Join Date: Feb 2004
Posts: 1,330
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?
Reply With Quote
  #159 (permalink)  
Old 05-18-2008, 05:40 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
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
Reply With Quote
  #160 (permalink)  
Old 05-18-2008, 05:48 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
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
Reply With Quote
  #161 (permalink)  
Old 05-18-2008, 05:54 PM
Registered User
 
Join Date: Feb 2004
Posts: 1,330
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.
Reply With Quote
  #162 (permalink)  
Old 05-18-2008, 05:59 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
Re: Step by Step: Video fixing, Commercial Detection, and Removal.

ok, I should have somthing for you in an hour or 2, Thanks
btw-I sent you a PM
Reply With Quote
  #163 (permalink)  
Old 05-18-2008, 06:54 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
Re: Step by Step: Video fixing, Commercial Detection, and Removal.

does videoredo need to be videoredoplue or will video redosuite do the same?
I noticed and changed videoredoplus to videoredosuite in the script.
Reply With Quote
  #164 (permalink)  
Old 05-18-2008, 06:57 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
Re: Step by Step: Video fixing, Commercial Detection, and Removal.

oh, I got the answer Suite has a few more featurs, I hope(and am probably safe in guessing the files needed inside the dir are the same)
Reply With Quote
  #165 (permalink)  
Old 05-18-2008, 07:01 PM
Registered User
 
Join Date: Apr 2008
Posts: 57
Re: Step by Step: Video fixing, Commercial Detection, and Removal.

do you know how to get rid of the videoredo output GUI, that pops up after echo quickstream fix will now be running?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -6. The time now is 12:30 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 RC1
©2004-2009 Snapstream Media
You Rated this Thread: