We have a fairly significant (3-4TB) archive of video files that we're migrating over to a media mover based system for an Open Media Project implementation here in Denver. We currently keep two versions of the files, one smaller FLV and a larger broadcast quality MPEG2 -- ideally these would be stored back to a single node in two separate file fields. This works fine, except that it duplicates the copies being stored internally by media mover which takes our 3-4TB to 6-8TB which isn't sustainable. My current plan is to write a completion operation to our growing open media media mover plugin that removes media mover's internal copy after the file is stored on the filefield, but I'm curious if there might be a more generic approach available / or if there's a plan for dealing with this situation in the future that we could work on now as opposed to our custom solution.
Any thoughts appreciated!
Brian
Comments
Comment #1
arthurf commentedThe removal question is a sticky one. My basic assumption has been to always save everything for fear of someone deleting source material that they did not intend. That being said, it would be easy to write either a cleanup function that goes back through a configuration and removes extraneous files, or build a complete function that simply removes the files you want- have a selector for parts of the configuration that you want to remove files for.
I can prototype the code for you if you want to test it.
This also is starting to show the limitations of the 4 states that media mover offers. I've got to start thinking that part through!
Comment #2
civicpixel commentedThe complete function with a selector for configuration parts sounds ideal to me -- I'd be happy to take a first shot at it today, but if you'd rather prototype it out first that's great also.
Thanks!
Brian
Comment #3
arthurf commentedI'll prototype it for you in a minute- basically taking from the S3 module
Comment #4
civicpixel commentedThanks, I'll test it out as soon as your done!
Comment #5
arthurf commentedOk, I have not tested this at all, but it'll probably work with minimal debugging. There are probably more comments than lines of code, but hey, why not? Oh- any interest in becoming the maintainer of this module ? :)
Here's the code- you just need to add an info file I think.
Comment #6
civicpixel commentedWell that was efficient. It's working on our test install with a little clean up -- we're happy to maintain this, we'll be using it a lot for the other stations over the next 6 months. I'll play with it a bit more, then I assume we should post it as a separate module like the others?
Thanks again,
Brian
Comment #7
arthurf commentedHey Brian-
I'd love it if you all would maintain it and create a separate module for it- I'm trying to thin down the core of Media Mover. Let me know when you do, and I'll add a note on the Media Mover project page and create a blog entry for it.
best,
arthur
Comment #8
civicpixel commentedI'm slow, but I finally got the initial version of this committed at http://www.drupal.org/project/mm_remove