Automatically splitting files into 50MB chunks

Does anyone know if there's a way (a script?) to make Compressor automatically break your encodes up into 50MB chunks? I have a client who needs to post my deliverables onto a server that has a 50MB maximum, or something. Of course, I could manually chapter them out and compress them to all be under 50MB, but it would be great to find a way to have Compressor do that automatically. Thanks!

24" Intel 2.8GHz iMac, Mac OS X (10.5.5), NVIDIA graphics card

Posted on Feb 19, 2011 10:59 AM

Reply
2 replies

Feb 19, 2011 6:49 PM in response to artschoolcasualty

I don't know an in-Compressor way, but you can run a split in Terminal. Put your file in a new folder, then cd into the folder and use:

split -b 47m yourfile.mov newfile_

The "-b 47m" tells split to cut the file at that byte count (effectively gets to 49.3MB). It creates multiple files prefixed "newfile_aa", "newfile_ab", etc. You can then transfer them, and reconstitute them using

cat newfile_* > yourfile.mov

(need to be on a Mac or Unix to do this). If you're not successful, you may need to ZIP each split file and try again. It's not a great way to transfer a movie. Each part is not a playable movie in any sense. But it does make for a quick reconstitute at the other end.

Matt

Feb 20, 2011 10:08 AM in response to artschoolcasualty

I would break the larger sequence into chapters, export the chapters (self-contained or reference) as a batch, then do the encode in compressor as a batch.

This way, each block is independently playable. You are not dependent on ALL the blocks coming through unscathed and being successfully relinked before you can see ANYTHING.

If this is something you will regularly do, you might be able to automate most of the process. For example, you could set up a watched folder that will be the FCP export target. When a file shows up, Compressor starts and encodes it and puts the outcome in a second folder. That folder is set up to FTP anything that shows up in it to your client's site. It may take some time and effort to set up the process but once it is in place, it is something that can run unattended overnight.

x

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Automatically splitting files into 50MB chunks

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.