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
  #1121  
Old 03-14-2008, 03:00 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
Quote:
Originally Posted by evilpenguin View Post
Out of curiousity, what would it do for letter boxed SDTV in a 16:9 HDTV stream (I saw this yesterday on Sci-Fi HD and I died a little on the inside )?
In theory it would zoom in so that the black bars on all sides were minimized and the 16:9 show filled the screen. It would be most excellent!

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #1122  
Old 03-14-2008, 04:00 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
Quote:
Originally Posted by Jere_Jones View Post
In theory it would zoom in so that the black bars on all sides were minimized and the 16:9 show filled the screen. It would be most excellent!

Jere
I was more wondering what aspect SA would report for that case? Its a bit of a wierd one

Last edited by evilpenguin; 03-14-2008 at 08:08 PM.
Reply With Quote
  #1123  
Old 03-14-2008, 07:45 PM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
Yeah, I've seen that too quite frequently on our PBS stations. Wouldn't you need to output somehow in the aspects file where say the top left and bottom right pixels of content are? Otherwise you are assuming that all recordings have content out to one of the extreme edges of the recording. So to make a plug in I'd think you'd need 4 things.
  • Time stamp of change
  • Parent Recording Resolution
  • Content Resolution / Ratio
  • X,Y coordinates of where in the frame the content starts and/or where in the frame it ends relative to the parent resolution.

0.233567 1280x720 640x480 320,120
30.345678 1280x720 1280x720 0,0
etc.
I suppose that the resolution of the parent recording could only be written once at the top or something.
Reply With Quote
  #1124  
Old 03-14-2008, 07:58 PM
geogecko geogecko is offline
Sage Icon
 
Join Date: Dec 2004
Location: North Oklahoma
Posts: 2,273
Quote:
Originally Posted by Jere_Jones View Post
As far as I know, nothing does it. There hasn't been anything that made this information available until now. I'm hopeful that someone will make an STVi soon.

And remember, it isn't a 'per-file' switch. It is a 'per-frame' switch.

Jere
That is what I thought you meant. So if I'm watching a show in HD, and say for some strange reason, I wanted to watch the commercials (no idea why I'd want to), it would automatically switch the aspect ratio for the commercials that were in SD?
__________________
-Jason
Reply With Quote
  #1125  
Old 03-15-2008, 01:42 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Quote:
Originally Posted by Humanzee View Post
  • Time stamp of change
  • Parent Recording Resolution
  • Content Resolution / Ratio
  • X,Y coordinates of where in the frame the content starts and/or where in the frame it ends relative to the parent resolution.
How about?
  • Time stamp of change
  • Current resolution
  • X pixel of upper left of the content
  • Y pixel of upper left of the content
  • X pixel up lower right of the content
  • Y pixel of lower right of the content
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #1126  
Old 03-16-2008, 01:12 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
I believe that you all are over-complicating it. As recently posted in the thread about nielm's aspect switcher, you really only need 4 zoom levels:

1) 16:9 file, 16:9 video
2) 16:9 file, 4:3 video
3) 4:3 file, 16:9 video
4) 4:3 file, 4:3 video

The file information comes from the file itself. Is it HD? If so use 1 or 2. If not, use 3 or 4. Then there is a threshold that you set and if the aspect ratio is above that, use 1 or 3. If not, use 2 or 4.

While it would be interesting to use a pixel accurate rectangle to define what is displayed, there is no point. I say this because, generally, the video DOES go to the edge of the rendered frame. It may not go to all 4 edges, but it typically goes to at least 2 of them.

Also, maybe we should create a whole new thread for this? I'm sure erik will implement this in Comskip soon, if he hasn't already, and therefore it isn't a ShowAnalyzer only feature.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #1127  
Old 03-16-2008, 09:27 PM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
Quote:
Originally Posted by Jere_Jones View Post
generally, the video DOES go to the edge of the rendered frame. It may not go to all 4 edges, but it typically goes to at least 2 of them.
Typically yes, however not always. A pixel accurate solution, though complicated, would work for all formats. If the community is putting in the work to do this, it might as well be as complete a solution as possible. I guess what I am saying is that if you can supply the extra data in your .aspects file, an plug in developer could use it or not. But if its not there, there is no possiblility. I would think that it being interesting is as good a reason to supply the info as any.
Reply With Quote
  #1128  
Old 03-17-2008, 07:05 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
This is what I implemented in the next build

Code:
0:00:00.04  704x 576 1.24 minX=  10, minY=  10, maxX= 694, maxY= 566
0:03:12.91  704x 576 0.98 minX=  82, minY=  10, maxX= 622, maxY= 566
0:03:18.31  704x 576 1.24 minX=  10, minY=  10, maxX= 694, maxY= 566
0:03:27.52  704x 576 0.98 minX=  82, minY=  10, maxX= 626, maxY= 566
0:03:37.87  704x 576 1.24 minX=  10, minY=  10, maxX= 694, maxY= 566
0:04:07.80  704x 576 0.98 minX=  82, minY=  10, maxX= 626, maxY= 566
0:04:56.27  704x 576 0.92 minX=  98, minY=  10, maxX= 606, maxY= 566
0:05:27.51  704x 576 0.00 minX=  86, minY=  74, maxX= 618, maxY= 502
0:05:30.36  704x 576 1.24 minX=  86, minY=  74, maxX= 618, maxY= 502
0:05:43.12  704x 576 0.00 minX=  90, minY=  38, maxX= 618, maxY= 530
0:05:46.19  704x 576 1.09 minX=  86, minY=  46, maxX= 618, maxY= 530
0:05:53.07  704x 576 1.24 minX=  82, minY=  70, maxX= 626, maxY= 506
An aspect ratio of 0.00 means the aspect ratio could not be determined for that segment, the plugin can choose to keep the same aspect ratio as the previous segment or chose the next segment depending on your preference.

This is another example
Code:
0:00:00.03 1920x1088 1.36 minX= 554, minY=  10, maxX=1366, maxY= 534
0:00:43.10 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
The default border is 10 so the min/max values always are at least 10 away from the borders
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #1129  
Old 03-17-2008, 09:26 AM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
If everyone is happy with what erik came up with, so am I.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #1130  
Old 03-17-2008, 09:29 AM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
erik,

Can you post the format string you are using so we can make sure our outputs are the same?

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #1131  
Old 03-17-2008, 09:36 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Sure

Code:
"%s %4dx%4d %.2f minX=%4d, minY=%4d, maxX=%4d, maxY=%4d\n"
where the first %s refers to the time converted to a string.
Its designed to generated fixed positions on a line, easy to scan (I hope).
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #1132  
Old 03-17-2008, 09:41 AM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
Quote:
Originally Posted by erik View Post
Code:
"%s %4dx%4d %.2f minX=%4d, minY=%4d, maxX=%4d, maxY=%4d\n"
Thanks!

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #1133  
Old 03-17-2008, 09:58 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Here is a more complex example of output
Notice the two 1280x720 segments

Code:
0:00:00.03 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
0:00:04.83 1920x1088 2.17 minX=  10, minY=  98, maxX=1910, maxY= 990
0:00:43.20 1920x1088 1.78 minX=  10, minY=  10, maxX=1902, maxY=1078
0:03:43.08 1920x1088 2.30 minX=  10, minY= 130, maxX=1910, maxY= 958
0:04:08.91 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
0:04:38.94 1920x1088 2.17 minX=  10, minY= 114, maxX=1910, maxY= 982
0:05:24.02 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
0:05:39.03 1920x1088 2.88 minX=  10, minY= 218, maxX=1910, maxY= 878
0:05:56.38 1920x1088 2.57 minX=  10, minY= 178, maxX=1910, maxY= 918
0:06:09.03 1280x 720 1.39 minX= 154, minY=  10, maxX=1126, maxY= 710
0:07:09.26 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
0:07:19.37 1920x1088 2.07 minX=  10, minY=  82, maxX=1910, maxY=1006
0:07:23.94 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
0:21:02.16 1920x1088 2.17 minX=  10, minY= 106, maxX=1910, maxY= 982
0:21:32.09 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
0:23:06.01 1920x1088 2.17 minX=  10, minY= 106, maxX=1910, maxY= 982
0:23:32.04 1280x 720 1.39 minX= 154, minY=  10, maxX=1126, maxY= 710
0:24:32.07 1920x1088 1.78 minX=  10, minY=  10, maxX=1910, maxY=1078
I later forced the removal of the border of 10 in the .aspects output, so 10 would become 1 and 1078 would become 1088.

Code:
0:00:00.03 1920x1088 2.60 minX=   1, minY= 178, maxX=1920, maxY= 918
0:00:00.96 1280x 720 1.36 minX= 154, minY=   1, maxX=1126, maxY= 720
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/

Last edited by erik; 03-17-2008 at 10:07 AM.
Reply With Quote
  #1134  
Old 03-17-2008, 10:17 AM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
I would recommend keeping the border. It would provide an easy way to give the user some clipping control. In the US, a lot of shows have some black and white noise at the top that is the Closed Caption information. Being able to clip that out would be nice.

Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #1135  
Old 03-17-2008, 02:46 PM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
Thanks guys, this seems to cover all of the possible scenario's I could think of. I suppose that the border clipping could be an additional value stored in the configuration files for SA and Comskip.

This way a user could set it to 0 if they wanted to correct for and clip borders via overscan settings in Sage. Or set a value like 10px to have the yet to come auto aspect plug-in clip the borders for you based on the zoom level and the adjusted output in your files.

Would you want 4 separate values for each border? I.e. isn't cc data only on the top or bottom of SD broadcasts not the sides? In this case should the border clipping values be stored distinctly from those used for evaluating frames while commercial detecting?
Reply With Quote
  #1136  
Old 03-17-2008, 03:09 PM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Quote:
Originally Posted by Humanzee View Post
Would you want 4 separate values for each border? I.e. isn't cc data only on the top or bottom of SD broadcasts not the sides? In this case should the border clipping values be stored distinctly from those used for evaluating frames while commercial detecting?
Why not let the plugin developer determine how much border to skip as minimum.
I prefer not to couple settings for different application that have a different purpose.
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #1137  
Old 03-17-2008, 08:39 PM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
either way
Reply With Quote
  #1138  
Old 03-21-2008, 08:30 PM
Jere_Jones's Avatar
Jere_Jones Jere_Jones is offline
Sage Fanatic
 
Join Date: Apr 2004
Location: Jacksonville, FL
Posts: 993
0.9.4 - March 21, 2008
- Added exception for Stream ID 0xBD in VideoRedo files. Stream ID will now report as 0x81.
- Added Teletext support for DVRMS files.
- Updated automatic aspect ratio output to comply with discussion here

Enjoy,
Jere
__________________
Death to commercials!!!
Latest ShowAnalyzer Beta version: 0.9.7
Reply With Quote
  #1139  
Old 03-22-2008, 07:15 AM
oshapir's Avatar
oshapir oshapir is offline
Sage Advanced User
 
Join Date: May 2004
Location: Israel
Posts: 142
Quote:
Originally Posted by Jere_Jones View Post
0.9.4 - March 21, 2008
- Added exception for Stream ID 0xBD in VideoRedo files. Stream ID will now report as 0x81.
- Added Teletext support for DVRMS files.
- Updated automatic aspect ratio output to comply with discussion here

Enjoy,
Jere
Can NOT go to your Web Site and upgrade - it was hacked

Please check it...

Oren.
__________________
Oren Shapir - Architect
Reply With Quote
  #1140  
Old 03-22-2008, 10:33 AM
geogecko geogecko is offline
Sage Icon
 
Join Date: Dec 2004
Location: North Oklahoma
Posts: 2,273
Got a copy before it got hacked I guess...

ShowAnalyzerWithSchoolHouseSetupBeta.0.9.4.exe

I'll leave up this host for a while, until everything is back to normal.
__________________
-Jason
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 09:57 AM.


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