Archive for the ‘consolidate’ Category

Adobe Production CS6 – Cache & Render Files and their Locations

Saturday, September 1st, 2012

When I start-up any application, I like to understand at least the main side-effects it’s having on my system.  In the case of Adobe’s primary video-editing apps, Premiere and After Effects, my experience (on Windows 7) is that they save intermediate preview-renders to the system volume.  This causes me the following concerns:

  • System Volume may serve poorly as a media drive.
    • Larry Jordan, at least in the recent past, advises against using the system drive for media read/write.  On the upside, such drives may have high-bandwidth to the system, but on the downside, the system can interrupt their use with highest priority, whuch may (I guess) pose a risk to smooth playback (though I am aware that buffering may possibly reduce this risk, I haven’t done or seen any such calculations).  Cache files are indeed media files that are written and read.
    • On the other hand, an informed representative of a well-known UK supplier of video editing laptops advised me that in his experience, most users of laptops with only a single internal drive (as system drive) do use that drive in this way (for portability).
  • System drive can become “clogged up”
    • System drive can become clogged-up by many or large video files of which that the user is only partially aware, their creation having happened implicitly during their use of the NLE etc.  Like temporary files only worse!
    • Ultimately the system drive can even become full, making the operating system itself sluggish or even less stable (and video playback less smooth.
    • Backup of a system drive that includes media files will typically require significantly greater archive space and will take significantly greater time (than a clean system).
  • Migrate-ability is reduced
    • I like the idea of a video project being a free-floating data-object.  That is, it should not be tied to any particular instance of a data storage volume, let alone a particular computer (system).  It should be possible for all files relevant to a project to be stored on any volume, migrated to any other volume, plugged into any computer having appropriate installed applications, and everything to work the same way as when the project was on its original volume being edited on the original system.  That includes not only the source media files etc. but also the intermediate rendered files.

So what do the Adobe editing applications provide to enable my preferred working arrangement?

  • Premiere:
    • [Edit > Preferences > Media]
      •  This defines the location of the folder [Media Cache Files], which contains pseudorandomly-named files.  Example Files:
        • [929_4372_01-125eeda9-ba0d-a8ea-4418-3480000001f0.ims]
        • [Rendered – 68721ea9-25e9-4f56-8430-4ca10101ace7-04602910-cd54-1a45-a5d7-557b000001f2.ims]
      • Default location: [c:\Users\…\AppData\roaming\Adobe\Common]
      • [Yes] Save Media Cache files next to originals when possible
        • e.g. for my XDCAM-EX files, inside a CLIPR folder (which contains the EX’s “essence” (.mp4) files, in this case [929_4491_01.MP4]), appeared the following files:
          • 929_4491_01.MP4 48000.cfa (9.2 MB)
            • Unknown, but the “48000” and the “a” on the end of “cfa” are suggestive of audio.
          • 929_4491_01.MP4 48000.pek (37KB)
            • Simply the peaks (waveform graphics data) file for the audio component of the essence-file.
        • Experience:
          • I clicked the [Browse] button and selected an area on my external media drive (a GRaid Mini) as: [H:\_App_Specific\Adobe].
          • Consequently, at my specified location the following folder appeared: [Media Cache Files]
    • Media Cache Database
      • Note:
        • When Premiere Pro imports video and audio in some formats, it processes and caches versions of these items that it can readily access when generating previews. Imported audio files are each conformed to a new .cfa file, and MPEG files are indexed to a new .mpgindex file. The media cache greatly improves performance for previews, because the video and audio items do not need to be reprocessed for each preview.
        • When you first import a file, you may experience a delay while the media is being processed and cached.
          A database retains links to each of the cached media files. This media cache database is shared with Adobe Media Encoder, After Effects, Premiere Pro, Encore, and Soundbooth, so each of these applications can each read from and write to the same set of cached media files.
      • Location: [c:\Users\…\AppData\roaming\Adobe\Common]
        • [Browse]
          • If you change the location of the database from within any of these applications, the location is updated for the other applications, too.
          • Each application can use its own cache folder, but the same database keeps track of them.
          • Example Experience:
            • I clicked the [Browse] button and selected an area on my external media drive (a GRaid Mini) as: [H:\_App_Specific\Adobe].
            • In response, a prompt came up saying “Move the existing media cache database to the new location, or delete it (Buttons: [Move] [Delete] [Cancel] ).
            • I clicked [Move]
            • Consequently, at my specified location the following folder appeared: [Media Cache]
      • Purging
        • [Clean]
          • This removes “orphan” cache files.
          • To remove conformed and indexed files from the cache and to remove their entries from the database, click [Clean]. This command only removes files associated with footage items for which the source file is no longer available.
            • Important: Before clicking the [Clean] button, make sure that any storage devices that contain your currently used source media are connected to your computer.
      • [Yes] Write XMP ID To Files On Import
        • Check this box to write ID information into XMP metadata fields.
        • e.g. hence [929_4491_01M01.XMP] sidecar-file (containing XMP metadata) got written into the CLIPR folder containing its associated media  file, here an XDCAM-EX essence file, [929_4491_01.MP4].
      • [Yes] Enable Clip And XMP Metadata Linking Check this box to link clip metadata to XMP metadata, so that changing one changes the other.
    • Intermediate-Preview Render Files
      • None of the above measures affect where intermediate/preview files get rendered to…
        • I proved this (in Windows 7) by deliberately causing a render then searching on “Huge” (>16MB) files created “Today”
        • Rendered files location was:[C:\Users\…\Documents\Adobe\Premiere Pro\5.5\Adobe Premiere Pro Preview Files\Untitled3.PRV]
      • A brief Google revealed several articles where the (sadly now obsolete) solution was a setting under [Edit > Preferences > Scratch Disks]
      • Eventually discovered that in CS5.5 these settings now resided in: [Project > Project Settings > Scratch Disks]
        • Here, all settings (affecting Capture and  Preview) were set to [Same as Project]
        • As it happened, my project location was [C:\Users\David\Documents\Adobe\Premiere Pro\5.5].
      • Experiment with a different project location:
        • Save As: [H:\_Media\_Projects\MyProject\030 Projects\Adobe\Experiments]
          • The file [Expt A v001.prproj] appeared in it, but that was all.
        • Save a Copy: [H:\_Media\_Projects\MyProject\030 Projects\Adobe\Experiments]
          • The file [Expt A v001 Copy.prproj] appeared there, but that was all.
        • (The file open within Premiere remained as the original, not the copy)
        • After a while, the project file was joined by: [Adobe Premiere Pro Auto-Save]
      • Experiment to migrate the Preview-Render files:
        • In Windows Explorer, I created a folder named [Adobe Premiere Pro Preview Files]
        • Into that folder, from the similarly-named folder on the system volume, I dragged the existing folder [Untitled3.PRV]
      • Experiment: Premiere “knows” when render-files have gone, and prompts for their possible new location.
        • I deleted the project-specific render-files folder on the (external) project-drive.
        • I re-rendered, resulting in a fresh such folder, re-populated.
        • In Premiere, I Closed the project
        • Then in Windows I renamed the project-specific render-files folder, then back in Premiere I re-opened the project.
          • Premiere prompted with Browser titled: “Where is the File ‘Rendered – 5ac…..228.mpeg’?”
          • I selected the stated file in its newly-renamed folder, Premiere then found all the others there.
        • Result: the timeline render-region went green (i.e. “probably playable”).
      • Experiment: Once render-files are regarded as “gone”, they cannot be restored.
        • I closed the project, ensuring I did not save changes (such as the new location of the render files), then re-opened it.
          • As in the previous experiment (since I did not save changes), the render files folder could not be found.
          • Premiere thus prompted with Browser titled: “Where is the File ‘Rendered – 5ac…..228.mpeg’?”
          • This time however I simply used the [Skip All] option.
        • Closed the project.
        • Renamed the rendered-files folder back to its original name.
        • In Premiere, re-opened the project.
          • The timeline region remained red, indication no render-files were associated.
      • Experiment: Tidy migration of a project to a new location.
        • Warnig: in the case of doing a Copy (which is Windows’ default drag operation between different volumes), take care to ensure the Project (file) is not simply referencing the original preview files at the old location…
        • Drag both Project and its folders (including render-file folder) to a new location (e.g. on a new disk).
        • If name and relative location of folder are unchanged (as they ought to be, in good practice) then the files will be automatically detected and used, not even a user-prompt.
          • Just be sure though that the project isn’t simply referencing the render-files in their original location, if they are still present there.  Premiere is “lazy” in this respect.
      • Experiment: The relative location of the Rendered Files folder does matter (relative to the project file).
        • Tried putting the render files in a non-standard location.
          • The “Locate/Browse” prompt appeared
          • I located the file
          • All at first appeared well, and the corresponding section of the timeline went green
          • However, the “Composer” window simply displayed “Media Pending”.  That never went away.
      • Experiment:
        • When migrating, also need to move (or copy):
          • The Media Cache directories
            • Actually I’m not so sure about this. I tried exiting Premiere, renaming these directories and opening Premiere.  It created and repopulated the same directories in their original location, which in my case was an external drive.
          • The Source Media files
    • http://forums.adobe.com/thread/784220?tstart=0
      • I suggest marking each external with the drive letter that the user assigns to it, say Z:\. Then, whenever Z:\ is plugged in, it will always be seen as Z:\. This way, the NLE can keep up with where the Assets are located, starting with the drive letter.
      • If one is migrating Projects between computers, they will repeat this exact process in the OS of each computer.
      • Note: when doing the migration, ALL Assets, Scratch Disks, and the Project file, MUST be included on that external

Work Procedure for Migrate-ability:

  • By associating cache and XMP files with the media (or its essence), Adobe projects are migratable.  However adding such files into the BPAV/CLIPR folder structure is considered by some applications to be an adulteration of that structure, requiring their deletion.   However, such deletion on an as-needed basis is not too onerous – given it is easy to do and in any case this situaion should rarely arise in practice.
  • When using different disks, remember to re-define (in Preferences) the location of cache files etc.
    • One work-around would be to -re-set the cache location before opening any individual project.
      • Might be hard to remember to do when opening a project from within the NLE, easier to remember when double-clicking a project file in Windows Explorer.still
    • I’m not 100% sure what to do about these…
  • As noted earlier:
    • When doing the migration, ALL Assets (Sources), Scratch Disks (Renders), and the Project file, MUST be included on that external.
      • I note that this says nothing about Cache Files etc. …

Avid MC: Bundled Tools & Apps: Their Purpose

Thursday, September 8th, 2011

When you purchase Avid Media Composer, you also get a set of other applications, whose purpose (at least to the newbie) is not immediately obvious.  So I did some investigation and produced a summary of them, as below.  I have no experience of actually using them, I just trawled ReadMe files and (mostly) the web.  Here are my (interim) conclusions:

  • Avid TransferManager – Is e.g. for uploading to a Playback Server [http://blog.davidesp.com/archives/274]
  • AMA – the camera-specific AMA Plugins (e.g. for Sony XDCAM) are no longer bundled with MC, you have to download and install them separately. [http://blog.davidesp.com/archives/316]
  • Avid MetaSync automates the inclusion of metadata (expressed in suitable XML formats) into Avid editing systems, including synchronisation with video and audio. The metadata can be anything from subtitles / closed captioning to synchronized entertainments such as lightshows or simulator rides.   [http://blog.davidesp.com/archives/334]
  • Avid MetaFuze’s primary, if not only purpose is to prep files for Media Composer use – an “outboard importer”.  Avid’s article at http://www.avid.com/US/industries/workflow/MetaFuze summarises it nicely.  Though bundled with Media Composer, it is also available free. That means for example that preprocessing work (e.g. generation of burnt-timecode proxies and online files) can be generated (e.g. in DNxHD) by anyone whether or not they have an Avid system.  Potentially then a great option for breaking up work into collaborative / parallel workflows. [http://blog.davidesp.com/archives/335]
  • Sorenson Squeeze – a well-known compressor/encoder, bundled as part of Avid Media Composer (MC) but also an independent product in its own right. Avid MC5.5 specifies version v6.04 but further updates are available from Sorenson itself.  There is a free-to-Avid-users update from v6.x to v6.5.  The latest version is v7.0 (with CUDA).  Presumably these later versions are officially unsupported by Avid (but how much does that matter in practice?). [http://blog.davidesp.com/archives/337]
  • Avid EDL Manager imports and exports EDL (in various flavours) – from/to a bin (e.g. thumbnails storyboard layout?) (or a Sequence or MXF file?).  It can be run stand-alone or from within Avid.  EDLs are somewhat of a hangover from the past, so it’s unlikely to be of much use in my case, but worth knowing about as an option, and as such still features in other people’s current workflows. [http://blog.davidesp.com/archives/350]
  • Avid Film Scribe generates Cut Lists and Change Lists (used in transfer from video edit to film edit) in more contemporary formats than EDL, e.g. XML formats involved in VFX / DPX workflows (? I am on very unfamiliar ground here ?).  It can generate such formats from a Sequence and also it can be used to translate between some formats.[http://blog.davidesp.com/archives/352]
  • Avid Log Exchange (ALE) is an Avid log file format that has become a de facto standard in the post industry. It is a text-based metadata exchange format used in applications from telecine to standalone logging applications, and is supported by many NLEs.  The ALE format is based on a Comma or Tab -delimited file format. [http://blog.davidesp.com/archives/353]
  • Avid After Effects EMP is (not a disruptive elctronic weapon but) an Avid-supplied plugin for Adobe After Effects allowing that application to use a DNA family video output box such as Mojo (“ordinaire”) or Nitris to provide External Monitor Preview (EMP) on a monitor.  Helpful in order to make use of that Avid box for the Adobe After Effects application, both for convenience and consistency.  Unfortunately it does not work with the more recent DX family, such as the Mojo DX box. [http://blog.davidesp.com/archives/354]
  • The Avid DNA Diags application is for diagnostics on DNA family e.g. Mojo “ordinaire” (not DX) [http://blog.davidesp.com/archives/355]
  • The Avid Quicktime Codecs extend QuickTime for encoding and decoding to/from Avid codecs such as DNxHD.  Essentially they add such formats to QuickTime on your system.  The LE codecs are “Light Edition” – only needed on systems where Avid is not already installed.   [http://blog.davidesp.com/archives/356]
  • Avid Media Log is a standalone app supplied with Avid systems enabling assistants on non-Avid machines to select and log raw (as opposed to RAW) footage in a manner that can easily be transferred into an Avid session/system elsewhere, where the result appears as an Avid Project.  Apparently, Media Log is much like the digitize tool on Media Composer.  But I’ve never used that either… It can output e.g. to ALE (explained below) and hence e.g to other NLEs.  [http://blog.davidesp.com/archives/357]
  • Misc “Avid Downloads” (?) Looking at  my Avid Downloads page, there is a much larger list of items than I expected, and suspect that many of them are not relevant.  For example, what is Avid Deko?  It’s listed on my Avid Downloads page, though I don’t know if I would be able to activate it, or whether it would be worth the trouble.  It’s listed as Deko 2200.  So I googled and YouTubed about it…  Impression: that version (2200) is very obsolete. [http://blog.davidesp.com/archives/332]
  • On my web “travels”, I discovered a great article entitled “The Avid Ecosystem” at [http://digitalfilms.wordpress.com/the-avid-ecosystem/], listing many of the resources for the Avid world: links, tutorials, filters, applications, training…
  • It’s helpful to see some of the above items in the context of illustrative workflows, e.g.:

Avid Workflows with AMA & Offline/Online Combined

Saturday, August 20th, 2011
  • http://www.youtube.com/watch?v=wb8LqUY1q34
    • AMA and Media Management – Media Composer Cutting Edge
      • Suppose you start with a Project having a Sequence of clips from a Bin, these clips directly linked (via AMA) to original media-recordings in a camera’s native format.
      • “There are still going to be times when you want to integrate that media in your local or shared AVid storage”.
      • This can be done easily via the Consolidate and Transcode features:
        • Sequence: RightClick > Consolidate/Transcode
        • Consolidate/Transcode:
          • I THINK BUT UNSURE:
            • Select Consolidate if you just want the camera’s native format re-wrapped in MXF
            • Select Transcode if you want it transcoded e.g. into DNxHD
            • In both cases, you end up with a new sequence, of clips which are now:
              • On the Avid Media storage (MXF).  Better performance (?), better media management (by Avid) and ability to do some things that AMA can’t, such as multi-camera.
              • Only the subsets (of original footage) needed by the sequence (plus handles).  Saves disk space.
          • Settings:
            • “Video and audio on same drive”: YES
            • Select required target drive
            • Define Handle Length (e.g. two seconds’ worth of frames).
              • (Implies that Consolidate will only ingest the subsets of clips actually referenced in the Sequence)
            • “Create new sequence”: YES
            • “Delete original media files when done”: NO
            • “Skip media files already open on the target drive”: YES
              • (Thinks: what if they already exist on some other drive (that’s connected) ?)
            • “Relink selected clips to target drive before skipping”: YES
          • Click “go-button” (labelled Consolidate or Transcode).
      • If at any subsequent stage you want to re-edit:
        • Re-mount the original camera volumes (e.g. disk drive/drives).
        • Re-link your sequence to them (via AMA ?).
        • {Subsequently, presumably re- Consolidate or Transcode }
          • {Presumably if all you did was add something, the only action performed will be the Consolidate/Transcode of that very addition}
          • {What if existing clips are trimmed (up or down) in the sequence?  Will the corresponding existing Consolidate/Transcode product be appended/reduced/replaced as necessary (is AVid “clever” about all this?  Or will a new one co-exist alongside the old one (which then just wastes space) ? }
          • {Does an Avid-managed file act like an object, i.e. exists so long as something (bin or sequence) points at it, otherwise is deleted by some “garbage collection” ?}
      • ReLink is also handy for Offline-Online conversion.  Example:
        • A remote cameraman delivers (e.g. via DigiDelivery) a set of XDCAM-HD Proxies.
        • Editor receives proxies and Imports them into Avid.
          • No AMA used here.
        • Some time later the Online files arrive (e.g. by physical delivery of disks).
        • Avid’s ReLink function matches the offline proxy sequence, frame-for-frame, with the newly-avaiable HD footage.