Log in

View Full Version : Plugin in Development - Interactive Trimmer


Flight16
22nd June 2009, 12:39
Problem: I want to trim commercials from TV captures, but I don't want to: 1) trim before I watch (to avoid spoilers), 2) spend time searching for the commercials by hand and trimming.

Solution: As you're watching the .avs movie, mark the trim points. Later, add these to the .avs.

Problem: Neither avidemux nor Virtualdub have full screen mode for video viewing. Apart from quicktime on mac, you can't get frame-accurate index positions from a video.

Solution: Write a new avisynth plugin that will open a dialog window that will allow you to mark trim segments as you're viewing the movie in any media player (that plays .avs and has frame stepping... like smplayer). Then, when you reach the end of the movie, you will 1) have watched the entire movie, 2) have a handy trim set you can copy and paste in the .avs if you want to encode the movie.

The bulk of the plugin is written. The code that writes the trims to a file or windows clipboard is all that remains.

Feedback welcome.

(yes, I tried comskip, but it takes ages to configure, and doesn't always work on my sources)

Zarxrax
29th June 2009, 01:05
Hmm... couldn't you just jot down the times at which the commercials occur when you initially watch?