Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Black screen whenever I open premiere pro

New Here ,
Aug 06, 2025 Aug 06, 2025

Hi,

When I open up premiere pro, I get the usual page that shows your projects but the main window that opens behind that is just a black screen. When I click on a project, the screen changes but I'm trying to use scripting to automate some parts of the editing. Now that there is a black screen, the script can't open up the project anymore, but it used to.

 

I have premiere pro 25.3 and a 2070 super with the latest driver (577.00).

 

I am using a jsx file to automate premiere pro and media encoder. I have attached that file (removing personal filepaths) alongside a screenshot of what I'm seeing.

 

How do I fix this? Thank you very much in advance.

 

// =========================================
// batch_daily_export.jsx
// ExtendScript for Adobe Premiere Pro CC/2025
// =========================================
(function () {
    // === CONFIGURATION ===
    // Use double-backslashes for Windows paths
    var TEMPLATE_PROJECT = "";
    var SOURCE_FOLDER    = new Folder("");
    var OUTPUT_FOLDER    = "";
    var PRESET_NAME      = "H.264 High Quality";  // AME preset
    var SPEED_PERCENT    = 6000;                  // 60× speed = 6000%

    // === UTILITY: pad single digit numbers ===
    function pad(n){ return n<10? '0'+n : ''+n; }

    // === Compute today's date string ===
    var now     = new Date();
    var dateStr = now.getFullYear() + '-' + pad(now.getMonth()+1) + '-' + pad(now.getDate());

    // === Gather clips for today ===
    var allFiles   = SOURCE_FOLDER.getFiles("*.mp4");
    var todayFiles = [];
    for (var i = 0; i < allFiles.length; i++) {
        if (allFiles[i].name.indexOf(dateStr) === 0) {
            todayFiles.push(allFiles[i]);
        }
    }
    if (todayFiles.length === 0) {
        alert('No clips found for ' + dateStr);
        return;
    }
    todayFiles.sort(function(a, b){ return a.name.localeCompare(b.name); });

    // === Open the template project & get first sequence ===
    // Correct method to open a Premiere project via ExtendScript
    app.openProject(TEMPLATE_PROJECT);
    var seq = app.project.sequences[0];

    // === Clear existing clips on Video Track 1 ===
    var track = seq.videoTracks[0];
    while (track.clips.numItems) {
        track.clips[0].remove(0);
    }

    // === Import, place, and speed-up each clip ===
    var currentTime = 0;
    for (var j = 0; j < todayFiles.length; j++) {
        // Import into Project
        var imported = app.project.importFiles(
            [todayFiles[j].fsName],  // file path
            false,                    // suppress UI
            app.project.getInsertionBin(),
            false                     // don’t import into new bins
        );
        var projItem = imported[0];

        // Place on timeline at currentTime
        var clip = track.overwriteClip(projItem, currentTime);

        // Apply speed change
        try {
            clip.setSpeed(SPEED_PERCENT);
        } catch (e) {
            // fallback: manual property access
            var comp = clip.components[1];          // Time Remapping component
            comp.properties[1].setValue(SPEED_PERCENT, true);
        }

        // Advance time cursor by the sped-up duration
        currentTime += clip.end;
    }

    // === Queue to AME ===
    app.encoder.launchEncoder();
    var outPath = OUTPUT_FOLDER + '/' + dateStr + '.mp4';
    app.encoder.encodeSequence(
        seq,
        outPath,
        PRESET_NAME,
        0 // don’t close Premiere after queue
    );
})();

 

TOPICS
SDK
179
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Aug 07, 2025 Aug 07, 2025

Confirming: PPro opens fine, if you're not trying to invoke a script, right? 

How are you executing that script? 

Translate
Adobe Employee ,
Aug 07, 2025 Aug 07, 2025
LATEST

Confirming: PPro opens fine, if you're not trying to invoke a script, right? 

How are you executing that script? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines