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 03-30-2006, 08:51 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Disk space bar accuracy with HDTV files?

Ok.. This was being discussed in the Hidded extras thread.. So I thought I'd move it here. I thought it might merit it's own thread....

This is all about the Disk space indicator not being accurate for HD files.

I've updated the diskspace bar to check for default recording quality of an encoder and assigned a custom bit rate for it. It all seems to work fine.

But there is a dilema...

I believe in Sage the priority

If airing has a quality assigned use it
Else if the encoder has a quality assigned use that default encoder quality
Else use the default recording quality.

Now I implemented this in the diskspace bar. BUT.....
Now if you have a favorite that has some set quality the disk space bar will use the airing quality number, not the encoder quality in it's calulation. but in real life it will still get recorded on the digital tuner and might be different.

Now If I change the priority to:

If the encoder has a quality assigned use that default encoder quality
ElseIf airing has a quality assigned use it
Else use the default recording quality.

But then this would make the calculations inaccurate for other situations.

Now I guess I could check to see if an encoder was a digital encoded and change the priority based on that, but that might get a little messy..

What do you guys think?

I think we should keep sage's priority scheme and live with the inaccuracy that happens when a favorite with and assigned quality is recorded on a digital tuner..

Jim

Last edited by jbuszkie; 03-30-2006 at 08:53 AM.
Reply With Quote
  #2  
Old 03-30-2006, 09:03 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by jbuszkie
Now I guess I could check to see if an encoder was a digital encoder
That is pretty much the only way to do it, since the recording quality settings have no meaning to a digital tuner. As was mentioned before, you would have to just make up some number for a digital recording (via properties, I suppose).

Other considerations:

Many recording qualities are variable bit rate, so they won't be entirely accurate.

Then, there are the custom network encoders that are in use... I'm not sure how you would determine a size estimate for their recordings.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #3  
Old 03-30-2006, 09:12 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Well the thought was to make it more accuate.. not perfect.

Maybe I'll see if I can do the Digital decoder detection.. I'm just worried that if I add too much code and loops it might make the refresh too slow?? It works fine for my test setup with only a couple fake shows to record, but if it has to calculate for 100 show???
Reply With Quote
  #4  
Old 03-30-2006, 10:54 AM
malore's Avatar
malore malore is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Iowa
Posts: 877
If you mostly record HD shows on your digital tuner than you could just use IsAiringHDTV to check for HD airings and base you space requirements off of that. An additional problem might be that I've noticed that shows vary is size from network to network for example my Fox shows are almost half the size of NBC shows.
Reply With Quote
  #5  
Old 03-30-2006, 11:16 AM
Kirby's Avatar
Kirby Kirby is offline
Sage Icon
 
Join Date: Jan 2006
Posts: 1,253
Quote:
Originally Posted by malore
If you mostly record HD shows on your digital tuner than you could just use IsAiringHDTV to check for HD airings and base you space requirements off of that. An additional problem might be that I've noticed that shows vary is size from network to network for example my Fox shows are almost half the size of NBC shows.
Exactly. You've just picked a good example, NBC being 1920x1080i, and FOX is 1280x720p. That alone equates to roughly 15% size difference, and I am quite sure that FOX sends out a lower bitrate than what 720p can handle, accounting for the other 30% or so.

After thinking more about this, I am thinking it might be best to leave well enough alone. The only way to get accurate numbers is going to be on a per channel/per provider basis. FOX-HD on Comcast might be lower bitrate than on Charter, but both are probably higher that whats on DirecTV or Dishnetwork. Then throw in the whole HD-lite mess that satellite providers are sending, the move to MPEG4, statistical multiplexing, cable rate-shaping that can vary from headend to headend.....

What a mess!
Reply With Quote
  #6  
Old 03-30-2006, 11:20 AM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
If you can't detect which tuner it was recorded on can you detect what channel the program was recorded on? Our HD channels are distinct from the regular line up and I think are at a constant bit rate.
Reply With Quote
  #7  
Old 03-30-2006, 11:28 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by Humanzee
If you can't detect which tuner it was recorded on can you detect what channel the program was recorded on? Our HD channels are distinct from the regular line up and I think are at a constant bit rate.
Now there's a thought...
We could get the airing channel name and use that to determine the digital status... At least for me if anything ended with DT[0-9] in the channel name I could say that it was recorded digitally and used my 9GB/hr estimate.

Then from there it could be enhanced to look up a value from some text file based on the channel name and the ISAiringHDTV and grab a bitrate value..

hmm....
Reply With Quote
  #8  
Old 03-30-2006, 11:37 AM
Humanzee's Avatar
Humanzee Humanzee is offline
Sage Fanatic
 
Join Date: Sep 2004
Location: North Idaho
Posts: 752
Quote:
Originally Posted by jbuszkie
look up a value from some text file
There was some talk at one point about using show analyzer to detect things like aspect ratio so that it could be used by a plug in like neilm's automatic aspect ratio switcher. Jere said at the time that his program already detects lots of information about the recording that "could" be output as another file type.

If SA output a file that contained the overall length of a program, the overall file size, the bit rate, resolution, aspect ratio, etc. That info could be used in a variety of ways, combined with xml data from the web server about the favorite, the channel, the tuner, etc to create a matrix or database of information about a recording. Then when looking at upcoming recordings you could project what disk usage could be expected based on how the favorite/channel/encoder was recorded at in the past.

Now that would be a nice mountain to build out of a mole hill. We often hear complaints about not being able to access the mysteries inside of the wiz.bin, maybe its time we start an open source database in parallel with wiz.bin so that we can use it for our own purposes.

Last edited by Humanzee; 03-30-2006 at 11:40 AM.
Reply With Quote
  #9  
Old 03-30-2006, 11:48 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by jbuszkie
We could get the airing channel name and use that to determine the digital status... At least for me if anything ended with DT[0-9] in the channel name I could say that it was recorded digitally and used my 9GB/hr estimate.
You may know this already, but just in case... search the default STV for "Digital_TV_Tuner" to see how to determine if something is a digital tuner.

The ParallelSchedules menu shows how to grab the schedule by encoder device. You should be able to walk through the schedule that way too, checking device type/quality settings once per tuner.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #10  
Old 03-30-2006, 11:55 AM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Wow! Now that would be complex! Having the program *learn* based on previous recodings to deterime future space requirements......

That's a little more accurate than I need.

I'll be satisfied If the estimate is greater than needed.
I just don't want to run out of space because the estimate
was too low.

I think what I'll do is

1. Release the modification as is... which basically will look for to see it the encoder has a default quality if there is no airing quality...

2. Then later...Enhance it to look for a digital tuner to override any Airing quality.

3. And much later...Then see about reading in a look up table that the user can set to base a bitrate based on channel name and HD status...


Jim
Reply With Quote
  #11  
Old 03-30-2006, 12:00 PM
jbuszkie's Avatar
jbuszkie jbuszkie is offline
Sage Fanatic
 
Join Date: Aug 2003
Location: Westminster, MA
Posts: 938
Quote:
Originally Posted by Opus4
You may know this already, but just in case... search the default STV for "Digital_TV_Tuner" to see how to determine if something is a digital tuner.
Yeah.. I already do that for some of my other plugins......

Quote:
Originally Posted by Opus4
The ParallelSchedules menu shows how to grab the schedule by encoder device. You should be able to walk through the schedule that way too, checking device type/quality settings once per tuner.
- Andy
Yeah.. That's what I'm doing now...
for each encoder I look in it's schedule for the current airing to see if it's there then do the rest of the calc...

The channel name thing would be a way to get rid of doing the encoder loop...

Maybe the loops really won't be a big deal in terms of creating a delay...

Last edited by jbuszkie; 03-30-2006 at 12:03 PM.
Reply With Quote
  #12  
Old 03-31-2006, 11:20 AM
rfutscher rfutscher is offline
Sage Advanced User
 
Join Date: Apr 2003
Posts: 141
You also have to check to see if Sage is recording the transport stream or the program stream. This is an option that can be set either way.

Quote:
Originally Posted by Kirby
Exactly. You've just picked a good example, NBC being 1920x1080i, and FOX is 1280x720p. That alone equates to roughly 15% size difference, and I am quite sure that FOX sends out a lower bitrate than what 720p can handle, accounting for the other 30% or so.

After thinking more about this, I am thinking it might be best to leave well enough alone. The only way to get accurate numbers is going to be on a per channel/per provider basis. FOX-HD on Comcast might be lower bitrate than on Charter, but both are probably higher that whats on DirecTV or Dishnetwork. Then throw in the whole HD-lite mess that satellite providers are sending, the move to MPEG4, statistical multiplexing, cable rate-shaping that can vary from headend to headend.....

What a mess!
Reply With Quote
  #13  
Old 03-31-2006, 02:15 PM
Kirby's Avatar
Kirby Kirby is offline
Sage Icon
 
Join Date: Jan 2006
Posts: 1,253
I've never recorded a PS, how do they compare in size?
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 10:28 PM.


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