-
Successful method to encode directory tree of sources using watch folders
I had a folder of Alexa rushes, in the original format (so subdirectories for each card etc)
Wanted to use Media encoder CC to convert them to mp4 dailies, with a LUT.
Media Encoder currently doesn’t support spanning subdirectories with watch folders (or adding a subdirectory to the queue).
Thought I’d share this as I spent the past few hours working it out!
Not a unix nerd by any stretch of the imagination, but I figured there should be some way to create a new flat directory, full of Symlinks to the movs that I could then add to Media Encoder.
After much google-Fu, this is what I worked out.
In terminal, you need to navigate to a directory containing only the alexa originals (which can be any amount of subdirectorys down the chain). Then run
mkdir ALL ; find . -name ‘*.mov’ -exec ln -s $PWD/{} ./ALL \;
This creates a directory called /ALL , finds all of the files ending in .mov in the subdirectories of the current folder, and then puts symlinks (which are links to the movs that act like the files themselves) in the folder /ALL
This ALL folder can be added as a watch folder in Media Encoder. Works great
Symlinks are location based so if the original media is moved they will stop working. If more media is added to the original folder the command can be run again (though wouldn’t recommend doing this during a copy) and the new files will be added to ALL – and will be picked up by the Media Encoder watch folder.