SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-27-2009, 06:33 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
GetMediaFileFormatDescription() Questions

I wrote a couple STVi's to allow the user to see what the format of the currently playing media is from the OSD and also to interactively choose the output mode of the extender via a popup while in the media player (no going through the detailed setup or toggling through the resolutions with the Video Out button). Anyway... I want to display the current media file format (resolution and timing). I am using GetMediaFileFormatDescription() and then parsing the string to return only the resolution and timing information.

This works great on:
.mpeg,.mpg
.avi
.m2ts
.mkv
It does not work on (and possibly/probably others):
VIDEO_TS DVD folder structure (returns empty string)
.ts (returns resolution only for H264 video, nothing useful for VC1 video)
Is there another method to return useful and accurate fileformat, resolution, and timing information (either with GetMediaFileFormatDescription or something different)? or is that something that needs to change in the core? If it can't be done from within studio how about an external solution?

My larger goal is to smarten up the NativeOutputResolutionSwitching for the extender with preference tables, etc (Similar to Twisted Melon's post here: http://forums.sagetv.com/forums/show...08&postcount=2). I think this possible and fairly straight forward but it relies on accurate resolution/timing information for every video (and is worthless otherwise). Any help/pointers is greatly appreciated. Thanks
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #2  
Old 03-27-2009, 07:01 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
I don't think you can get that information for a DVD folder structure and the same is true for .ts files unless it contains a file type that can be read like mpeg or mkv. When creating my imports I used IsDVD to check for DVD's then if true display an alternative message informing the user that the other info is not supported.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders

Last edited by jaminben; 03-27-2009 at 07:03 AM.
Reply With Quote
  #3  
Old 03-27-2009, 07:14 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Ya that's I am discovering. I can see why that is the case for DVD Folder structure (and probably Blu-ray folder structure too). However, I don't understand why that is the case for .ts files. Isn't .ts just another container like mkv, avi, or m2ts?
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #4  
Old 03-27-2009, 07:20 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by razrsharpe View Post
Ya that's I am discovering. I can see why that is the case for DVD Folder structure (and probably Blu-ray folder structure too). However, I don't understand why that is the case for .ts files. Isn't .ts just another container like mkv, avi, or m2ts?
I think your correct about .ts and luckily all my .ts files use .mpg2 or .mkv so it wasn't an issue and worked as I expected. When you view your .ts files what type of media does it say it contains? And yes Blu-Ray titles seem to suffer the same issue unless it contains a format that can be read. It also affects the watched status just as DVD files do. See screenshot.
Attached Images
File Type: jpg BluRay.jpg (101.9 KB, 146 views)
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders

Last edited by jaminben; 03-27-2009 at 07:27 AM.
Reply With Quote
  #5  
Old 03-27-2009, 07:27 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
for VC1 video (Planet Earth, Dark Knight) (bluray remuxed into a .ts file) it returns either nothing (empty string) or something completely nonsensical (1:1 1080i @ 40fps) And I know full well the video is 16:9 1080p@24fps. For H264 video (bluray remuxed into a .ts file) it returns format only (1080p, no timing information). For .ts files from the HD-PVR (1080i from STB) it returns a blank string. These are from memory b/c im at work and cant double check to make sure (will double check tonight).

PS - I have since stopped remuxing Bluray into a .ts file. I initially did that because i had better playback on an hd100. I bought an hd200 so this shouldnt be an issue anymore and will go back through and convert the .ts files to BDMV folders. Still doesn't answer the questions about the the HD-PVR .ts files though.....
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #6  
Old 03-27-2009, 07:32 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Unless anyone else comes-up with a solution I think we're stuck with whats available. It would be nice to get this sort of info from a DVD & .ts file but its not high on my list of what I would want.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #7  
Old 03-27-2009, 07:37 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by jaminben View Post
Unless anyone else comes-up with a solution I think we're stuck with whats available. It would be nice to get this sort of info from a DVD & .ts file but its not high on my list of what I would want.
ya agreed. It is my next project i want to tackle (smarter native output switching) so i will probably look into getting the information externally (passing the video to ffmpeg or something like that... like EP does in the first part of his mediashrink code.. providing of course this can be done rather painlessly and efficiently) unless of course someone else has some other method available.
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #8  
Old 03-27-2009, 07:40 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
PS - I just checked out that screen shot... missed that earlier... I like that UI. I really need to get fanart up and running i think... Is that a stock UI setup or something custom? When you say it effects the watched status do you mean it is reporting the wrong info (aka it should be watched when it isnt?)
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #9  
Old 03-27-2009, 07:49 AM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Quote:
Originally Posted by razrsharpe View Post
PS - I just checked out that screen shot... missed that earlier... I like that UI. I really need to get fanart up and running i think... Is that a stock UI setup or something custom?
Its using SageMC and my movie import as a replacement for SageMC's movie info screen. Its proberly not worth setting up fanart just yet as a new more efficient method is going to be released soon (ish). I believe Tiki has made an import for fanart that supports the default Sage UI.


Quote:
Originally Posted by razrsharpe View Post
When you say it effects the watched status do you mean it is reporting the wrong info (aka it should be watched when it isnt?)
As far as I'm aware the watched icon/text doesn't work for DVD's and Blu_Rays but does for .ts files. So its not mis-reporting it as it just doesn't work.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #10  
Old 03-27-2009, 08:08 AM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by jaminben View Post
Its using SageMC and my movie import as a replacement for SageMC's movie info screen. Its proberly not worth setting up fanart just yet as a new more efficient method is going to be released soon (ish). I believe Tiki has made an import for fanart that supports the default Sage UI.
SageMC convert here... And ya from the rumormill I pretty much decided I was going to hold off on fanart until the new method is released
Quote:
As far as I'm aware the watched icon/text doesn't work for DVD's and Blu_Rays but does for .ts files. So its not mis-reporting it as it just doesn't work.
AHHHH ok
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with 2 questions ruwackd SageTV Software 2 01-18-2008 09:45 AM
Some V6 questions JonTom SageTV Beta Test Software 5 10-05-2006 05:20 PM
Questions BonBon SageTV Software 10 02-07-2006 09:15 PM
some questions Vyts SageTV Software 3 06-22-2004 12:39 AM
A Few Questions.. Mike Young SageTV Software 2 09-16-2003 06:42 AM


All times are GMT -6. The time now is 09:48 AM.


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