Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Movie Video Chart Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Movie Video Chart Help




On Feb 22, 2008, Ryan Gallagher wrote:

I have the mpeg2 quicktime component, but when ever i try to open a
mpeg2 with Movie Video Chart it reports a "no video track found" error.


On line 502 of ChartWindow.c of MovieVideoChart sample, change

videoTrack = GetMovieIndTrackType( movie, 1, VideoMediaType, movieTrackMediaType );
if( ! videoTrack ) {


to

videoTrack = GetMovieIndTrackType( movie, 1, VideoMediaType, movieTrackMediaType );
if( ! videoTrack )
videoTrack = GetMovieIndTrackType( movie, 1, 'm2s ', movieTrackMediaType );
if( ! videoTrack ) {



Evidently QT does not currently consider mpeg2 video to be of VideoMediaType, or even MPEGMediaType, but of type 'm2s '.
To be robust, code therefore needs to check for all three types before concluding there is no video in a movie.


See http://lists.apple.com/archives/QuickTime-API//2007/Nov/ msg00012.html







_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.