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 12-01-2006, 11:55 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Comskip XviD batch using 2 pass **NEW SMART-CROP**

FEATURES
  • PMP player friendly low bitrate of 800 for very compact files with good video quality on even 46inch screen
  • HQ Version for 1200 bitrate. Indistinguishable from Mpg source quality
  • Actual commercial REMOVAL rather than skip for even smaller size file( using famous Comskip)
  • MP3 conversion using Lame 3.96 encoder
  • Correction of audio drift and audio Synch using BESWEET, Delaycut, AVI2WAV (see enclosed readme files)


I'd like to thank the author of Comskip, Erik, without whom this would have been impossible. Also, please take time to visit the individual author's sites of the various utilities to make sure you are running the latest versions. Project.zip inlcudes the latest stable versions as of Dec 3, 2006.

New version 1.6 Choose 1 pass or 2 pass & Smart crop for 4:3 content to fit 16:9 widescreen (April 6, 2007)


INSTALL INSTRUCTIONS
  • Download Avisynth 2.56 and Install
  • Install Xvid codec if not already on your system
  • Create folder 'C:\Besweet' extract Besweet 1.4
  • Create folder 'C:\VirtualDub' extract VirtualDub 1.6.17
  • In root c:\ folder extract Project.zip (Ver 1.0). The zip will create its own directory tree starting with C:\Project (Includes: Lame 3.96, AVI2WAVCMD, ComSkip, Delaycut and Wavmp3 and various avisynth filters)
  • Replace Convert2Pass.bat with updated Ver 1.3 attached here (This is the 512x384 low bitrate version)
  • Attached High quality 640 x 480 batch filebelow Ver 1.4

LAUNCH


Copy one or several *.mpg files in C:\Project\Source making sure NO SPACES or non alphabetic characters (#$%") other than _ ( underscore) appear in filenames

Double click directly from C:\Project (or make desktop shortcut)
  • Processmpg.bat (800 bitrate 512x348 version)
  • HQProcessmpg.bat (for 1200 bitrate 640x480 version)

Now have supper, go to bed, go out, etc. Come back and you will find the
folder C:\Project\converted populated with Xvid Avi without commercials.

========================================
Version History:
Ver 1.0: Initial batch file and all required files uploaded to customizations
Ver 1.1: Revised Convert2Pass.bat - fixed references to CAPDIR variable
Ver 1.2: Latest versions (attached) - fixed Line too long error in Windows 2000 systems. Uses seperate Pass1.vcf and Pass2.vcf files for easier management.
Ver 1.3: MSharpen plugin added.
Ver 1.4: HQ 640x480 only- automatically sets cropping for widescreen format when detect Dominant Aspect ratio 1.9600 by comskip.


Ver 1.5 Smart crop for 4:3 content to fit 16:9 widescreen
Ver 1.6 Choose 1 pass or 2 pass & Smart crop for 4:3 content to fit 16:9 widescreen
Attached Files
File Type: zip Convert2PassVer1_3.zip (13.6 KB, 841 views)
File Type: zip HQConvert2PassVer1_3.zip (13.8 KB, 806 views)
File Type: zip HQConvert2PassVer 1_4.zip (14.0 KB, 726 views)
File Type: zip HQConvert2Pass1.5.zip (14.6 KB, 727 views)
File Type: zip Ver 1.6.zip (16.1 KB, 890 views)

Last edited by roxy99; 04-06-2007 at 05:02 PM. Reason: New version 1.6 Choose 1 pass or 2 pass & Smart crop for 4:3 content to fit 16:9 widescreen
Reply With Quote
  #2  
Old 12-03-2006, 09:16 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
If you are using this above file in conjunction with the 1 pass method, then rename your other project folder for 1 pass to C:\Project1pass

Adjust the variables accordingly:
%CAPDIR%
%WORKDIR%
%CUTDIR%
%SDIR%

Last edited by roxy99; 01-03-2007 at 02:56 PM.
Reply With Quote
  #3  
Old 12-04-2006, 10:52 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Any other good troops out there willing to try this. It really works and SUPER easy to set up now.
Reply With Quote
  #4  
Old 12-04-2006, 11:12 AM
alon24 alon24 is offline
Sage Aficionado
 
Join Date: Jun 2004
Posts: 351
is there a way to changethe file name for the recording?
because i would like to convert and then burn to a dvd to be shown on a Divx capable DVD.
so I need the file names, I think I just need a simple STVI to change the name of the file, from sage.
__________________
Server
SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1
Client
SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1

Using Nielm's Web server 2.22
Reply With Quote
  #5  
Old 12-04-2006, 11:36 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by alon24
is there a way to changethe file name for the recording?
because i would like to convert and then burn to a dvd to be shown on a Divx capable DVD.
so I need the file names, I think I just need a simple STVI to change the name of the file, from sage.

I'm not sure I understand what you want to do. Do you mean to change the mpg file name BEFORE sending it to the batch conversion to XVid? Or do you mean to rename the AVI after conversion?

What do you want to rename it to? Are you saying that the file names are too long for a standalone player capable Xvid file? If that's the case then I can look into making a renaming batch file. Is that what you want?

Try this for simple rename operation: http://graphicssoft.about.com/cs/ren...t/renamexp.htm

Now, download my utility and start testing some XviDs ! : D

Last edited by roxy99; 12-04-2006 at 12:01 PM.
Reply With Quote
  #6  
Old 12-04-2006, 01:40 PM
alon24 alon24 is offline
Sage Aficionado
 
Join Date: Jun 2004
Posts: 351
my interset is to compress the file and then after i get it back in sage (like their compression does) to change the name of the file so I can burn it and give it to my "sage deprived family" - known from here on as SDF.

The SDF like to watch the shows but they do not know the file names that sage outputs, so i need a complementry addition, to change the name of files after the compresion has been done, in the sage UI.

With the current sage implementation I renme each file BEFORE but this is not a good solution,as I am lazy, and when I give the command to compress, its basically beore I go to bed, and I want a short way to rename before I burn.

Its all about WAF (sage is good for that), and SDF - thats wh compression is good.

Hope this helps understand my motivation...
__________________
Server
SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1
Client
SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1

Using Nielm's Web server 2.22
Reply With Quote
  #7  
Old 12-04-2006, 02:12 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
redundant info

Last edited by roxy99; 03-29-2007 at 01:12 PM.
Reply With Quote
  #8  
Old 12-04-2006, 02:38 PM
alon24 alon24 is offline
Sage Aficionado
 
Join Date: Jun 2004
Posts: 351
I am sorry, let me clarify:
1. I have not yet downloaded and tried the method, its quite late right now, and I am saving this for a better time.
I like to do my homework be fore I try new stuff.

2. I record from sage not using the show+episode name, so my files are all in the following format: xx-xxxxx.mpg or sagetv-xxxx.mpg, when I view them in sage I do not care, but when I want to burn them to dvd and give tem to my sister (SDF), I need to burn comprehenable names to disk.

Now I coud go and see in the detail info, which xx-xxx.mpg coressponds to gray's anatomy se2 ep3 or (what I would like to do), is right click the show in sage, have a "Change Filenme" option and change the file name.

I tried doing that before but was unsuccsessful, I know I can make this STVI on my own (STVI so that other may use this method), but with the new house, time is a rare comoditee.

with the current v6 implementation of compression by sage, you can choose to compress a file and give it a new name, and then send it to compress.

Hope this makes it more understandable.
__________________
Server
SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1
Client
SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1

Using Nielm's Web server 2.22
Reply With Quote
  #9  
Old 12-04-2006, 02:44 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
repeat

Last edited by roxy99; 03-29-2007 at 01:12 PM.
Reply With Quote
  #10  
Old 12-06-2006, 08:34 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
I'll be submitting a new version soon with a higher bitrate for less pixelation.
Also, the resolution is dropped a notch from 640x480 to 512x384 to help out.

The next version will encode to 640x480 using a bitrate of at least 1200. Presently the bitrate is 800 only for maximum compression.

If we get enough people using this approach, then maybe someone will write an STVi to automate this process within the Sage interface similar to Sage 6 except customizable compression and commercial removal.

Last edited by roxy99; 12-06-2006 at 11:42 AM.
Reply With Quote
  #11  
Old 12-07-2006, 08:06 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
redundant

Last edited by roxy99; 03-29-2007 at 01:12 PM.
Reply With Quote
  #12  
Old 12-07-2006, 09:38 AM
lobosrul's Avatar
lobosrul lobosrul is offline
Sage Expert
 
Join Date: Aug 2005
Location: Albuquerque, NM
Posts: 573
Reasons why I havent downloaded:

1) Evilpenguins video tool STVi looks promising; doesn't quite work for me now but he's working on it.

2) I'm confused on how to change around encode settings using this method, does it use mencoder? For one I dont want to encode audio to mp3, I want to keep AC3 sound.

Batch processing on the whole is convenient, I was using it with Dr Divx, but I had to put everything thru VideoRedo first to remove commercials.
Reply With Quote
  #13  
Old 12-07-2006, 10:12 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by lobosrul
Reasons why I havent downloaded:

1) Evilpenguins video tool STVi looks promising; doesn't quite work for me now but he's working on it.
Yes it does. I'll have to give that a try also

Quote:
Originally Posted by lobosrul
2) I'm confused on how to change around encode settings using this method, does it use mencoder? For one I dont want to encode audio to mp3, I want to keep AC3 sound..

If you're already recording digital audio, then you're right- you loose the AC3 with this method. Most people receive regular sterio auio so the mp3 is not an issue- especially at 192 CBR that I am using.

It uses Avisynth. You can incorporate different resolutions use other filters, etc. But configuration is not plug-and play. Each change needs batch file changes. However, the quality vs compression you will be impressed I'm sure with the settings I've used.


Quote:
Originally Posted by lobosrul
Batch processing on the whole is convenient, I was using it with Dr Divx, but I had to put everything thru VideoRedo first to remove commercials.
Well with this you have a one step process only.
Reply With Quote
  #14  
Old 12-08-2006, 01:04 PM
Flip Flip is offline
Sage User
 
Join Date: Dec 2006
Posts: 6
roxy99

You're not p&ssing in the wind!

I love what you've put together here! I'm also anxious to see your other realease that will keep 640X480 @ 1200 bitrate. I personally don't mind a little larger file size.
Reply With Quote
  #15  
Old 12-08-2006, 01:29 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by Flip
roxy99

You're not p&ssing in the wind!

I love what you've put together here! I'm also anxious to see your other realease that will keep 640X480 @ 1200 bitrate. I personally don't mind a little larger file size.
You read my mind. I am just testing it now. 640x480 @1200 will be the same video quality as mpg @3000 bitrate. Plus I've used a sharpness filter in my new batch file. I'll upload soon.
Reply With Quote
  #16  
Old 12-10-2006, 10:46 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
ComSkip XVid batch HQ 1200 bitrate

Update
New version:
  • HQ Version attached for 1200 bitrate. Indistinguishable from Mpg source quality

Extract contents of attached zip to the C:\Project folder.

Update- Dec 30, 2006 : Vesion 1.2. Fixed Line too long error in Windows 2000 systems. Extract all contents to c:\project folder.

See first post for attachment.

Last edited by roxy99; 12-30-2006 at 12:42 PM.
Reply With Quote
  #17  
Old 12-10-2006, 11:48 AM
mikesm mikesm is offline
Sage Icon
 
Join Date: Jul 2003
Posts: 1,293
Very nice... Are these settings for SD video or HD video? If the source has more detail you would like to use higher bitrates than for lower res video...

Thanks,
Mike
Reply With Quote
  #18  
Old 12-10-2006, 12:06 PM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
Quote:
Originally Posted by mikesm
Very nice... Are these settings for SD video or HD video? If the source has more detail you would like to use higher bitrates than for lower res video...

Thanks,
Mike
SD. I don't have HD source to test. I can do an HD version if someone provides me a small mpeg HD clip to test on. The bitrate would be much higher then.
Reply With Quote
  #19  
Old 12-10-2006, 04:29 PM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Quote:
Originally Posted by roxy99
If you've decided not to use this, please take 30 seconds to post some comments as to why
My recording PC is way to slow for transcoding
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #20  
Old 12-11-2006, 09:10 AM
roxy99 roxy99 is offline
Sage Expert
 
Join Date: Mar 2006
Posts: 516
I have heard complaints that transcoding is hard on the cpu. Trust me, I know. I use a 4 year old Athlon XP 3200. It is very time consuming.

There is also a 1 pass version at http://forums.sagetv.com/forums/showthread.php?t=21473
The install process is more manual than this simplified install.

You will be happy to know, that the batch file can be easily modified so that it can run on a seperate PC.

You can run the batch file from a laptop or other dedicated PC. Eg: C:\Project\Source & converted directories, can instead point to X:\Source and X:\Converted. Where X: is the capture drive on the Sage server. Hence the Avisynth and Virtualdub script are processing and doing all the hard work remotely from the Sage Server.

What is needed now is a monitoring application like Steeps' comskip monitor. This can be used to monitor for new mpg files to copy and paste into X:\Source. Another monitoring application can run on the remote PC and check for contents in the Source folder and execute the batch file.

I like using the Source folder because it does its work only on a copy of the Mpg. If anything goes wrong, the damage is limited to the X:\Source copy and not the actual captured mpg file.

Last edited by roxy99; 12-11-2006 at 11:33 AM.
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


All times are GMT -6. The time now is 01:04 PM.


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