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 07-08-2009, 03:38 PM
heatvent's Avatar
heatvent heatvent is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Chicagoland
Posts: 258
Can VideoRedo be automated to cut commercials

Ok, assume I have dirmon2 working well to run SA to create vrpj files for all of my tv recordings. I would like to cut the commercials and I understand VideoRedo is the best thing out there for this. Is there a way to automate this process (i.e. have dirmon2 run VR after SA to do the cuts and then cleanup files).

I know there are posts out there but they just seem to talk about how great VR is. Also, FYI, I am running dirmon2 as a service on WHS.

Thanks!
__________________
SageTV 7.0.0.23, P5Q-EM Motherboard, 2.5Ghz Quad Core, Windows 7 x64, HVR-2250, 8GB RAM, 1TB HD, 2 HD-200 Extenders
Reply With Quote
  #2  
Old 07-08-2009, 03:50 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
Why do you want to do that?

The problem if you permanently delete sections of your video file is that if SA screwed up and didn’t properly detect the appropriate points of commercials and VRD gutted the file based on these points you would have a messed up recording… and probably a ticked off wife… SA is good but not perfect. If you leave it as is you still retain the ability to rewind your recording to see a section over if it jumped too soon.

If its for archival reasons that's different...
Reply With Quote
  #3  
Old 07-08-2009, 03:59 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
I recomend dvrms toolbox for automated removal and even conversion
Reply With Quote
  #4  
Old 07-08-2009, 04:12 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
I think EP’s media shrink can do it. Again it’s only as good as the detection. If you use VRD you can use the VPRJ files and see the cut points and manually adjust them if need be. Then it becomes a non-automated process…
Reply With Quote
  #5  
Old 07-08-2009, 04:29 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
VRD has a COM interface and is completely scriptable through Windows Scripting Host. So if you know how to code in VBScript or JScript (or are willing to learn), you can fully automate any VRD task.
__________________
-- Greg
Reply With Quote
  #6  
Old 07-08-2009, 08:58 PM
heatvent's Avatar
heatvent heatvent is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Chicagoland
Posts: 258
Quote:
Originally Posted by wrems View Post
Why do you want to do that?

The problem if you permanently delete sections of your video file is that if SA screwed up and didn’t properly detect the appropriate points of commercials and VRD gutted the file based on these points you would have a messed up recording… and probably a ticked off wife… SA is good but not perfect. If you leave it as is you still retain the ability to rewind your recording to see a section over if it jumped too soon.

If its for archival reasons that's different...
I hear ya, but if I watch with commercial skipping enabled, I will probably just live without the few seconds I missed. Also, it's a real space saver to get rid of the commercials and I'm not sure I want to spend the time getting it perfect. I was probably going to see how it goes and if it gets annoying I will figure something else out.
__________________
SageTV 7.0.0.23, P5Q-EM Motherboard, 2.5Ghz Quad Core, Windows 7 x64, HVR-2250, 8GB RAM, 1TB HD, 2 HD-200 Extenders
Reply With Quote
  #7  
Old 07-08-2009, 10:15 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by heatvent View Post
Ok, assume I have dirmon2 working well to run SA to create vrpj files for all of my tv recordings. I would like to cut the commercials and I understand VideoRedo is the best thing out there for this. Is there a way to automate this process (i.e. have dirmon2 run VR after SA to do the cuts and then cleanup files).

I know there are posts out there but they just seem to talk about how great VR is. Also, FYI, I am running dirmon2 as a service on WHS.

Thanks!
Here is a job I use. You can set dirmon to run if vprj exist and not to run if donecut exist. Also set to run when file is not in use.

cutCommVRD.bat
Code:
set videoredo_path=c:\Program Files\VideoReDoTVSuite\
set priority=low
md %~d1%~p1tmpEncode
START /B /W /MIN /%priority% cscript.exe //nologo "%videoredo_path%vp.vbs" "%~d1%~p1%~n1.vprj" "%~d1%~p1tmpEncode\%~n1.mpg" /t1 /d /q
move /Y "%~d1%~p1tmpEncode\%~n1.mpg" "%~f1"
move /Y "%~d1%~p1%~n1.vprj" "%~d1%~p1%~n1.donecut"
move /Y "%~d1%~p1%~n1.edl" "%~d1%~p1%~n1.edlcut"
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-08-2009 at 10:55 PM.
Reply With Quote
  #8  
Old 07-09-2009, 05:33 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Quote:
Originally Posted by heatvent View Post
I hear ya, but if I watch with commercial skipping enabled, I will probably just live without the few seconds I missed.
You're a better man than me. I would be really *upset* if I missed the last 10 seconds of a season finale or something important like that. Then I may have to buy the episode on Amazon or something to see it. There by negating an disk space saving I had. Not to mention the frustration of finding it, downloading it and watching it on my computer vs my large screen. Now for you, add the time to get all this automated commercial removal running. What was it you were actually saving after all that?

My advice... Get another drive.
Reply With Quote
  #9  
Old 07-09-2009, 06:16 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
I completely agree with kevine. Can you really save that much hard drive space? I haven’t put any official numbers to it but it doesn’t sound like there would be a tremendous gain.

If you grouped the gain from one show (probably a couple of hundred to a few hundred megabytes) and summed it; how many shows would need to be diced to equal the savings of 1 new additional recording? It’s probably more than a 5:1 ratio…

Drives are getting cheaper everyday. Just posted at GeetkTonic was a Hitachi 1TB for $70 and free shipping. That’s like .07 per gigabyte, the possible savings from one recording is only a fraction of that…

Not to dissuade you from your objective, but something to think about.

My .02
Reply With Quote
  #10  
Old 07-09-2009, 11:05 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by wrems View Post
My .02
300MB?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #11  
Old 07-09-2009, 11:33 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
I cut commercials all the time then re-encode to mp4 archive etc... Never had a problem with SA cutting the end ... because you can simply tell it not to.

I use Videoredo to run a Quickfix on the mpg prior to running SA to get rid of any errors etc.. then run SA and have not had a problem.... then use videoredo to remove commercials.

To answer the original question yes Videoredo does a great job of cutting commercials and yes it can be automated.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #12  
Old 07-09-2009, 11:44 AM
heatvent's Avatar
heatvent heatvent is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Chicagoland
Posts: 258
Not sure if I understand the previous post but you could save 30+% from a drive space perspective (most half hour shows only have 20 minutes of show and 10 minutes of commercials). It's not necessarily a space issue right now but will be as my collection grows. So why spend another $70 bucks on a drive, time putting it in, formatting it, as well as the additional electricity cost, etc. just to save a bunch of commercials that I plan to just skip over anyway. So to answer your question of how much it will cost, about $70 for the extra drive + electricity forever. If you ask me $1 is too much and I would rather use what I have more efficiently.

As far as the season finale goes, I don't watch a lot of series religiously and would probably be watching the episode live if it was that important. Also, in the end, it's only a TV show and hopefully I wouldn't kill myself or go crazy over 10 seconds of a TV series.

Finally, I would think there could be different buckets for shows. Stuff that you just like to watch (my wife and I still like to watch Friends) that could be automatically edited, and more important stuff (maybe a baseball game I want to watch) that could be excluded and preserved and/or manually edited.
__________________
SageTV 7.0.0.23, P5Q-EM Motherboard, 2.5Ghz Quad Core, Windows 7 x64, HVR-2250, 8GB RAM, 1TB HD, 2 HD-200 Extenders
Reply With Quote
  #13  
Old 07-11-2009, 06:19 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by PLUCKYHD View Post
I recomend dvrms toolbox for automated removal and even conversion
DTB supports the kind of metadata based decisions (like only do X action where the genre contains "kids"). I use this feature to convert the HD ATSC shows recorded on PBS (all kids shows) to h.264/ac3 (just copies the audio stream). The resulting file is about half the size.

And the next rev will support cc extraction either as an external SRT file, or if you use MKV as the target container it can mux the SRT into the file.
__________________
babgvant.com | @babgvant | Missing Remote
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
Automated VideoRedo (DOS batch files) grauchy SageTV Customizations 3 09-08-2011 10:01 PM
Beyond TV -> SageTV: Why not automated? vogelap The SageTV Community 2 04-04-2009 03:31 PM
commercials: detect, cut, transcode, move tchapin SageTV Customizations 1 05-31-2008 08:03 PM
VideoRedo in Batch Mode to Remove Commercials joe123 SageTV Customizations 3 03-21-2007 05:55 AM


All times are GMT -6. The time now is 02:27 PM.


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