473,659 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PyObjC, XCode 3, QTKit - accessing QT Timecode Track info

46 New Member
Hi guys!

I am having a bit of difficulty trying to get to a 'timecode' track in a QuickTime file using the QTKit framework in Mac OSX 10.5
I am using XCode 3.

I have a QTMovie object (set as self.movie) and I can get my python fingers into it a little.
This is what I can get to so far
Expand|Select|Wrap|Line Numbers
  1.         allTracks = self.movie.tracksOfMediaType_("tmcd")
  2.         if len(self.movie.tracks()) > 0:
  3.             # First make sure we have at least one video track with a non zero length
  4.             allMedia = [track.movie() for track in allTracks]
  5.  
  6.             for media in allMedia:
  7.                 test = media.attributeForKey_('QTMediaTimeScaleAttribute')
  8.                 print media
  9.                 print test
  10.                 #print test.QTTimeValue().timeValue
  11.                 break
  12.  
  13.             for track in allTracks:
  14.                 print track.media().mediaAttributes()
  15.                 print track.movie().movieAttributes()
  16.  
Unfortunately I can't find out how to return the "currentTim e" (current frame) of the timecode track. It is easy enough to return the currentTime of the Video track (self.movie.cur rentTime()), but i have no idea how to get to the value for the Timecode track.

I have been scouring the web for PyObjC examples of QTKit and accessing the details of the Timecode track and return a SMPTE formatted String.

Can anyone offer up any ideas?

Cheers!

Adam
May 21 '09 #1
0 1929

Sign in to post your reply or Sign up for a free account.

Similar topics

1
12203
by: Josh Santangelo | last post by:
Does anyone know of a way to make Apple's Xcode editor do syntax highlighting and tooltips for PHP functions? I found some hacks for the old Project Builder, but they don't seem to work with Xcode. Thanks, -josh
0
1821
by: lars | last post by:
I'm starting to use xcode on OS X to try out some sample programs in Java. How do I deal with extra packages? e.g. package je3.xml; I've downloaded, package je3.xml from the Java Examples in a Nutshell site, but cannot figure out how to get xcode to find the package or into which directory it should go. -Lars
2
2434
by: steve | last post by:
Hi, I'm trying to use a protocol class as a template parameter. The protocol class defines its own types and methods for working with them. The template class uses the types defined by the protocol and various methods, however I get errors when trying to compile this in Xcode while in Codewarrior it works fine. I'm looking for a way to either fix this in Xcode, or find another design solution that meets the needs of the problem.
1
1106
by: weston | last post by:
Does anyone have experience with (or failing that, theoretical knowledge about) installing using the PyObjC bridge on a Mac OS X machine in a context where one doesn't have root/admin access (and therefore can't install things in conventional locations)? Can such a thing be done?
0
1267
by: Horace Enea | last post by:
I'm trying to use Python on a Mac running OSX 10.4.9. I installed Python 2.5 along with Idle. My problem is that Xcode no longer works with PyObjC. It gives an error message: ImportError: No module named PyObjCTools. I've down-loaded PyObjC and re-installed it along with PyObjCTools, but still get the same error from Xcode. Any suggestions? Thanks.
3
3389
pdring
by: pdring | last post by:
Can anyone help?? I have just started a C / C++ course at my local college and they use borland c++ builder 5, I use an imac at home and have downloaded xcode as my c++ compiler, it works beatifully but now I find out that borland 5 uses different code to the ANSI standard that xcode can compile, is their an easy conversion / program so that I can write and compile borland in xcode or am I wishing for the impossible? any help or alternative...
5
1513
by: mdh | last post by:
Hi, If anyone is using this compiler for C, ( or any other language) perhaps you could drop me a line to help solve a problem I have. Thank you.
1
3544
by: flyfree | last post by:
I got an error during making a python application with xcode 3.0 in OS X Leopard. (KeyError: 'NSUnknownKeyException - : this class is not key value coding-compliant for the key calculatedMean.') The application is a simple example of how to use the PyObjC with xcode 2.0. http://developer.apple.com/cocoa/pyobjc.html
1
1530
by: Tommy Grav | last post by:
I am trying to install PyObjC 1.4 on my Mac OS X 10.4.11. I run: Temporary/pyobjc-1.4 --python setup.py bdist_mpkg -- open ** using pyobjc source-deps py2app for building running bdist_mpkg installing to build/bdist.macosx-10.3-fat/mpkg running build
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2757
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.