SnapStream Forums

Go Back   SnapStream Forums > SnapStream Discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-24-2003, 01:29 PM
IGx89's Avatar
WMP9 Plugin and IGCutter
 
Join Date: Sep 2003
Location: Minnesota, USA
Posts: 278
Send a message via MSN to IGx89
Editing out commercials?

Is there any program designed to losslessly edit out commercials from WMV files? AsfCut can losslessly cut up a WMV file, but it's a pain to have to enter in all the starting and stopping times. If there's no free program to expediate the identifying and editing out of commercials, then I'll probably make my own. I've been doing some research, and it should be relatively easy to make a program to quickly semi-automatically edit out commericals and schedule AsfCut to run during the night.
Reply With Quote
  #2 (permalink)  
Old 09-24-2003, 11:34 PM
Registered User
 
Join Date: Sep 2003
Posts: 196
Hello.

Have you determined for sure that Microsoft Windows Movie Maker cannot do it losslessly? It's a free download.

You might also check out freeware VirtualDub at sourceforge. It can do several formats losslessly, but I don't whether WMV is one of them. I kinda doubt it, but, you might use it as a starting point to writing your own, since it is open source and has a plug-in architecture. At least all the GUI work would already be done for you.

BTW, if you do put something together, be sure to share it. I would be interested, especially if it is lightning fast.
Reply With Quote
  #3 (permalink)  
Old 09-25-2003, 08:22 AM
IGx89's Avatar
WMP9 Plugin and IGCutter
 
Join Date: Sep 2003
Location: Minnesota, USA
Posts: 278
Send a message via MSN to IGx89
If WMM2 can, I haven't found out how yet. VirtualDub is also out of the question: "Some online searching turned up a promising freeware product called VirtualDub (http://virtualdub.sourceforge.net). VirtualDub has some amazing capabilities, but WMV import isn't one of them—thanks to Microsoft" (PCMag).

Also, even if those programs could, they'd still take a while to trim commercials out of videos. My program at a minimum will let one jump forward 60 seconds and back 10 seconds, and press the spacebar when they reach commercials to tell the program to edit them out. Once the user has identified the sections to cut out, it will schedule AsfCut to run either right away or sometime in the night with those values. Though, I'm hoping to be able to get my program to automatically jump to parts where commercials begin (using an algorithm) so the user just has to press "search", "begin trim", "search", "end trim", "search", "begin trim", etc...

I could get this program done in a week if I had the time, but it'll probably take longer because of school and two other ongoing programming projects I have.
Reply With Quote
  #4 (permalink)  
Old 09-25-2003, 11:15 AM
Registered User
 
Join Date: Sep 2003
Posts: 25
If you are looking for an algorithm for detecting scene changes in a mpeg stream, I found this paper discussing two methods.

The other menthod, which is what I think mythTV uses, is looking for "blank" frames and then looking in ~30 second intervals for the end of the commercial block.
Reply With Quote
  #5 (permalink)  
Old 09-25-2003, 11:39 AM
Registered User
 
Join Date: Dec 2002
Posts: 235
i know this probably doesn't help your situation but i found that MPEG2VCR is very good and very fast at editing out commercials in MPEG2 files. Don't know if it does wmv... i don't think so.
Reply With Quote
  #6 (permalink)  
Old 09-25-2003, 12:31 PM
Rich A's Avatar
Registered User
 
Join Date: Aug 2003
Location: About 2 feet in front of the monitor. (otherwise CT)
Posts: 3,711
Quote:
Originally posted by dragin33
i know this probably doesn't help your situation but i found that MPEG2VCR is very good and very fast at editing out commercials in MPEG2 files. Don't know if it does wmv... i don't think so.
Womble is an Mpeg only editor.
__________________
Rich A

BTV Beta Tester. 4.x.x
XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote.
Reply With Quote
  #7 (permalink)  
Old 09-25-2003, 06:48 PM
IGx89's Avatar
WMP9 Plugin and IGCutter
 
Join Date: Sep 2003
Location: Minnesota, USA
Posts: 278
Send a message via MSN to IGx89
To detect commercials, I'm planning on something similar to what Myth uses; I'll calculate the percentage of black in the screen, and look for fades and/or periods of just black. I'm planning on having a number of values to customize though, and I might even allow people to make plugin dlls to add different forms of detecting commercials. I'm not counting on my method to be fool-proof, though; just to substantially lessen the number of times the user has to press "advance forward 60 seconds". My goal is to allow the user to edit out commercials from a 30-minute show in <1 minute of user supervision (the actual cutting of the video will be done automatically at a time set by the user).

I already have my program (a modified DPlay sample program from the WM Format SDK) grabbing bitmaps from WMV files, so any possible roadblocks should be out of the way (except, of course, if Microsoft orders me to stop development of my program, which I think is highly unlikely. But, if that happens, that will be after I've made a working version ).
Reply With Quote
  #8 (permalink)  
Old 09-25-2003, 06:52 PM
IGx89's Avatar
WMP9 Plugin and IGCutter
 
Join Date: Sep 2003
Location: Minnesota, USA
Posts: 278
Send a message via MSN to IGx89
MPEG2VCR also costs; my program will be donation-ware™
Reply With Quote
  #9 (permalink)  
Old 09-25-2003, 06:57 PM
Registered User
 
Join Date: Sep 2003
Posts: 25
Sweet... If you need a tester, I'm available. I'd like to archive some of the things I've recorded, but not until I remove the commercials.
Reply With Quote
  #10 (permalink)  
Old 09-25-2003, 07:17 PM
Rich A's Avatar
Registered User
 
Join Date: Aug 2003
Location: About 2 feet in front of the monitor. (otherwise CT)
Posts: 3,711
I've been at the commercial cutting thing for a few years now. Mostly I work in the Mpeg format. (Using Womble)

Today it is more difficult than ever to automatically find start and stop points when dealing with commerical TV. In order to squeeze every last second of available time for commercial content the networks are cutting them very close. In fact there are some stations that have "no" black or fade to black at all.

IE. Frame number 1999 is the movie and the very next frame (# 2000) is the commercial. Even worse, I have a local station that actually does a "fade/merge" into the movie from a commercial. There is actually a few frames with over-lapping video from both the movie and the commercial. That one really frosts me.

I own a few of those ReplayTV boxes and one of them is the model that had commercial skip. It surprised me how well it works, but it always gets a few frames you don't want, one way or the other and does miss some entirely. Still it's about 90 percent on the good side. Good luck. A WM format frame accurate editor with auto commercial processing would be well received I'm sure.
__________________
Rich A

BTV Beta Tester. 4.x.x
XP-PRO, Dual rack mount chassis. Gigabyte MA770-UD3 Nvidia 9500 video, 4 GB Ram, Athlon 64 x2 5600, 80 GB Op Sys/Program drive. 80 GB temp/swap file drive. 500 gb temp recording drive, 3 x 250 GB show storage drives. Samsung DVD burner. VGA video out to projector. TV-out to A/V whole house distribution. HDHR, PVR350, HVR1600, HVR1250, HVR-950, Harmony Remote.
Reply With Quote
  #11 (permalink)  
Old 09-25-2003, 07:38 PM
Registered User
 
Join Date: Sep 2003
Posts: 196
IGx89,

Your project sounds very interesting. I would love to test it out when you get far enough along.

Soundman
Reply With Quote
  #12 (permalink)  
Old 11-05-2006, 07:42 PM
Registered User
 
Join Date: Oct 2006
Posts: 6
Re: Editing out commercials?

Did anything ever come out of this discussion?
Reply With Quote
  #13 (permalink)  
Old 11-05-2006, 08:12 PM
IGx89's Avatar
WMP9 Plugin and IGCutter
 
Join Date: Sep 2003
Location: Minnesota, USA
Posts: 278
Send a message via MSN to IGx89
Re: Editing out commercials?

IGCutter, but it doesn't do any commercial detection itself: it reads BTV's SmartSkip info (if it exists) and allows you to add/change/remove the cut points and then actually (quickly, without recompression) remove the cut sections from the video file.

It hasn't been updated for a while, but it still does the job and there's even a version floating around that can edit AVI clips.
Reply With Quote
  #14 (permalink)  
Old 11-10-2006, 07:25 PM
Mistergq's Avatar
Registered User
 
Join Date: May 2003
Posts: 724
Re: Editing out commercials?

Have you tried Videoredo? The best commercial detection I've seen is videoredo. I am not sure if it works with WMV and its not donation ware, but its worth the price.
__________________
Media Server: Win XP MCE, MSI K9N SLI Platinum Motherboard, AMD Athlon 64 X2 5400+ 2.8 dual core, 1 GB Ram, 500 GB SATA HD x 3, 250 GB SATA HD, Geforce 8500 GT PCI-E, 2x HD PVR, HD homerun, DVD Dual Layer DVD Writer.

Software: SageTV - I spent $130 to find an integrated solution.

Media Extender: 2 x
To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.


--------
Quote:
Originally Posted by Richard Kuo / Chief Technology Officer
Will SnapStream be integrating Beyond TV and Beyond Media?

The answer to this question is a definite yes!

To view links or images in signatures your post count must be 3 or greater. You currently have 0 posts.
Reply With Quote
  #15 (permalink)  
Old 11-10-2006, 09:06 PM
MickP's Avatar
Registered User
 
Join Date: Dec 2004
Posts: 228
Re: Editing out commercials?

This is kind of being discussed atm here.

Mick.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Editing commercials with a remote erik Beyond TV and Beyond TV Link 1 12-05-2006 10:10 AM
Editing out commercials? OMAC SnapStream Discussion 3 03-13-2005 05:25 PM
Recommended tool for editing out commercials dtaylor Beyond TV and Beyond TV Link 3 06-12-2004 10:10 AM
Editing out commercials Roddy SnapStream Discussion 13 04-08-2004 02:46 PM
Feature: editing video tracks and removing commercials rkulagow Development Discussion 2 01-26-2001 12:50 AM


All times are GMT -6. The time now is 10:19 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0 RC1
©2004-2006 Snapstream Media