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 Rate Thread Display Modes
  #1 (permalink)  
Old 04-29-2006, 10:14 PM
Registered User
 
Join Date: Apr 2006
Posts: 22
Woo, got a compleatly invisible cutting / encoding program going

After neglecting my business for a week and a lot of experimenting, I've managed to come up with a completely invisible commercial detect / cut / encode program.

Basically the way it works is I wrote a EXE that is completely invisible in windows, so it can't steal focus or anything. The exe takes one property (the file name) which is passed from BTV through the CustomPostProcessing.xml file.

The EXE then starts up completely invisible, and launches a batch file that is also invisible.

The batch file then runs comskip to detect the commercials, then mencoder to cut them out. Both are command line programs so nothing launches beyond the window (and the processes can be set to low priority.)

(Mencoder theoretically could be used to recodes in XVID but I haven't experimented with that yet)

Then it cleans itself up, the batch file ends, the exe detects that the batch file is done with, and closes itself.

When the exe closes, BTV realizes it and ends the process and moves into the next thing in the queue. Which if you've configured it is ShowSqueeze.

So you get it all cut before BTV decides to encode, and the big plus is that your final files includes the file name, length, channel, time, etc.

I'm not sure if anyone would be interested in using this little setup, its right now hard coded to my setup, but if anyone wants to use it I could expand the program somewhat. Let me know.
Reply With Quote
  #2 (permalink)  
Old 04-30-2006, 09:47 AM
Registered User
 
Join Date: Nov 2003
Location: North Liberty, Iowa
Posts: 3,133
Re: Woo, got a compleatly invisible cutting / encoding program going

I'd love to try it. I want to cut without ShowSqueeze.

Tom
Reply With Quote
  #3 (permalink)  
Old 04-30-2006, 12:21 PM
Registered User
 
Join Date: Feb 2006
Posts: 5
Re: Woo, got a compleatly invisible cutting / encoding program going

What file formats will this work with?
Reply With Quote
  #4 (permalink)  
Old 04-30-2006, 01:57 PM
Xiadix's Avatar
Registered User
 
Join Date: Feb 2004
Location: Dallas, TX
Posts: 317
Re: Woo, got a compleatly invisible cutting / encoding program going

Please make it available to use.!!!.


KevG
__________________
.--. .... . -. --- -- . -. --- -.
Dell DIMENSION 9200: Pen D 2.8, 3 Gig RAM, WinXP SP3, SPDIF Audio, Nvidia 8400, WinTV 2250, HVR-1600, PVR 250, 1 TB RAID 5
4x Analog Cable -or- 2x QAM Cable -or- 1x OTA HD -and - 1x Cable Box capture

Threads that helped me:

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


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


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


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

-Now using mencoder to cut commercials
Reply With Quote
  #5 (permalink)  
Old 04-30-2006, 03:52 PM
Registered User
 
Join Date: Apr 2006
Posts: 22
Re: Woo, got a compleatly invisible cutting / encoding program going

Kali, the program that I wrote, will work with any file format, all it really does is take a file name and then pass it on to a batch file which it starts invisibly.

The batch file then can be used to call any programs you want them too,

I use comskip and mencoder to do the work. So it is limited to the formats that those two are compatible with. However you theoretically could call any program that you wanted too, though if you call non command line programs you loose the whole benefit invisibility.

Since there is some interest, I'll knock up a installer and add a .ini file for a couple things, and put something out in the next day or two.
Reply With Quote
  #6 (permalink)  
Old 05-01-2006, 08:50 AM
Registered User
 
Join Date: May 2006
Posts: 2
Re: Woo, got a compleatly invisible cutting / encoding program going

What language is the EXE written in?
Reply With Quote
  #7 (permalink)  
Old 05-01-2006, 02:43 PM
Registered User
 
Join Date: Apr 2006
Posts: 62
Re: Woo, got a compleatly invisible cutting / encoding program going

The lastest comskip release contains hiderun.exe

HideRun.exe can be used to run any program or batch file without showing the console window.
Usage: HideRun "path to batch file or console application" "parameters for the program"
Hiderun requires .net to be installed

This is the source

Code:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Windows.Forms;

namespace HideRun
{
	static class Hiderun
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main(string [] args)
		{

 //		   if (args.Length < 2) return;

			// Create the process with the desired arguments.
			Process comskipProcess = new Process();
			comskipProcess.StartInfo.FileName = args[0];
			comskipProcess.StartInfo.Arguments = "\"" + args[1] + "\"";
			comskipProcess.StartInfo.CreateNoWindow = false;
			comskipProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;

			// Start the process and wait for it to exit.
			comskipProcess.Start();
			comskipProcess.WaitForExit();
		}
	}
}

Last edited by erik; 05-01-2006 at 02:45 PM.
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
SPDIF cutting out cfaslave Home Theater PC Discussion 21 10-21-2007 12:59 PM
Program that will burn mpeg(dvd ready) files without re-encoding? sandy Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 5 09-08-2007 06:00 PM
cutting out commercials without re-encoding robm42 SnapStream Discussion 1 12-04-2003 09:56 PM
Cutting Out Ads Bullfrog184 SnapStream Discussion 4 10-30-2003 03:40 AM
Invisible shows in v1.1a Russ Spooner Beyond TV and Beyond TV Link User-to-User Troubleshooting & Support Forum 12 03-13-2001 08:37 PM


All times are GMT -6. The time now is 08:07 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
You Rated this Thread: