SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-26-2011, 06:10 AM
DBGaither DBGaither is offline
Sage User
 
Join Date: May 2009
Location: Fresno, CA
Posts: 39
Transcoding without commercials

Okay,

So there are some shows that my family loves and will watch over and over again. Fortunately, they are in syndication (Everybody Loves Raymond & America's Funniest Video's) so they air often. So a single AFV episode can occupy almost 5.5 gigabytes of space (in HD) and Raymond is over 2 gigs. And I want to keep these shows for multiple viewings but I'd like to be able to transcode them WITHOUT commercials to save space.

I'm running Sage7 in Windows 7.

What tools do I need to accomplish this task?
Is there any special format I should transcode to?
Reply With Quote
  #2  
Old 01-26-2011, 11:45 AM
matt91's Avatar
matt91 matt91 is offline
Sage Icon
 
Join Date: Feb 2005
Location: Washington, DC
Posts: 1,185
In my experience, it's a royal PITA to "snip" out commercials and transcode on a routine basis. I used to do it so that I would automatically have a mobile phone-friendly version each morning of a couple of late night shows.

If memory serves, I'd run comskip to identify the commercials, and then video redo to actually process them (i.e., snip them out.) I'd then transcode them to another format (not sure what exactly I used to do that.) Sage Job Queue coordinated it all.

It worked 50% of the time. The other 50%, some process would hang, or the commercials wouldn't be detected at all, or something.

To be fair, my server is/was on the slow side, so maybe something beefier would handle these tasks better. I'm not sure.

If you are willing to sit down in front of the computer to do all this yourself, you can certainly make it work. I wanted this automatically overnight, however.

Hope some of that was helpful.
Matt
__________________
Server: Ubuntu 16.04 running Sage for Linux v9
Reply With Quote
  #3  
Old 01-26-2011, 01:52 PM
mzup mzup is offline
Sage Advanced User
 
Join Date: Sep 2007
Posts: 169
I run comskip to detect, videoredo to cut, and ffmpeg to condense. I use dirmon to control it and run at night. Works well, but as matt pointed out it's not 100% perfect, but very good. The only thing I started having issues with is it stopped moving the final video to its permanent location. I have to do that manually.
Reply With Quote
  #4  
Old 01-26-2011, 02:03 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,200
I have never done this whole three step processs (Comskip, cut commercials, transcode) in an automated fashion but I do the comskipping and the transcoding on an automated process using SJQ all the time with very few issues. Occasionally I have used VRD to snip out the commercials as well but that is on a manual basis. I don't think it would be very hard to add this step to the whole situation - you just need to have comskip creating vrpj files and then run VRD in batch mode. I keep intending to automate this whole process but have never gotten around to do it. I encourage you to do so and post any scripts that you write to help others.

The way that I would do this is to use SJQ to run Comskip as soon as the show ends. You will need to change the comskip.ini file to output vrpj files which are readable by VideoRedo. You will then run VideoRedo in batch mode and pass it two parameters - the vrpj file and the mpg original recording file. The final step would be to transcode it and I would just use SJQ to call the Sage internal transcoder. I have always used the MPEG-4 Good Quality or MPEG-4 High Quality options but that may depend on your source - I am usually starting with cartoons that don't need to be high quality. Alternatively you could use an external encoder like Handbrake. You mention the shows are in HD - are they from an OTA or QAM tuner? I am guessing that they are given the large size that you mention for the files. If they are from an HD-PVR then it is a little trickier and there is no point in encoding since it is already in a very efficient codec.

So the way that this would work is that you would have one groovy script written that performs the three tasks and SJQ would kick off the script when the recording ends, or you could manually run it on any recordings that you have. You would be able to "steal" the script code that you need from what other folks have done in the past, the only part that you would have to write yourself is the call to VideoRedo.

By the way, here is a thread from a couple of years ago that discusses this issue http://forums.sage.tv/forums/showthread.php?p=368246
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #5  
Old 01-26-2011, 05:59 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,151
I had a version of my VideoEdit plugin about 3/4ths done (SageTV V6.X compatible) it used the Com interface that GKusnick talked about in the indicated thread. It even had a status display that you could watch the progress of VideoRedo do it's work. You could run an AdScan, Quick Stream Fix or an Edit. My problem was I coded myself into a corner and no longer have the time to start over again. I could provide the Java code and STVI I was using to control it over the Com interface if desired. Jacob is also required.
Reply With Quote
  #6  
Old 12-23-2011, 08:46 AM
vguenther vguenther is offline
New Member
 
Join Date: Jul 2011
Location: Montgomery AL
Posts: 2
Send a message via MSN to vguenther
Any chance you are working on videoedit plugin for v7

BobPhoenix.... your videoedit plugin looks like it was awesome! Any chance you are still working on a version for sagetv v7?

Would love to be able to set cutpoints in the sage interface for a videoredo job to not have to rely on automatic comskip cutpoints, etc.

Thanks!
Reply With Quote
  #7  
Old 12-27-2011, 07:53 AM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,151
Quote:
Originally Posted by vguenther View Post
BobPhoenix.... your videoedit plugin looks like it was awesome! Any chance you are still working on a version for sagetv v7?

Would love to be able to set cutpoints in the sage interface for a videoredo job to not have to rely on automatic comskip cutpoints, etc.

Thanks!
Wish I could say that I was but it is on hold until I get some problems around the house and office straightened out so no time line on when or if I will pick it up again. If I do pick it up again it will be as a series of plugins rather than one LARGE one. That is one of the problems I had and how I coded myself into a corner.
Reply With Quote
Reply

Tags
commercial skip, transcode


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

Advanced Search
Display Modes

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
Commercials Silky1 SageTV Software 4 07-18-2006 04:48 PM
Skip commercials? kandieman101 SageTV Software 29 04-27-2006 12:35 PM
Cutting out commercials Jthero General Discussion 21 01-24-2006 01:06 PM
More commercials KJake The SageTV Community 2 08-12-2004 08:22 PM
Commercials TunaBoo SageTV Software 35 05-25-2004 12:43 PM


All times are GMT -6. The time now is 02:29 AM.


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