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 11-15-2005, 06:11 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Arrow STV Import: Automatic Aspect Ratio Switcher for SageTV 4

Often you have video sources that use a variety of aspect ratios:
  • 4x3 shows
  • 16x9 shows letterboxed (with top/bottom black bars)
  • 16x9 anamorphic shows (vertically stretched with no black bars) labelled as 4x3 (usually encoded from a STB)
  • 16x9 anamorphic shows labelled with a 16x9 AR (usually DVD's, or Digital TV captures)
  • 4x3 non-square pixel AVIs (eg 720x480)
  • 16x9 non-square pixel AVIs (eg 720x480)
In Sage this often means switching aspect ratio depending on which channel/source the show was recorded from, with each aspect ratio set up to resize the video to the correct proportions.

This plugin allows these Aspect Ratio settings to be stored per:
  • show title
  • channel
  • capture device
or any combination of these, so that when the show is played back, the aspect ratio is switched automatically

See the Wiki for more information and download/installation instructions

Also see Wiki Page on Aspect Ratios.




History
v 1.2 - 15/Nov/2005 for SageTV 4
* (Java update only) Fixed bug where title-only Auto AR modes were not matched

v 1.1 - 15/Nov/2005 for SageTV 4
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki

Last edited by nielm; 11-15-2005 at 03:12 PM.
Reply With Quote
  #2  
Old 11-15-2005, 07:26 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
This currently does not handle imported videos very well -- there are 2 settings, one for DVDs (default 'source' which assumes the dvd decoder sets the correct AR on playback), and one for AVI's (default 'source' which assumes the AVIs have 'square' pixels...)

Any suggestions on how to handle imported videos?
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #3  
Old 11-15-2005, 07:36 AM
AMCooper63 AMCooper63 is offline
Sage User
 
Join Date: Aug 2004
Location: CA
Posts: 62
What I really want is a Zoom feature in Sage

I'm not a programmer so I have no idea how difficult this would be. But I'll explain my situation. I just bought a new 16x9 DLP TV. Sage works great and records all these 4x3 broadcasts. Often these 4x3 broadcasts are of 16x9 content. In the end I get a black frame left and right because of the 4x3 broadcast and then I get black fram top and bottom because of the 16x9 content. If I weren't watching Save via the PC or HDMI input, (Tuner, S-video, or composite) I'd be able to use the zoom control on my TV. But it won't Zoom either PC nor HDMI.

What I really want is something that will crop the original video top and bottom and then display it in the 16x9 format. I also need this for making DVDs from the content. Anyone think it's possible?
Reply With Quote
  #4  
Old 11-15-2005, 08:04 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
You will have to figure out how to tell the TV that it is a 16x9 source so that the Sage UI fills the screen... (on my TV this is separate to the Zoom controls), and the use the sage aspect ratios to resize 4x3 and 16x9 videos to fit.
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #5  
Old 11-15-2005, 08:56 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by nielm
Any suggestions on how to handle imported videos?
We could look for an AR flag stored in the database

I just need to know how we want to do that.
Reply With Quote
  #6  
Old 11-15-2005, 10:28 AM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Quote:
Originally Posted by AMCooper63
I'm not a programmer so I have no idea how difficult this would be. But I'll explain my situation. I just bought a new 16x9 DLP TV. Sage works great and records all these 4x3 broadcasts. Often these 4x3 broadcasts are of 16x9 content. In the end I get a black frame left and right because of the 4x3 broadcast and then I get black fram top and bottom because of the 16x9 content. If I weren't watching Save via the PC or HDMI input, (Tuner, S-video, or composite) I'd be able to use the zoom control on my TV. But it won't Zoom either PC nor HDMI.

What I really want is something that will crop the original video top and bottom and then display it in the 16x9 format. I also need this for making DVDs from the content. Anyone think it's possible?
Here's is how I handle that on my 16x9 DLP. (Without this import. I'm d/l it to try tonight) For these shows, I set the aspect ratio to 16x9 which by default stretches the video to fill the width but leaves the top and bottom black bars but in Sage's detailed setup I have the vertical zoom set to ~133% which also stretches the video vertically so that the top and bottom black bars are pushed off the screen leaving 16x9 video perfectly filling my 16x9 screen. I had to play with the vertical zoom % a little bit to find the correct amount but once I got it it works for all 16x9 shows of this kind.

Right now I have 2 buttons on my remote programmed for A/R. One for source and one for the vertically stretched 16x9. I don't use any other of Sage's aspect ratio's since there is no need. Source works for all 4x3 SDTV shows as well as DVD's. 4X3 shows are 4X3 with black bars on the sides (I don't like the fill option which stretches them horizontally making everything look short and fat), the A/R on DVD's are handled automatically by Sage's DVD player and the nVidia decoder. 4X3 DVD'd are 4X3, 16X9 DVD's are correctly zoomed to fill the screen, and 2.35 DVD's are correctly zoomed with just a bit of letterboxing.


Nielm, looking forward to seeing this in action since my woman refuses to use the 2 buttons I programmed. If I last watched a 16X9 show and one of her 4X3 shows comes on she just leaves it with the top and bottom stretched off the screen. If Sage is in 4X3 and a 16X9 show comes on she just watches it with the black bars all the way around and wasting a large percentage of the expensive screen real estate. I don't have any HDTV tuners yet but I assume those will need to use source as well.
Reply With Quote
  #7  
Old 11-15-2005, 10:45 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by sleonard
Nielm, looking forward to seeing this in action since my woman refuses to use the 2 buttons I programmed. If I last watched a 16X9 show and one of her 4X3 shows comes on she just leaves it with the top and bottom stretched off the screen. If Sage is in 4X3 and a 16X9 show comes on she just watches it with the black bars all the way around and wasting a large percentage of the expensive screen real estate. I don't have any HDTV tuners yet but I assume those will need to use source as well.
Sounds very very familiar and is the entire reason for this plugin's existance!
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #8  
Old 11-15-2005, 11:38 AM
malore's Avatar
malore malore is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Iowa
Posts: 877
Cool, now if only I had a new TV to use this on.
Reply With Quote
  #9  
Old 11-15-2005, 01:36 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Awsome plugin Neilm. I can't wait to try it out tonight.
__________________
Mike Janer
SageTV HD300 Extender X2
Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5
Reply With Quote
  #10  
Old 11-15-2005, 03:16 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
v 1.2 - 15/Nov/2005 for SageTV 4

v 1.2 - 15/Nov/2005 for SageTV 4
* (Java update only) Fixed a bug where title-only Auto AR modes were not matched

As this is a java update, if it is already installed, you only need to unzip it into the SageTV dir and restart Sage, no re-importing necessary...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki

Last edited by nielm; 11-15-2005 at 03:19 PM.
Reply With Quote
  #11  
Old 11-15-2005, 04:23 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by stanger89
We could look for an AR flag stored in the database

I just need to know how we want to do that.
Any thoughts neilm?
Reply With Quote
  #12  
Old 11-15-2005, 05:14 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by stanger89
We could look for an AR flag stored in the database

I just need to know how we want to do that.
What AR flag in the database? And where would it get it's value from?
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #13  
Old 11-15-2005, 05:37 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by nielm
What AR flag in the database? And where would it get it's value from?
We could add one (not sure where though, that's the question), from DVD Profiler/IMDB, possibly from SA (with Jere's help).
Reply With Quote
  #14  
Old 11-15-2005, 06:37 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Neilm,

I am trying to d/l the updated java file but get this message:

Forbidden
You don't have permission to access /~nielm/nielm_modules/autoaspect/autoaspect_1_2.zip on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.33 Server at www.sage-community.org Port 80
Reply With Quote
  #15  
Old 11-15-2005, 09:02 PM
AMCooper63 AMCooper63 is offline
Sage User
 
Join Date: Aug 2004
Location: CA
Posts: 62
The problem isn't the Sage interface. I have my computer running at 1280x720 which is perfect for my 720p DLP TV. I don't distort any of my play back aspect ratios. I always use source for my aspect ratio. All analog video plays back in the center of the screen at about 960x720. Frequently the content on the station is actually in 16x9, which would make it 960x540. I am quite willing to select on a per view basis "Zoom" which would make my video effectively stretch to 1280x960. The 960 of course won't fit on the screen, so the top and bottom 120 pixels would get cut off.

As for the one suggestion of the 133% vertical stretch, what do you do about your user interface? I've gone that route, but my interface stretches off the screen. But you may have something there. If I had a menu option to toggle stretch 133% both vertical and horizontal that would solve my problem. Then hit the toggle again to reset back to 100% . Can the Studio do this some how?
Reply With Quote
  #16  
Old 11-15-2005, 09:13 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by AMCooper63
As for the one suggestion of the 133% vertical stretch, what do you do about your user interface?
Nothing horizontal and vertical zoom have no effect on the UI.
Reply With Quote
  #17  
Old 11-15-2005, 09:41 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Quote:
Originally Posted by AMCooper63
The problem isn't the Sage interface. I have my computer running at 1280x720 which is perfect for my 720p DLP TV. I don't distort any of my play back aspect ratios. I always use source for my aspect ratio. All analog video plays back in the center of the screen at about 960x720. Frequently the content on the station is actually in 16x9, which would make it 960x540. I am quite willing to select on a per view basis "Zoom" which would make my video effectively stretch to 1280x960. The 960 of course won't fit on the screen, so the top and bottom 120 pixels would get cut off.

As for the one suggestion of the 133% vertical stretch, what do you do about your user interface? I've gone that route, but my interface stretches off the screen. But you may have something there. If I had a menu option to toggle stretch 133% both vertical and horizontal that would solve my problem. Then hit the toggle again to reset back to 100% . Can the Studio do this some how?
As Stranger said the stretch has no effect on the UI. Go to Detailed Setup / Multimedia and choose the 16X9 Aspect ratio. Then go one setting down to Aspect Ratio Settings and click Modify. Change the Vertical Stretch to ~130 to 133 % and leave the Horizontal Stretch alone.

Now, when you choose the 16X9 AR in Sage SDTV shows that are in a 16X9 format will expand to fit your screen correctly. You may need to play slightly with those settings a bit. I found that 130% Vertical and 102% Horizontal work perfect for my Sammy DLP.

As to my last post about the updated java file for this import. Is anyone else having a problem d/l it?
Reply With Quote
  #18  
Old 11-15-2005, 09:47 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
Also, I run my computer at 1280X720 to my 720p DLP. It sounds like you might be confusing the overscan settings that do affect the UI with the AR settings that I described in the above post.
Reply With Quote
  #19  
Old 11-16-2005, 01:09 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by sleonard
I am trying to d/l the updated java file but get this message:

Forbidden
You don't have permission to access /~nielm/nielm_modules/autoaspect/autoaspect_1_2.zip on this server.
Sorry -- forgot to make it readable! Fixed now..
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #20  
Old 11-16-2005, 01:13 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Quote:
Originally Posted by AMCooper63
If I had a menu option to toggle stretch 133% both vertical and horizontal that would solve my problem. Then hit the toggle again to reset back to 100% . Can the Studio do this some how?
This is what Sage's Aspect ratios are for! See the linked page on the wiki about AspectRatios for a more detailed explanation...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
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:49 PM.


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