SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-18-2007, 03:17 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
How To Remove Commercials

Hi.

For those of us who have commercial detection setup and want to just remove the commercias OUT of the mpeg files, preferably from SageTV menus, what's available?

I have ShowAnalyer, DirMon2, all works well. SageTV skips the commercials with comskip. Now, I would like to take those mpeg files and the edl commercial cut points and CUT out the commercials.

Anything available that can be done inside SageTV via custom stuff?
Reply With Quote
  #2  
Old 03-18-2007, 03:39 PM
oddjob's Avatar
oddjob oddjob is offline
Sage Advanced User
 
Join Date: Aug 2004
Location: Chicago, IL
Posts: 184
Here's one option:

http://www.videoredo.com/

It has a nice batch feature
Reply With Quote
  #3  
Old 03-18-2007, 03:41 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
See my reply to your other post
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #4  
Old 03-18-2007, 07:22 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Thanks Guys.
Reply With Quote
  #5  
Old 03-20-2007, 01:08 PM
LJSSageUser LJSSageUser is offline
Sage Advanced User
 
Join Date: Aug 2005
Posts: 80
Quote:
Originally Posted by joe123 View Post
Hi.

For those of us who have commercial detection setup and want to just remove the commercias OUT of the mpeg files, preferably from SageTV menus, what's available?

I have ShowAnalyer, DirMon2, all works well. SageTV skips the commercials with comskip. Now, I would like to take those mpeg files and the edl commercial cut points and CUT out the commercials.

Anything available that can be done inside SageTV via custom stuff?
Comskip also has an application called Comclean that can run in batch mode and clips the commercials. It may be able to read the *.txt or *.edl files generated by ShowAnalyzer.
Reply With Quote
  #6  
Old 03-20-2007, 10:07 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by LJSSageUser View Post
Comskip also has an application called Comclean that can run in batch mode and clips the commercials. It may be able to read the *.txt or *.edl files generated by ShowAnalyzer.
I tried comclean. It creates the new mpeg file, but neither Sage nor Windows Media is able to play it.

The comclean scripts calls mpgtx.exe which gives an error of "warning: couldn't find any valid system header. I'm continuinng anyway."

Can this be the cause why the new mpeg files wont play? What's the fix?
Reply With Quote
  #7  
Old 03-22-2007, 01:43 PM
LJSSageUser LJSSageUser is offline
Sage Advanced User
 
Join Date: Aug 2005
Posts: 80
Quote:
Originally Posted by joe123 View Post
I tried comclean. It creates the new mpeg file, but neither Sage nor Windows Media is able to play it.

The comclean scripts calls mpgtx.exe which gives an error of "warning: couldn't find any valid system header. I'm continuinng anyway."

Can this be the cause why the new mpeg files wont play? What's the fix?
I don't use Comclean, but here's a quote from the GBPVR Wiki. You may have to use some more complex cutting procedure to get a usable file based on the error possibility (mpgtx has multiple processes that can be used):

"You MUST check the framerate in the Comclean.bat file The default is set to PAL

set framerate=2500

Set to 2997 for NTSC

Usage

The only parameter to Comclean is the name of the .mpg file to clean. Comclean reads the .txt file with the same path and basename to know where to cut. The text file was generated by ComSkip. When Comclean runs it copies the original .mpg file to _original.mpg and it creates a file without the commercials with the original name so when something fails you always can go back to the original file. Cutting is done on Group Of Picture (GOP) boundaries and no updating of the DTS/PTS is done. This may cause some mpeg players to crash. A typical GOP size is 7 to 15 frames so the cutting may be up to a second wrong. The advantage of this approach is the high processing speed.

If Comclean does something you do not understand you always can run it from the command line or change the line in PostProcessing.bat into

call Comclean %1 >>Comclean.log 2>>Comclean.err "
Reply With Quote
  #8  
Old 03-23-2007, 02:07 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Why not produce an a compressed xvid at the same time and use my batch file?
__________________
http://www.hydranterouge.com
Reply With Quote
  #9  
Old 03-25-2007, 11:40 PM
joe123 joe123 is offline
Sage Fanatic
 
Join Date: Jan 2006
Posts: 954
Quote:
Originally Posted by roxy99 View Post
Why not produce an a compressed xvid at the same time and use my batch file?
You have a great setup and I would love to use it, but due to disk space, I cannot run it on my C: drive. If I put all the program in say D:, will your scripts work in D:?
Reply With Quote
  #10  
Old 03-26-2007, 11:17 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by joe123 View Post
You have a great setup and I would love to use it, but due to disk space, I cannot run it on my C: drive. If I put all the program in say D:, will your scripts work in D:?

The batch is meant to be configured so that your source (mpeg) folder is on your video recording directory. Drive C:\Project contains the batch file and Virtualdub, comskip, etc. Very little space consumed.

At the top of HQConver2Pass.bat you will see (open with notepad)

Code:
Set CUTDIR=c:\Project\Converted
set CAPDIR=c:\Project\misc
set VDir=c:\VirtualDub
SET WORKDIR=c:\PROJECT
set SDIR=c:\Project\source
The source directory is defined by the batch file as C:\Project\source but this should be changed to whatever you want it to be. So suppose drive D: has a folder called d:\recordings. Then drive the variable for SDir at the beginning of the batch file should be set SDIR=D:\recordings. (PS- actually you should create on D:\ a special folder- and move only mpg that you want to process and only a few at a time. The batch file hijacks your cpu to the point that it should be run when no scheduled recordings are to take place)

CutDir can be defined as any directory on D: where you want to put your converted and commercial cut videos.

Finally Capdir is a temporary directory and should be on the same har drive as where SDir and CutDir are.

In fact I don't recommend anyone using their drive C: for SDir, Curdir and Capdir. The defaul batch file is that way only because I can't anticipate everyone'd drive setup.

Hope that helps.
__________________
http://www.hydranterouge.com

Last edited by roxy99; 03-26-2007 at 11:20 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing commercials from recorded shows. Jackal General Discussion 6 11-19-2006 06:58 PM
Anyway to update or remove a show from the DB? jbuszkie SageTV Studio 1 07-30-2006 01:45 AM
Commercials Silky1 SageTV Software 4 07-18-2006 04:48 PM
Remove padding on back to back recordings on a per favorite basis? Deadbolt SageTV Software 1 04-01-2006 05:28 PM
Commercials Free on SageTV 4 joe123 SageTV Customizations 10 01-10-2006 09:02 PM


All times are GMT -6. The time now is 03:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.