I have had lots of luck learning from samples on Apples site. Once you get the gist of Cocoa, you can look into more advanced samples like
Take a look at QTkit, which is Apples Cocoa wrapper around the lower level Quicktime Library Learn some basic stuff in with QTKit, like opening a movie, getting the poster image, and using a QTMovieView to play the movie. Then learn some Quartz stuff, like manually loading a QCComposition and a QCRenderer or a QCView, and learn about publishing input and output ports from QC, and how you feed data into QC. Now get frames from quicktime, and pass them to QC :) Its a bit of a journey, admittedly, but will be worth it in the end. Another route, is that you could load a folder of images, and use Quicklook to get the finder previews of the movies, and then get the PATH of the movie, and send that to QC. Then you can use QCs movie player to handle the decoding, etc, you simply just tell it where the movie is. That is probably the far simpler approach, but you have much less control. On Apr 14, 2011, at 12:54 PM, Mario Marquez wrote: > Hi vade. > > Thanks for the tips. I did think about the grid, but I thought there should > be a better way. So I will listen to your advice and dive in Objective c. > > I an starting with the book from Aaron.Hillegass. Also got Become and > Xcoder. Do you know a source for quicktime cocoa stuff? > > > Best regards > > > Mario > > On Mon, Apr 11, 2011 at 5:54 PM, vade <[email protected]> wrote: > This is probably something where you probably want to start delving into > Cocoa for, to be honest. > > You can easily load a folder of QTMovies from cocoa, and use the [movie > posterImage] method to get an NSImage, and set an NSButton to use the > posterframe as its image, and set its representedObject to your movie. Then, > when you trigger the button, the represetned object is the movie you wish to > play. You can then use Quicktime to get images to pass to a published image > input port to a QCRenderer you have loaded. > > I know that may sounds much more complicated that it ought to be (depending > on how comfortable you are with Obj-C / Cocoa programming) but most of the > time things can be more easily done by levergaging just a touch of Obj-C to > augment Quartz Composers ease of use. QC is not meant to replace a larger > programming environment, but to augment it, and do some specific things > really well. > > My advice is to move some of your logic to Obj-C, and build a small app that > wraps your QC composition. If you are hell bent on using QC, I would suggest > the mouse patch, and doing some examination of the coordinate the mouse is at > when the mouse down is fired. If your buttons are in a grid, it should be > fairly straightforward to determine the index of the movie clip you want > played. > > As for loading compositions dynamically, yes, you can do so with the > Directory Scanner, get info on it and choose settings, then choose > "Compositions", or in Cocoa you can instantiate multiple QCRenderers on the > fly, and render them at your choosing. > > On Apr 11, 2011, at 3:53 PM, Mario Marquez wrote: > >> Hi everyone. >> >> I am Imagenero..new in this list. Been using QC since late 2009. >> >> I am making a video switcher in which I want to load a folder with movies >> using the directory scanner, then I want to generate a thumbnail of each >> movie in the directory and be able to click on the thumb to load the movie. >> >> >> So far I can read the "movies" folder, load the selected index movie into a >> player using the structure index and make a thumbnail using kineme "Quick >> Look". I only get a thumb of the movie loaded. not the entire directory. >> >> Instead of using the index slider to load a new movie in the player i want >> to be able to click on a thumbnail to load the movie. >> >> My question is : is it posible to create dynamically the thumbs (using >> virtual patches or composition loader) according to the number of movies in >> the directory and the members of the structure. I don´t want to hardwire >> the number of movies you can load in the comp. >> >> I have tried using the iterator patch to create buttons(not Thumbs), with >> partial results. I can draw the number of buttons using the structure count, >> but i can´t click on them to send the id of the movie to the structure >> index. >> Since the consumer patches in the iterator can´t get an output, I can´t >> connect the button id to the structure index. >> >> I hope this makes sense. >> >> Just to resume: >> >> is there a way to create/load patches or compositions dynamically? >> >> Any ideas? >> >> >> Thanks for you time >> >> I. >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Quartzcomposer-dev mailing list ([email protected]) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/quartzcomposer-dev/doktorp%40mac.com >> >> This email sent to [email protected] > >
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to [email protected]

