SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Mac Edition
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Mac Edition Discussion related to the SageTV Media Center for Mac edition. Questions, issues, problems, suggestions, etc. relating to the SageTV Mac edition should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2009, 01:56 PM
iconic's Avatar
iconic iconic is offline
Sage Advanced User
 
Join Date: Sep 2006
Posts: 138
Controlling QuickTime playback by media types

You can control (to some extent) what media types QuickTime will play back in the preferences file. Sorry, there is no UI for this currently so this is only recommended for users who are comfortable modifying preferences files directly. To do this you need a plist editor such as "Property List Editor" installed with XCode (requires free ADC account) or "PList Edit Pro" (has a free trial period).

If you want to get your hands dirty, do the following.

DISCLAIMER:
This is not officially supported and is completely unwarranted.
In other words: PROCEED AT YOUR OWN RISK!


First, quit the application if it's running. This will ensure the app does not try changing things behind our backs, which could cause problems while you're editing the file.


In the Finder:
- Open /Library/Preferences, use Command-Control-G to go directly there without browsing around
Picture 1.png

- Click once on tv.sage.SageTV.plist and press Command-I, this will bring up the Get Info dialog
- Make sure you have write privileges, at the bottom of the window. You may have to authenticate first, which means you need administrator access to the machine.
- Press Command-D to make a backup of the file. If things get messed up, just delete the file and rename this backup to restore the original settings.
- Open the file in your editor


In the plist editor:
- Expand "Root"
- There should be an entry under Root named "QTKitSettings" (See Picture 2), expand this so you can see its contents.
Picture 2.png

There will be three entries under QTKitSettings:
- DisabledMedia: Disables specified media types
- ForcedMedia: Circumvents checking and forces QT to try to play the specified media types
- PlayedMediaTypes: Media types that have successfully (or partially successfully) been played through QTKit

Each of these entries is an array of strings. They must only be strings, if any other type is added to the array, bad things could happen.

PlayedMediaTypes will contain oddly formatted strings like the following:
mp4 | Quicktime | H.264 | AAC
First field is the filename extension.
Second field is the container type.
Third field is the primary video stream type.
Last is the primary audio stream type.

This example was a .mp4 (Quicktime compatible) file with a h.264 video stream and aac audio stream. The stream types are for the primary streams only, only one stream is reported per file and it's generally the first of each encountered.

The video or audio stream types may be blank if those tracks do not exist.

Do not edit the entries under PlayedMediaTypes, they are managed internally.


DisabledMedia and ForcedMedia can contain:
- Filename extension including the dot, e.g., ".flv" to disable flash video
- Container name, e.g., "Matroska" or "AVI"
- Full media type as listed in PlayedMediaTypes, just cut and paste for an exact match.

NOTE: DisabledMedia takes precedence over ForcedMedia. Even if you use different types in both lists, e.g., if you have .mkv disabled and Matroska forced, it will not play .mkv files.


When done editing the file save it then close the file in the editor and re-launch the app. QTKit should honor the new settings. Please note that just because you can force it to attempt playback of a file type does not mean that it will successfully play it back. As a general rule, you must be able to play the file in QuickTime player or it won't work in our application.

Picture 3 shows an example of what this could look like. Note that these settings are for reference only and are not meant to be used directly.
Picture 3.png
Reply With Quote
  #2  
Old 01-07-2009, 01:24 PM
sandor's Avatar
sandor sandor is offline
Sage Expert
 
Join Date: Dec 2006
Location: Philadelphia, PA USA
Posts: 621
thanks for this.

i was just testing the latest beta, and am assuming that it is using QT (Sage is using a lot of processor time, and mplayer no longer appears) but i ran into an issue with mkv and mpeg*** files, and was just going to post asking how to limit the file types QT plays vs. mplayer.

**the issue with mkv and mpeg files is that QT requires indexing of the entire file before playback can start, resulting in a 5-60 second delay depending on the length of the file
__________________
MacBook Core2Duo 2 ghz
nVidia 9400M GPU
46" Sammy HLP4663 720p DLP
2x HDHR, all OTA
QNAP TS-809:
12.5 TB for Recordings/Imports/TimeMachine/Music
HD200 via 802.11n in Living Room
802.11n client in bedroom
Reply With Quote
  #3  
Old 01-08-2009, 03:59 PM
sandor's Avatar
sandor sandor is offline
Sage Expert
 
Join Date: Dec 2006
Location: Philadelphia, PA USA
Posts: 621
works brilliantly. i was able to disable mkv in QT for now.
__________________
MacBook Core2Duo 2 ghz
nVidia 9400M GPU
46" Sammy HLP4663 720p DLP
2x HDHR, all OTA
QNAP TS-809:
12.5 TB for Recordings/Imports/TimeMachine/Music
HD200 via 802.11n in Living Room
802.11n client in bedroom
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
Vista MMCSS slows down media playback over gb LAN bcjenkins General Discussion 6 10-19-2007 02:21 AM
Controlling Playback of Imported DVDs Karen0302 SageTV Software 1 09-18-2007 02:51 AM


All times are GMT -6. The time now is 05:29 PM.


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