|
|
#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. |
|
|
|
0
|
|
|
#2 |
|
I googled these search terms:
quicktime command line The results look promising. If those results are unsatisfactory, please provide a more detailed explanation. |
|
|
|
0
|
|
|
#3 |
|
@chown33
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 etc.... 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'. |
|
|
|
0
|
|
|
#4 |
|
I would look into QTKit and Quicktime frameworks, loading the files, combining the buffers and saving to a new file can most certainly be done there I'd say.
|
|
|
|
0
|
|
|
#5 |
|
Will any of these meet your requirements or not?
http://www.macupdate.com/info.php/id/22667/addmovie http://www.macupdate.com/info.php/id/17601/qtcoffee http://www.macupdate.com/info.php/id...oviecat-plugin 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: join movies combine movies movie command line quicktime command http://www.macupdate.com/ |
|
|
|
0
|
|
|
#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! |
|
|
|
0
|
|
|
#7 |
|
@chown
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 @HiRez 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. |
|
|
|
0
|
|
|
#8 | |
|
Quote:
Hearing that you're using a commercial render-farm manager, I'm a little surprised it can't handle (or direct) the final sequencing. Maybe that's just my ignorance of the field. Your list of languages looks good. I was hoping for AppleScript or bash (shell), but I don't think you'll get lost at the first command-line. At this point, I think the next step is for you to tell us how the evaluation of the 3 suggested programs went. If you've paid for QuickTime Pro on a Mac, some other possibilities arise, such as AppleScripting the QuickTime Player app. |
||
|
|
0
|
|
|
#9 |
|
@chown
We have only tried solutions for pc, but we do have access to a mac, so a mac solution would be acceptable. I think we have Quicktime pro for mac, but if we don't we can purchase it. Problems with what we tried: ffmpeg can only concatenate avi's. Any other format is corrupted mencoder had the same problem. Those were the two main programs that we tried for over a month. I even tried to recode some of the libraries but that was pretty much a waste of time. I'm sure that if AppleScript can merge multiple movies into one, then I won't have a problem picking it up. If so, do you have any suggestions of where to get go the procedure for what we need to do? I know that I could just google it but I was hoping you guys could give me a head start by pointing me in the right direction. |
|
|
|
0
|
|
|
#10 |
|
Try saving this as an AppleScript application (i.e., a droplet):
Code:
on open theMovieFiles tell application "Finder" set theSortedMovieFiles to sort theMovieFiles by name end tell tell application id "com.apple.quicktimeplayer" activate make new document repeat with aMovieFile in theSortedMovieFiles open (aMovieFile as alias) tell document 1 rewind select all copy select none end tell close document 1 saving no tell document 1 add select none end tell end repeat tell document 1 rewind end tell end tell end open That alternative approach is way more complicated, though (working with the QuickTime framework can be very tricky), so I'd recommend staying with the script if it does everything you need. The fact that you can make this a part of more complex scripts (e.g., for saving the resulting movie) or even Automator actions might come in handy, too. Last edited by Peter Maurer; Aug 25, 2010 at 03:55 PM. Reason: simplified script some more and added a note on QuickTime Pro. |
|
|
|
0
|
|
|
#11 |
|
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.
http://rmov.rubyforge.org/ 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. |
|
|
|
0
|
|
|
#12 |
|
@Peter Maurer
That looks like it will work perfectly, thx! @ytk 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. |
|
|
|
0
|
|
|
#13 | |
|
Quote:
I've been looking for this for days ! Thanks a lot. I'm not a pro in AppleScript and I'm getting to know and discover Automator, and I'm amazed by the really great tools we can creat with them. I was wondering if you could help me with something. Is it possible for that script to remember the file name of the first file and than save the new file in the same location as OriginalName_Merge.mov or something like that ? That would be wonderful ![]() Félix |
||
|
|
0
|
|
|
#14 |
|
Lion version?
This works great under Snow Leopard and not at all in Lion. Can someone please update it for the new OS?
Thx, Misha |
|
|
|
0
|
|
|
#15 |
|
As mentioned, you will need QuickTime Player 7 with the Pro registration (this is not the same application as the default QuickTime Player).
__________________
MacBook Pro / OS X Mountain Lion (10.8.3) / Xcode 4.6 / [various (much) older stuff keeping dust off the shelves] |
|
|
|
0
|
|
|
#16 | |
|
Quote:
QuickTime Player 7 is available on your Installation DVD (Leopard/Snow Leopard) or via Apple (Lion/Mountain Lion): Installing QuickTime Player 7 on Mac OS X v10.6 or Later
__________________
OS X 10.9 and iOS 7 delayed. Haswell Q3/Q4 2013. -------------------- “Only the dead have seen the end of the war.” -- Plato --
|
||
|
|
0
|
|
|
#17 | |
|
Quicktime 7 + Lion, still not working
Quote:
|
||
|
|
0
|
|
|
#18 | |
|
Quote:
I was able to get it to work quickly… the only piece I'm still trying to figure out is what (if anything) can/should be done while saving the resulting file. e.g., the QT property inspector shows that the combined file still has many "pieces"—and I'm not sure if that matters or not. Thanks again!
|
||
|
|
0
|
|
|
#19 | |
|
Quote:
|
||
|
|
0
|
|
|
#20 |
|
Would a shell script do the trick?
@dduke
If your individual frame files are named such that they can be sorted in the finder alphabetically/numerically, then you can probably use a shell script to run the ls command to list the contents of the folder (in order by file name) containing your files, then feed the result of that listing into the cat command to read and output the contents of the files, then direct the result of cat to be fed into a file with an extension matching the file type that you want. For instance: Code:
#!/bin/sh cat $(ls /path/to/frames) > /path/to/complete/file/nameOfFile.mpg I have only used such a command myself when the source file type matched the destination type. |
|
|
|
0
|
|
|
#21 |
|
That... won't possibly work.
|
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| 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 12:16 AM.









Linear Mode

