Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Premiere Pro Creating Proxies for Clips Given List of Clip Names

  • Creating Proxies for Clips Given List of Clip Names

    Posted by Matthew Donald on November 9, 2023 at 2:53 pm

    Hello!

    I’m doing assistant editing/prep work on an archival documentary, which is being edited in a premiere pro production. Currently all the archival media (hundreds of unique clips) live in its own projects organized by subject.

    I was able to create a list of filenames that only consists of video files inside the working cut, kind of like an EDL (but trimmed down to only the clip names and all duplicate clip names are removed).

    Now my question is: is there is any way using scripting or premiere/media encoder tools to create proxies within the project using a certain preset for clips from this list? For example, I give the list as data and premiere can create and attach prores proxies within the archival media project automagically? That would be a great way to save time. I’m sure it would be pretty simple to do this for the transcoding, but I would also like to automate/optimize the process of attaching the proxies so I don’t have to go in and attach them one-by-one inside the premiere project. There are over 500 of them and I’d be worried about missing some.

    ALSO, I understand that there are ways to avoid with ingest settings and the like, but this project has been in post-production since before the pandemic, switched from 2020->2021->2022->2023 and I’m only just now getting my hands on it, so I’m having to do a lot of band-aid fixes like this to prep it for a new editor who’s coming in.

    Any suggestions appreciated! Let me know if I can clarify anything!

    Usama Aslam replied 2 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Usama Aslam

    January 14, 2024 at 5:15 pm

    In your case, you can automate the processes by using the Extendscript API that Adobe offers.

    Please check the below script outline for your help:

    javascript, copy the code.

    Define your list of filenames

    var fileList = [“clip1.mov”, “clip2.mov”, /* … */];

    Loop through each file in the list

    for (var i = 0; i < fileList.length; i++) {

    var fileName = fileList[i];

    Create and attach proxy using Adobe Media Encoder

    var projectItem = app.project.rootItem.createProjectItem(‘file’, fileName);

    var proxyPreset = app.encoder.getPresetWithName(“ProRes Proxy”);

    Replace with your desired preset

    var outputFilePath = “path/to/output/folder/” + fileName.replace(/\.[^/.]+$/, “”) + “_proxy.mov”; // Modify the output path as needed

    Set up an encoding job

    var job = app.encoder.encodeProjectItem(projectItem, outputFilePath, proxyPreset);

    Wait for the job to complete

    while (job.status == 0) {

    $.sleep(1000);

    }

    Attach the proxy to the original clip in Premiere Pro

    projectItem.attachProxy(app.project.rootItem.createProjectItem(‘file’, outputFilePath), true);

    }

    Don’t forget to substitute the preset name you wish to use for “ProRes Proxy”. As necessary, modify the output path.

    Verify that “Allow Scripts to Write Files and Access Network” is enabled in the “Scripting & Expressions” section of the Adobe ExtendScript Toolkit options before executing the script.

    You might need to adjust it to fit your own needs and folder structures.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy