-
Reduce Clip File Size
I’ve got some larger clips 1+ hours long that don’t always make it into the edit for the project. I want to keep these files, but at a smaller file size than the original. The idea is to reduce the files size by encoding it in the same place that it came from so as to not break the file path/link in the catalog.
I created an action that encodes a standalone movie and overwrites the original, but this isn’t always successful and I run the risk of losing the original clip. Unless there is something about how the overwrite works that I’m not aware of and this is the write way to do it? To void losing a clip my idea is to move the original clip to a temp folder then encode the clip back to it’s original location followed by a clean up of the temp folder at the end. This should result in a reduced file size clip in place of the original while maintaining the link to the clip in CatDV.
I’ve tried a few different methods thus far with no luck. My current attempt goes as follows.
The first action. Worker records the file path, moves the file and cleans up the trigger that started the action.
Set Clip Field (temp path = “$p”) /SAN/Media/Project_folder this is written to field U26 for later use.
Move File (/SAN/temp$r)
Set Clip Field (Trigger = “false”)The second action uses the “temp” folder as a watch folder.
Export Standalone Movie (${U26}$r)I’d like for the watch folder clip to be picked up and written back to the original clips location, but at this point my conversion fails with an error “java.lang.RuntimeException: Export failed (source movie missing or unplayable?)” It looks like it can’t find the clip that was moved into the watch folder.
Even if this worked I can see now I need some other identifier to match the encoded clip with the record it is replacing. I’m just not sure of the best field to use for this or how to incorporated it in the action. Maybe CATID is the other field I need to connect the newly encoded clip with the record.
I’m open to suggestions for this workflow or if there is a better way I’m open that as well.
Anyone have any insight they are willing to share?