Skip to content

About

A Premiere Pro panel that keeps project bins in sync with folders on disk. Drop a file in and it appears in the right bin.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Premiere Bin Sync

tests release license: MIT platform: Windows Premiere Pro 2022+

Keep Premiere Pro bins in sync with folders on disk, with no setup. Open a saved project and Bin Sync copies the folder it lives in: every subfolder becomes a bin, and every media file comes in as an item in the right bin, coloured by its kind. Drop a file in later and it appears within a few seconds. Renames, moves and deleted files on disk are followed by themselves. It asks only in two rare cases, and anything it couldn't do sits in one small problems list.

Premiere Bin Sync is a free, open-source panel (a CEP extension) for Adobe Premiere Pro.

Why

Editors who get media from a shared drive, a render farm, a downloader or a teammate spend a lot of time importing files and sorting them into bins by hand. Bin Sync does that part for you:

  • No setup. A saved project mirrors its home folder at once.
  • Subfolders become bins, named exactly as on disk, empty ones included.
  • Colours by kind: video, audio, image, graphic and image sequence each get their own colour label, set once when the item comes in.
  • Almost never asks. It follows what you do on disk and in Premiere, and keeps any item a sequence uses.
  • Bad files are caught before Premiere sees them (an empty file, an error page saved as .mp4), and a file whose name lies about its type (a JPEG named .png) is renamed to match.
  • Extra folders (a shared music or SFX folder) can be added with one button.

Requirements

  • Windows 10 or 11 (the installer is a PowerShell script; macOS is not supported yet).
  • Adobe Premiere Pro 2022 (22.0) or later. Built and tested on Premiere Pro 26.5.1.
  • Node.js 22 or later, only if you want to run the tests. The panel itself needs nothing extra.

Install

From a release (recommended)

  1. Close Premiere Pro.
  2. Download bin-sync-<version>.zip from the latest release.
  3. Unzip it anywhere and double-click install.cmd.
  4. Start Premiere Pro and open Window > Extensions > Bin Sync.

From source

git clone https://github.com/perplexingpasta/premiere-bin-sync.git
cd premiere-bin-sync
install.cmd

(the same as powershell -NoProfile -ExecutionPolicy Bypass -File install.ps1)

What it writes, so nothing is a surprise:

  • %APPDATA%\Adobe\CEP\extensions\com.rishabh.binsync: a copy of extension\, which holds the panel and the engine, so it works on a PC without this repo. For development, install.ps1 -Dev makes a junction (a link) to extension\ instead, so edits here are live after a Premiere restart.
  • HKCU\Software\Adobe\CSXS.9 to CSXS.15: PlayerDebugMode = "1", Adobe's switch that lets a self-built (unsigned) panel load. Set across the range because it is unclear which one 26.5 reads.

Then restart Premiere (it only looks for panels at launch). The panel is under Window > Extensions > Bin Sync.

On another PC

powershell -NoProfile -ExecutionPolicy Bypass -File make-package.ps1

builds dist\bin-sync-<version>.zip. Copy it over, unzip it, run install.cmd from inside, restart Premiere. Nothing on the other PC depends on this repo or on this PC's folders.

Uninstall

powershell -NoProfile -ExecutionPolicy Bypass -File install.ps1 -Uninstall

Add -ClearDebugFlags to remove the PlayerDebugMode values too. The mirror's own files (below) can simply be deleted.

Using it

The Bin Sync panel: All synced, with the bin tree of a home folder

Open a saved project and the panel. That's it. Until the project is saved once, the panel says Save your project to start, and updates by itself after Ctrl + S.

The home folder

The folder a project copies is its home folder:

  • If the project file sits in a folder whose name contains "Project Files", the home folder is the folder above it.
  • Otherwise it is the folder the project file sits in.

For example, with this layout the home folder is My First Ad:

My First Ad\
  0 - Export\
  1 - Project Files\My First Ad.prproj
  2 - Footages\1 UGC Ad Content\BROLL\
  3 - Assets\Audio\  Image\  Video\
  4 - Other\

Each subfolder becomes a bin at the top of the project, named exactly as on disk (the numbers keep Premiere's order), with nesting kept. Empty folders get a bin too, so new files have a place to land. Files sitting directly in the home folder go to the top of the project. Mac leftovers (._ files, .DS_Store), Premiere's own files and half-written downloads are skipped.

If the home folder is a whole drive, the Desktop, Documents, Downloads or your user folder, or holds more than 500 media files, it asks once first: Copy it or Don't copy.

The main screen

  • The status at the top: All synced (green), Adding 12 files… (blue, pulsing), Waiting for your OK (a question, below), Paused, or Something went wrong while checking (red).
  • The bin tree shows every folder as the bin it becomes, with live file counts. Click a row to open or close it. Each row's ⋯ menu has Open in Explorer and Stop syncing (or Turn back on). Open home folder opens it in Explorer.
  • The colour key under the tree shows the colours new items get. Clicking it opens Settings.
  • Pause stops everything for this project until you press Resume, even after closing Premiere.
  • Activity › lists what it did, in plain sentences (for example Added 3 files to 2 - Footages ▸ BROLL). The Activity screen also has Check now, Open log file and Copy details for a bug report.

It checks every folder as soon as something changes on disk, and once a minute anyway. Each check that brings something in leaves one line in Window > Events, and every item gets an Import Date (add the column through the Project panel's Metadata Display). The project is saved after two quiet minutes.

Extra folders

+ Add folder adds a folder from anywhere (a shared music or SFX folder) to this project. It comes in as one bin named after it, with its subfolders as bins inside, and has the pill added in the tree. Its ⋯ menu also has Remove folder, which stops copying it; its items and bins stay in the project. A folder inside the home folder, or one that holds it, is refused.

Stop syncing a folder

Stop syncing on a row skips that folder for this project: it shows greyed out with "not syncing", and nothing new comes in from it. On the home row it turns the home folder off. Turn back on copies it again. Deleting a bin the mirror made in Premiere does the same as Stop syncing (Activity: Stopped syncing 0 - Export (you deleted its bin)).

Settings

The gear opens Settings, the same on every project on this PC:

  • Colours for new items: Video (Iris), Audio (Caribbean), Image (Rose), Graphic (Yellow), Image sequence (Iris). Changing one recolours the items still wearing the old colour, in the open project at once and in others the next time they open. A colour you pick by hand in Premiere is never changed back.
  • Treat numbered images as one clip (off): numbered stills (frame_001.png …) come in as one clip once no frame has changed for 10 s. Off, they come in as separate images.
  • Show developer tools (off): buttons for testing on throwaway projects.

What it decides by itself

None of these asks anything. Each leaves a line in Activity:

  • Rename or move a file on disk: its item follows, so clips in sequences stay linked.
  • Add frames to an image sequence: the clip is updated.
  • Replace a file with new contents: the item is re-read, so timeline uses survive.
  • Delete a folder on disk: its empty bin is deleted (a bin that still holds anything stays).
  • Delete a file on disk: its item is removed once the file has been missing for 5 checks and 60 s. An item a sequence uses is always kept (Premiere refuses, and it never tries again). A folder that is offline never loses anything.
  • Remove an item in Premiere: it is left out for good, even after reopening. Drag it back into any bin and it is taken on again.
  • Rename a bin the mirror made: new files go into the renamed bin.
  • A file whose name lies about its type (a JPEG named .png): it is renamed on disk to match its contents, then imported.

The two questions

Only two things are ever asked. Each shows in a box under the status, and the status says Waiting for your OK:

Question Answers
14 files were deleted from disk (more than 10 at once, usually an unplugged drive or a renamed folder) Remove 14 items · Keep them (not asked again for those files) · Show files. Nothing is removed until you answer.
Copy everything in Desktop into this project? (a risky home folder) Copy it · Don't copy (the home folder is turned off; Turn back on in its ⋯ menu)

Problems

Anything it couldn't do shows as one line under the status, for example 2 files couldn't be added ›. It opens a list, one problem per row, with Try again, Show in Explorer and Hide:

  • drone_04.mov: Premiere couldn't open it
  • clip.mov isn't a file Premiere can open (broken, empty, or an unknown type)
  • logo.png is really a JPEG, but logo.jpg already exists
  • Couldn't check the project: <reason> (the line turns red; Try again, Copy details)

Problems never wait for an answer. Hide takes one off the list until it happens again for a new reason.

What it never does

  • Touch anything that is not under a watch folder. Captions, presets and sequences have no file on disk, so the mirror cannot even see them.
  • Remove an item a sequence uses, or anything at all from a folder that is offline.
  • Delete a bin you made yourself, or a bin that still holds anything.
  • Write into your folders, with one exception: a file whose name lies about its contents is renamed to the type its contents show. Only that one file, only when its real type is known, and never over an existing file (ADR 0008).
  • Import project files, Premiere's cache files, Adobe ... folders, zips, documents or a file still being written.
  • Hand Premiere a file that looks broken (junk, an empty file, an error page saved as .mp4). It goes to the problems list instead.

Older projects

A project set up by hand with an earlier version (its .binsync.json already lists folders) keeps working exactly as it was, with its own folders and their settings, and never gets a home folder. Those settings can no longer be changed in the panel.

The files it keeps

File What it is
<Project>.binsync.json, next to the .prproj Only when needed: the project's extra folders, skipped folders, and the answer to the risky folder question (or an older project's hand-made setup). Copy it with the project and they come along.
%LOCALAPPDATA%\PremiereBinSync\projects\<key>.json The mirror's memory for one project: which file became which item, which bins it made, what you answered, and whether you paused it. Forget the memory (developer tools) clears it; the next check then adopts what is already in the project and imports only what is missing.
%LOCALAPPDATA%\PremiereBinSync\settings.json What the Settings screen saved: the colours, the numbered images switch and the developer tools switch. Written only by the panel. If it can't be read, the defaults are used and Activity says so.
%LOCALAPPDATA%\PremiereBinSync\logs\panel-YYYY-MM-DD.log The panel's full log, one file per day (Open log file in Activity).

Layout

extension/             the panel, engine included (this is what gets copied into AppData)
  CSXS/manifest.xml    bundle id, host range, CEF flags + ScriptPath for the ExtendScript
  index.html           the panel's screens and their look
  icons/               the panel icon
  js/panel.js          CEP glue: the ExtendScript bridge, the log
  js/host.js           Node-side driver: index/apply/save/selfTest, chunking, result parsing
  js/ui.js             draws the panel: status, problems, the question, the bin tree, Settings,
                       Activity (it draws, panel-host.js decides)
  js/panel-host.js     the app: engine + host layer + loop, answers, Pause and Resume, Activity,
                       the Settings store
  jsx/binsync.jsx      the Premiere side: index, apply, import-then-move, guards, batching
  jsx/spike.jsx        the v1 platform probe, kept as a record (not loaded)
  jsx/spike2.jsx       the v2 step-5 probes and their panel side (developer tools: Run spikes /
  js/spike2.js         Clean up spikes). Throwaway projects only
  engine/              pure Node, no Premiere:
    config.js          built-in defaults, and the Settings store
    paths.js           path rules (case, separators, "is under")
    protocol.js        the wire format between Node and ExtendScript
    home.js            the home folder, and when it is risky
    watchconfig.js     the .binsync.json file: extra folders, skipped folders, hand-made setups
    scanner.js         reads a folder; sniff.js checks contents against the file name
    planner.js         one folder's plan: bins, imports, refreshes, re-points, removals, colours
    colours.js         kinds of media and their type colours
    questions.js       the two questions: mass removal and a risky home folder
    problems.js        what couldn't be added, and a failed check
    mapping.js         which bin a file goes in; following bin renames
    loop.js            every folder per cycle, one shared work budget, save when quiet
    watcher.js         reacts to changes on disk
    memory.js          one memory file per project
    fixname.js         renames a mismatched file: the one write into a watch folder (ADR 0008)
    sequences.js       finds image sequences
    dryrun.js          prints the plan for a real project or folder - writes nothing
install.ps1 / .cmd     install (copy, or -Dev junction), verify, -Uninstall
make-package.ps1       build dist/bin-sync-<version>.zip for another PC
test/                  tests, no Premiere and no dependencies
  helpers/fake-premiere.js   a mock Premiere, so the real .jsx runs in Node
  helpers/panel.js           boots the real panel files against that mock and a DOM stub
  panel-*.test.js            the panel, screen by screen
CONTEXT.md             the glossary
docs/adr/              the decisions behind the tool's shape, one short file each
docs/design/           the approved screens (screens.md, and a plain HTML copy of each)
docs/archive/          finished plans and their verification records
SESSION.md             the runbook

Tests and the dry run

node --test test/*.test.js
node extension/engine/dryrun.js --project "D:\Edits\MyEdit.prproj"                 # what the next check would do
node extension/engine/dryrun.js --project "..." --index "...\index-<key>.tsv"      # against its real contents
node extension/engine/dryrun.js --root "D:\some\folder" --limit 30 --json

No dependencies and no Premiere. The tests run the real shipped files, so they cannot drift from the code: helpers/fake-premiere.js reproduces the quirks that shaped the design (importFiles ignores its target bin), which lets the real binsync.jsx run end to end in Node.

The dry run is a developer tool. It turns a real project into the exact list of what the mirror would do (every bin, every import and where it goes) without touching Premiere or writing anything. With --project it reads that project's home folder, .binsync.json and memory and prints one section per folder. --index takes the file the panel's Export index button (developer tools) writes to %LOCALAPPDATA%\PremiereBinSync\index-<key>.tsv.

More documentation

  • SESSION.md: the runbook. What a session looks like, what the panel's words mean, and what to do when something looks wrong.
  • CONTEXT.md: the words this project uses, defined.
  • docs/adr/: the decisions behind the tool's shape, one short file each.
  • docs/design/screens.md: the approved screens.
  • docs/archive/bin-sync-PLAN.md: the finished v2 plan, with the step-by-step verification record and the incident log (section 14).

Contributing

Bug reports and pull requests are welcome. Please open an issue first for anything large, so we can agree on the approach. Before sending a change, run node --test test/*.test.js; the same tests run on every pull request.

License

MIT. Premiere Pro is a trademark of Adobe. This project is not made or endorsed by Adobe.

About

A Premiere Pro panel that keeps project bins in sync with folders on disk. Drop a file in and it appears in the right bin.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages