|
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
|
|||
|
|||
Preferred Audio Track Format
Hey all,
I am looking for a little advise to point me in the right direction. Basically I am planning to write a small plugin that will automatically select a particular audio format when a video is played. For example, when I play a ripped blu-ray/HD-DVD movie on the extender located in the family room, I would like Sage to select the best format possible (DTS-MA for example) since my receiver can decode all the formats. However, when playing the same movie on the extender in the bedroom, I would like Sage to select AC3 track otherwise there will be no audio. My problem is that my wife gets ticked off when she tries to play a movie in the bedroom and gets silence. She has no desire to learn anything but the basics in Sage so everything needs to be automatic. So... I have been digging through the Studio manual and the API lists and it seems that DVDAudioChange when combined with GetDVDAvailableLanguages() may work. First of all, do these functions only work with DVD formatted video or will they work with Blu-ray structures, .TS, .M2Ts, etc.. Is there a better function to call? Second, I figure that I need listener to identify when a movie is started. Will a simple play listener work or is there something I am not thinking about? Thanks for any help. I have only completed a few simple UI mods using studio in the past so I am a definite novice. Any guidance is most appreciated. -Nutball |
#2
|
|||
|
|||
I haven't messed ith audio API but those look right. I would take a look at the options menu to change audio and see how it is done.
As for listener I would put it in the beforemenuload hook it should work there if not in the after menuloadhook. If it were me I would put a options menu at the start of the film that says select audio track. That way you don't have overcomplicated formulas that could get it wrong if none of the formats get it right. Or you could get a hd300 and it can convert dts tracks to 2.0 and you never have to worry about it!! That alone was my reason for upgrading my hd200's. |
#3
|
||||
|
||||
Quote:
Quote:
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 |
#4
|
|||
|
|||
Thank you both,
I will take your suggestions and pop up a simple options menu asking for a desired audio track as that seems within my limited skill set. If that goes well, I will attempt to incorporate some simple logic to preselect a particular preferred audio track. The formula should be fairly simple since I only use a few formats. If I am not mistaken, the automatic down conversion that the HD-300 can do only applies to DTS tracks. I have many movies where the HD track is encoded in Dolby True-HD so I figured that feature would only be of limited help. I do actually have a HD-300 but it is the one extender that runs through a receiver so I haven't used the auto-conversion process much. Unfortunately my other two extenders are older models (HD-200 and HD-100). I will upgrade them eventually, but I am dragging my feet a bit until I sort a few minor issues out (java heap and music playback). Thanks, Nutball |
#5
|
||||
|
||||
What he wants to do has nothing to do with menus being loaded. He wants to trigger it when playback starts (regardless of which menu is displayed), and there's a perfectly good MediaPlayerFileLoadComplete hook for that.
__________________
-- Greg |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Placeshifter and audio track selection | scanner95 | SageTV Placeshifter | 0 | 10-28-2010 05:07 AM |
Way to choose which audio track to play? | bits | SageTV Media Extender | 3 | 09-30-2010 07:47 AM |
Wrong audio track streamed | Nikki | SageTV Placeshifter | 2 | 05-24-2009 10:52 AM |
DVB-T wrong audio track | moamoa | SageTV Beta Test Software | 3 | 01-03-2007 02:09 PM |
Change ac3 audio track... | ikarus79m | SageTV Software | 3 | 11-19-2006 04:23 PM |