Trimming UI for Cocoa, QuickTime
Posted May 17th, 2011 @ 11:33am by Erik J. Barzeski
I've got what you could consider a movie view in a window that looks like this:
What I'd like to add are some trimming controls, ideally something similar to the ones used in QuickTime Player:
Are there any open source, free, or even paid libraries that contain this type of UI, or is Apple keeping it all to themselves for now (and nobody else has seen fit to roll their own)?
If I'm not able to find something (or modify something) to do this, I'll have to create my own method of trimming. For simplicity, consistency, and the visual appeal I'm hoping someone knows of a way to trim like QuickTime Player…
P.S. Yes, trimming is coming to Analyzr.
Posted 27 May 2011 at 1:40pm #
Aside from the built-in trimming support in QTKit, I don't know of anything. The QTKitPlayer sample code has video editing enabled. You shift-click in the movie timeline to select a clip. (Then select the Trim menu item.) It's awkward, but it works. (Basically it's the same interface that the old Carbon versions of QuickTime Player had.)
Unfortunately there isn't anything like iOS's UIVideoEditorController in Mac OS X.
Hopefully someone will build a good controller to use with AVFoundation on Lion.. what QTKit provides just doesn't cut it. (Of course, it would be nice if Apple would give us what QuickTime Player uses, but I don't see that happening soon.)
Posted 27 May 2011 at 1:57pm #
Yeah, Tim, those are basically my thoughts. I was holding out hope that there was something out there I didn't know about…
Looks like I'll be creating my own UI for trimming. iTunes does it just by typing in numbers. I don't like that.
Posted 27 May 2011 at 3:19pm #
[...] a quick follow-up to yesterday's post, current plans [...]
Posted 27 May 2011 at 5:20pm #
[quote comment="67231"]
Looks like I'll be creating my own UI for trimming. iTunes does it just by typing in numbers. I don't like that.[/quote]
iTunes sucks.