|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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,.mpgIt does not work on (and possibly/probably others): VIDEO_TS DVD folder structure (returns empty string)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 |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
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.
__________________
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. |
#5
|
|||
|
|||
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 |
#6
|
|||
|
|||
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 |
#7
|
|||
|
|||
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 |
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
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.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#10
|
|||
|
|||
Quote:
Quote:
__________________
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |