|Aug 24, 2010, 12:57 PM||#1|
Merge QuickTime movies through code
Is there a way, either through coding or command line, to take two QuickTime movies and combine them into one.
I know that this can be done manually through QuickTime player, but we need to be able to do this using code or command line.
Thx for your help.
|Aug 24, 2010, 04:32 PM||#3|
Thx for your reply.
We have tried you query multiple times and have not found a solution.
To be more specific, we are trying to implement a system for reducing the time that it takes to make a large movie by making pieces of the final product on multiple machines. Lets say we have 100,000 frames that we want to turn into a movie. We send a job out to 10 machines to 10 different ranges:
1 - 10,000
10,001 - 20,000
20,001 - 30,000
Now that we have the ten slices, we need to merge them together into one QuickTime movie encoded with the animation codec.
This must be done from the command line, or through coding as the process has to be automatic.
Does anyone know of a solution, or could at least point us to a place that does. We have exhausted Google with every variation of 'quicktime command line'.
|Aug 24, 2010, 05:41 PM||#5|
Will any of these meet your requirements or not?
The first is more recently updated, but seems to require an activation code.
It looks like at least one of them may work, but since you haven't said anything about trying anything you might have found, you may have to try them first.
It's also possible that ImageMagick will work, but it seems more still-image oriented than movie-oriented, so that's just a wild guess.
If these don't meet your requirements, please provide more detail. Specifically:
#3 doesn't need to be your personal experience, but someone else in your work group. I'm asking in order to have some idea of whether a close-but-not-exact script would be acceptable or not.
#4 is to know what your tools are, so we know what can be done with what you already have.
I found the above tools by visiting www.macupdate.com and searching it with terms like:
movie command line
|Aug 24, 2010, 11:41 PM||#6|
You're basically describing a distributed render farm. What you probably want to do is have the client machines render self-contained single frames in an appropriate losslessly-compressed format such as .tif or .png, then send all the frames back to a central server which stitches the frames together and encodes it as a QuickTime movie. Theoretically you could have each client make its own QuickTime but it might be easier to use individual frames. This can certainly be done through code using the QuickTime API, however one of the functions of the AppleScriptable QuickTime Player app is to read in a series of numbered still frames, which can then be saved out as a QuickTime movie with any encoding that QuickTime supports. So you might be able to achieve it with little more than some AppleScripting. But the hard part will be coordinating between all the clients and the server, making sure all the frames get rendered and are valid, etc.
Go outside, the graphics are amazing!
|Aug 25, 2010, 10:37 AM||#7|
Yes those links are great I will have to investigate them. We have only tried solutions for PC but we have access to a mac.
Things that we have tried are the obvious ffmpeg, mencoder, and other pretty hacky things that aren't worth mentioning.
Thx for your reply and hopefully continued help
We are using a distributed render farm to make frames almost exactly as you described. We need to create uncompressed movies which can get very large (100,000+ frames at 5mb each = A LARGE MOVIE ). We are trying to find a way to decrease the amount of time that it takes to create an uncompressed movie by having multiple chunks of frames encoded on the farm and stitched together at the end. We have already implemented the part where we encode all the pieces. Now we just need a solution for combining them into one uncompressed movie for delivery to clients.
Thanks to you also.
|Aug 25, 2010, 06:57 PM||#8|
I've used a Ruby Gem called rmov for exactly this purpose. It's basically a wrapper around the C QuickTime API, and it works quite well for combining movies, modifying, adding, or deleting tracks, and so on.
You didn't mention Ruby as one of the languages you are familiar with, but if you are an experienced programmer you should have no trouble figuring out what you need to do from the examples provided. Or even better, you can use the opportunity to learn Ruby, which is in my opinion the single handiest programming language available on the Mac.
|Aug 26, 2010, 09:44 AM||#9|
That looks like it will work perfectly, thx!
No I don't know ruby at all, but like you said I'm sure it wouldn't take long to pick up. I'll look at the samples you provided and see if there is a way to implement them in our production pipeline.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Embedding Quicktime player through HTML in Mail app||ptech||Mac Applications and Mac App Store||0||Oct 18, 2011 05:14 AM|
|Joining Movies & Clips Using Quicktime?||TheRealMcCoy||Mac Applications and Mac App Store||4||Aug 15, 2011 08:12 PM|
|Can't Review Apps obtained through Redemption Codes||Amazing Iceman||iPad Apps||3||Apr 21, 2011 12:20 AM|
|Convert Quicktime movie file to MPEG-4 movie to put on iPod||atomheartmother||iPod||2||Jan 17, 2008 01:48 PM|
|Sending quicktime audio through skype?||typecase||Mac Applications and Mac App Store||0||Nov 5, 2006 02:31 PM|
All times are GMT -5. The time now is 08:47 PM.